Guest User

Untitled

a guest
Jun 21st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. interface ftdi
  2. ftdi_device_desc "Dual RS232-HS"
  3. ftdi_vid_pid 0x0403 0x6010
  4. ftdi_channel 0
  5. ftdi_layout_init 0x0708 0xFFFB
  6. ftdi_layout_signal nTRST -data 0x0100
  7. ftdi_layout_signal nSRST -data 0x0200
  8. transport select jtag
  9. adapter_khz 2000
  10.  
  11. set _CHIPNAME lpc4337
  12. set _M4_JTAG_TAPID 0x4ba00477
  13. set _M0_JTAG_TAPID 0x0ba01477
  14. jtag newtap $_CHIPNAME m4 -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M4_JTAG_TAPID
  15. dap create $_CHIPNAME.m4.dap -chain-position $_CHIPNAME.m4
  16. target create $_CHIPNAME.m4 cortex_m -dap $_CHIPNAME.m4.dap
  17. jtag newtap $_CHIPNAME m0 -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M0_JTAG_TAPID
  18. dap create $_CHIPNAME.m0.dap -chain-position $_CHIPNAME.m0
  19. target create $_CHIPNAME.m0 cortex_m -dap $_CHIPNAME.m0.dap
  20. set _WORKAREASIZE 0x8000
  21. $_CHIPNAME.m4 configure -work-area-phys 0x10000000 -work-area-size $_WORKAREASIZE
  22. set _FLASHNAME $_CHIPNAME.flash
  23. flash bank $_FLASHNAME lpc2000 0x1a000000 0x80000 0 0 $_CHIPNAME.m4 lpc4300 96000 calc_checksum
  24.  
  25. reset_config none
  26. cortex_m reset_config vectreset
  27.  
  28. targets $_CHIPNAME.m4
  29. $_CHIPNAME.m4 configure -event gdb-attach {
  30. echo "Reset Halt, due to gdb attached...!"
  31. reset halt
  32. }
Add Comment
Please, Sign In to add comment