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.
 
 
 
 
 
 

52 lines
1.4 KiB

  1. source [find target/icepick.cfg]
  2. if { [info exists CHIPNAME] } {
  3. set _CHIPNAME $CHIPNAME
  4. } else {
  5. set _CHIPNAME am335x
  6. }
  7. #
  8. # M3 DAP
  9. #
  10. if { [info exists M3_DAP_TAPID] } {
  11. set _M3_DAP_TAPID $M3_DAP_TAPID
  12. } else {
  13. set _M3_DAP_TAPID 0x4b6b902f
  14. }
  15. jtag newtap $_CHIPNAME m3_dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M3_DAP_TAPID -disable
  16. jtag configure $_CHIPNAME.m3_dap -event tap-enable "icepick_d_tapenable $_CHIPNAME.jrc 11 0"
  17. #
  18. # Main DAP
  19. #
  20. if { [info exists DAP_TAPID] } {
  21. set _DAP_TAPID $DAP_TAPID
  22. } else {
  23. set _DAP_TAPID 0x4b6b902f
  24. }
  25. jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_DAP_TAPID -disable
  26. jtag configure $_CHIPNAME.dap -event tap-enable "icepick_d_tapenable $_CHIPNAME.jrc 12 0"
  27. #
  28. # ICEpick-D (JTAG route controller)
  29. #
  30. if { [info exists JRC_TAPID] } {
  31. set _JRC_TAPID $JRC_TAPID
  32. } else {
  33. set _JRC_TAPID 0x0b94402f
  34. }
  35. jtag newtap $_CHIPNAME jrc -irlen 6 -ircapture 0x1 -irmask 0x3f -expected-id $_JRC_TAPID -ignore-version
  36. jtag configure $_CHIPNAME.jrc -event setup "jtag tapenable $_CHIPNAME.dap"
  37. # some TCK tycles are required to activate the DEBUG power domain
  38. jtag configure $_CHIPNAME.jrc -event post-reset "runtest 100"
  39. #
  40. # Cortex A8 target
  41. #
  42. set _TARGETNAME $_CHIPNAME.cpu
  43. target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap -dbgbase 0x80001000
  44. # SRAM: 64K at 0x4030.0000; use the first 16K
  45. $_TARGETNAME configure -work-area-phys 0x40300000 -work-area-size 0x4000