tmpa900.cfg 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. ######################################
  3. # Target: Toshiba TMPA900
  4. ######################################
  5. if { [info exists CHIPNAME] } {
  6. set _CHIPNAME $CHIPNAME
  7. } else {
  8. set _CHIPNAME tmpa900
  9. }
  10. # Toshiba TMPA900 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. #TMPA900 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 (8kB): 0xf8008000
  34. # Use internal RAM-0 and RAM-1 as working area (24kB total).
  35. $_TARGETNAME configure -work-area-phys 0xf8004000 -work-area-size 0x6000 \
  36. -work-area-backup 0