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.
 
 
 
 
 
 

29 lines
823 B

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