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.
 
 
 
 
 
 

47 lines
1.1 KiB

  1. ######################################
  2. # Target: Toshiba TMPA900
  3. ######################################
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME tmpa900
  8. }
  9. # Toshiba TMPA900 series MCUs are always little endian as per datasheet.
  10. set _ENDIAN little
  11. if { [info exists CPUTAPID] } {
  12. set _CPUTAPID $CPUTAPID
  13. } else {
  14. set _CPUTAPID 0x07926031
  15. }
  16. #TMPA900 has following IDs:
  17. # CP15.0 register 0x41069265
  18. # CP15.1 register 0x1d152152
  19. # ARM core 0x07926031
  20. #
  21. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  22. #use combined on interfaces or targets that can't set TRST/SRST separately
  23. reset_config trst_and_srst
  24. adapter_nsrst_delay 20
  25. jtag_ntrst_delay 20
  26. ######################
  27. # Target configuration
  28. ######################
  29. set _TARGETNAME $_CHIPNAME.cpu
  30. target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
  31. # Internal RAM-0 (16kB): 0xf8004000
  32. # Internal RAM-1 (8kB): 0xf8008000
  33. # Use internal RAM-0 and RAM-1 as working area (24kB total).
  34. $_TARGETNAME configure -work-area-phys 0xf8004000 -work-area-size 0x6000 \
  35. -work-area-backup 0