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
886 B

  1. # TI/Luminary Stellaris lm3s3748
  2. if { [info exists CHIPNAME] } {
  3. set _CHIPNAME $CHIPNAME
  4. } else {
  5. set _CHIPNAME lm3s3748
  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 "lm3s" variant works around an erratum when using Rev A of "DustDevil"
  15. # parts (third generation, includes LM3S3748). It keeps the debug registers
  16. # from being cleared, by using software reset not SRST; NOP on newer revs.
  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 -- one bank of 128K
  22. flash bank stellaris 0 0 0 0 $_TARGETNAME