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.
 
 
 
 
 
 

46 lines
1.1 KiB

  1. # Script for luminary 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. # force an error till we get a good number
  17. set _CPUTAPID 0x3ba00477
  18. }
  19. # jtag speed
  20. jtag_khz 500
  21. jtag_nsrst_delay 100
  22. jtag_ntrst_delay 100
  23. #LM3S811 Evaluation Board has only srst
  24. reset_config srst_only
  25. #jtag scan chain
  26. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
  27. # the luminary variant causes a software reset rather than asserting SRST
  28. # this stops the debug registers from being cleared
  29. # this will be fixed in later revisions of silicon
  30. set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
  31. target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -variant lm3s
  32. # 8k working area at base of ram
  33. $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x2000 -work-area-backup 0
  34. #flash configuration
  35. flash bank stellaris 0 0 0 0 0