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.
 
 
 
 
 
 

39 lines
994 B

  1. # TI/Luminary Stellaris lm3s6965
  2. if { [info exists CHIPNAME] } {
  3. set _CHIPNAME $CHIPNAME
  4. } else {
  5. set _CHIPNAME lm3s6965
  6. }
  7. if { [info exists CPUTAPID ] } {
  8. set _CPUTAPID $CPUTAPID
  9. } else {
  10. set _CPUTAPID 0x3ba00477
  11. }
  12. # jtag speed
  13. adapter_khz 500
  14. jtag_nsrst_delay 100
  15. jtag_ntrst_delay 100
  16. #LM3S6965 Evaluation Board has only srst
  17. reset_config srst_only
  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 -chain-position $_CHIPNAME.cpu -variant lm3s
  25. # 8k working area at base of ram, not backed up
  26. $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x2000
  27. #flash configuration
  28. set _FLASHNAME $_CHIPNAME.flash
  29. flash bank $_FLASHNAME stellaris 0 0 0 0 $_TARGETNAME