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.
 
 
 
 
 
 

37 lines
845 B

  1. #
  2. # NXP i.MX7ULP: Cortex-A7 + Cortex-M4
  3. #
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME imx7ulp
  8. }
  9. # CoreSight Debug Access Port
  10. if { [info exists DAP_TAPID] } {
  11. set _DAP_TAPID $DAP_TAPID
  12. } else {
  13. # TAPID is from FreeScale!
  14. set _DAP_TAPID 0x188e101d
  15. }
  16. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0x0f \
  17. -expected-id $_DAP_TAPID
  18. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
  19. # Cortex-A7
  20. target create $_CHIPNAME.cpu_a7 cortex_a -dap $_CHIPNAME.dap \
  21. -coreid 0 -dbgbase 0x80030000
  22. # Cortex-M4
  23. # Boots by default so don't defer examination
  24. target create $_CHIPNAME.cpu_m4 cortex_m -dap $_CHIPNAME.dap -ap-num 3
  25. # AHB main soc bus
  26. target create $_CHIPNAME.ahb mem_ap -dap $_CHIPNAME.dap -ap-num 0
  27. # Default is Cortex-A7
  28. targets $_CHIPNAME.cpu_a7