You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
988 B

  1. # Script for TI/Luminary Stellaris LM3S811
  2. if { [info exists CHIPNAME] } {
  3. set _CHIPNAME $CHIPNAME
  4. } else {
  5. set _CHIPNAME lm3s811
  6. }
  7. if { [info exists ENDIAN] } {
  8. set _ENDIAN $ENDIAN
  9. } else {
  10. # this defaults to a little endian
  11. set _ENDIAN little
  12. }
  13. if { [info exists CPUTAPID ] } {
  14. set _CPUTAPID $CPUTAPID
  15. } else {
  16. set _CPUTAPID 0x3ba00477
  17. }
  18. #jtag scan chain
  19. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
  20. # the luminary variant causes a software reset rather than asserting SRST
  21. # this stops the debug registers from being cleared
  22. # this will be fixed in later revisions of silicon
  23. set _TARGETNAME $_CHIPNAME.cpu
  24. target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -variant lm3s
  25. # 8k working area at base of ram
  26. $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x2000 -work-area-backup 0
  27. #flash configuration
  28. flash bank stellaris 0 0 0 0 0