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.
 
 
 
 
 
 

33 lines
846 B

  1. #
  2. # Luminary Micro Stellaris LM3S9B9x Microcontroller
  3. #
  4. # http://www.luminarymicro.com/products/lm3s9b90.html
  5. # http://www.luminarymicro.com/products/lm3s9b92.htm
  6. #
  7. if { [info exists CHIPNAME] } {
  8. set _CHIPNAME $CHIPNAME
  9. } else {
  10. set _CHIPNAME lm3s9b9x
  11. }
  12. if { [info exists CPUTAPID ] } {
  13. set _CPUTAPID $CPUTAPID
  14. } else {
  15. # Fourth generation "Tempest" device
  16. set _CPUTAPID 0x4ba00477
  17. }
  18. #jtag scan chain
  19. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
  20. #Cortex-M3 with Luminary lm3s variant
  21. set _TARGETNAME $_CHIPNAME.cpu
  22. target create $_TARGETNAME cortex_m3 -chain-position $_CHIPNAME.cpu -variant lm3s
  23. # 16k working area at base of ram, not backed up
  24. $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x4000
  25. #flash configuration
  26. flash bank stellaris 0 0 0 0 $_TARGETNAME