SHARE
TWEET

program_at32uc3l-uart-isp-1.0.1.cmd

a guest Mar 20th, 2014 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. setlocal enableextensions enabledelayedexpansion
  3.  
  4. : This command script programs the ISP (flash array), the ISP configuration words
  5. : (User page) and the general-purpose fuse bits.
  6.  
  7. : Copyright (c) 2010 Atmel Corporation. All rights reserved.
  8. :
  9. : Redistribution and use in source and binary forms, with or without
  10. : modification, are permitted provided that the following conditions are met:
  11. :
  12. : 1. Redistributions of source code must retain the above copyright notice, this
  13. : list of conditions and the following disclaimer.
  14. :
  15. : 2. Redistributions in binary form must reproduce the above copyright notice,
  16. : this list of conditions and the following disclaimer in the documentation
  17. : and/or other materials provided with the distribution.
  18. :
  19. : 3. The name of Atmel may not be used to endorse or promote products derived
  20. : from this software without specific prior written permission.
  21. :
  22. : 4. This software may only be redistributed and used in connection with an Atmel
  23. : AVR product.
  24. :
  25. : THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
  26. : WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  27. : MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
  28. : EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
  29. : ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  30. : (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  31. : LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  32. : ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. : (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  34. : SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. :
  36.  
  37.  
  38. echo.
  39. echo Performing a JTAG Chip Erase command.
  40. "C:\Program Files\Atmel\AVR Tools\AVR32 Studio\plugins\com.atmel.avr.utilities.win32.x86_3.0.0.201009140848\os\win32\x86\bin\avr32program.exe" chiperase
  41.  
  42. echo.
  43. echo Programming MCU memory from `at32uc3l-uart-isp-1.0.1.bin'.
  44. "C:\Program Files\Atmel\AVR Tools\AVR32 Studio\plugins\com.atmel.avr.utilities.win32.x86_3.0.0.201009140848\os\win32\x86\bin\avr32program.exe" program -finternal@0x80000000 -cint -e -v -O0x80000000 -Fbin at32uc3l-uart-isp-1.0.1.bin
  45.  
  46. echo.
  47. echo Programming ISP configuration words (default for STK600-RCUC3L0 i.e. Word2 == 0x929E0B79 and Word1 == 0xE11EFFD7)
  48. "C:\Program Files\Atmel\AVR Tools\AVR32 Studio\plugins\com.atmel.avr.utilities.win32.x86_3.0.0.201009140848\os\win32\x86\bin\avr32program.exe" program -finternal@0x80000000 -ev -O0x808000F8 -Fbin at32uc3l-uart-isp_cfg-1.0.1.dat
  49.  
  50. echo.
  51. echo Programming general-purpose fuse bits: everything as default except BOOTPROT set to 2 (for 8192 Bytes).
  52. "C:\Program Files\Atmel\AVR Tools\AVR32 Studio\plugins\com.atmel.avr.utilities.win32.x86_3.0.0.201009140848\os\win32\x86\bin\avr32program.exe" writefuses -finternal@0x80000000 gp=0xE075FFFF
  53.  
  54. echo.
  55. echo Resetting MCU.
  56. "C:\Program Files\Atmel\AVR Tools\AVR32 Studio\plugins\com.atmel.avr.utilities.win32.x86_3.0.0.201009140848\os\win32\x86\bin\avr32program.exe" reset
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top