tmpa910.cfg 1.2 KB

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