Guest User

openocd config

a guest
Oct 13th, 2022
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. set _CHIPNAME armM0P
  2.  
  3. set _M0_JTAG_TAPID 0x0ba01477
  4.  
  5. jtag newtap auto0 tap -irlen 4 -expected-id $_M0_JTAG_TAPID
  6. jtag newtap auto1 tap -irlen 4 -expected-id $_M0_JTAG_TAPID
  7. jtag newtap auto2 tap -irlen 4 -expected-id $_M0_JTAG_TAPID
  8. jtag newtap auto3 tap -irlen 4 -expected-id $_M0_JTAG_TAPID
  9.  
  10. dap create $_CHIPNAME.m0app.dap -chain-position auto0.tap
  11. dap create $_CHIPNAME.m1app.dap -chain-position auto1.tap
  12. dap create $_CHIPNAME.m2app.dap -chain-position auto2.tap
  13. dap create $_CHIPNAME.m3app.dap -chain-position auto3.tap
  14.  
  15. target create $_CHIPNAME.m0app cortex_m -dap $_CHIPNAME.m0app.dap
  16. target create $_CHIPNAME.m1app cortex_m -dap $_CHIPNAME.m1app.dap
  17. target create $_CHIPNAME.m2app cortex_m -dap $_CHIPNAME.m2app.dap
  18. target create $_CHIPNAME.m3app cortex_m -dap $_CHIPNAME.m3app.dap
  19.  
  20. targets $_CHIPNAME.m3app
  21.  
  22. $_CHIPNAME.m3app configure -endian little -work-area-phys 0x20000000 -work-area-size 0xF000 -work-area-backup 0
  23.  
  24. cortex_m reset_config vectreset
Advertisement
Add Comment
Please, Sign In to add comment