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.
 
 
 
 
 
 

50 lines
1.2 KiB

  1. # Script for luminary lm3s3748
  2. #
  3. # NB! work in progress! Duplicated from lm3s811.cfg, but does
  4. # it need modification??
  5. if { [info exists CHIPNAME] } {
  6. set _CHIPNAME $CHIPNAME
  7. } else {
  8. set _CHIPNAME lm3s3748
  9. }
  10. if { [info exists ENDIAN] } {
  11. set _ENDIAN $ENDIAN
  12. } else {
  13. # this defaults to a little endian
  14. set _ENDIAN little
  15. }
  16. if { [info exists CPUTAPID ] } {
  17. set _CPUTAPID $CPUTAPID
  18. } else {
  19. # force an error till we get a good number
  20. set _CPUTAPID 0x3ba00477
  21. }
  22. # RCLK
  23. jtag_khz 500
  24. jtag_nsrst_delay 100
  25. jtag_ntrst_delay 100
  26. #lm3s3748 Evaluation Board has only srst
  27. reset_config srst_only
  28. #jtag scan chain
  29. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
  30. # the luminary variant causes a software reset rather than asserting SRST
  31. # this stops the debug registers from being cleared
  32. # this will be fixed in later revisions of silicon
  33. set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
  34. target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -variant lm3s
  35. # 8k working area at base of ram
  36. $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x2000 -work-area-backup 0
  37. #flash configuration
  38. flash bank stellaris 0 0 0 0 0