Advertisement
Guest User

Prime OpenOCD Config

a guest
Apr 11th, 2015
626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. ## Configure for the Bus Blaster probe
  2. interface ftdi
  3. ftdi_device_desc "Dual RS232-HS"
  4. ftdi_vid_pid 0x0403 0x6010
  5.  
  6. ftdi_layout_init 0x0c08 0x0f1b
  7. ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400
  8. ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800
  9.  
  10. ## Declare TAPs
  11. jtag newtap S3C2416 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x07926f0f
  12.  
  13. ## Create the target
  14. target create S3C2416_arm_cpu arm926ejs -endian little -chain-position 0
  15.  
  16. ## Setup work area (internal SRAM, 64KB)
  17. S3C2416_arm_cpu configure -work-area-phys 0x40002000 -work-area-size 0x8000
  18.  
  19. ## Setup nand controller (2412 uses similar controller)
  20. nand device S3C2416_samsung_nand s3c2412 S3C2416_arm_cpu
  21.  
  22. ## Srst and trst are connected
  23. reset_config trst_and_srst combined
  24.  
  25. ## Wait a bit before performing jtag operations after a reset
  26. adapter_nsrst_delay 10
  27.  
  28. ## Low frequency required for picking up the CPU when it's at slow speeds,
  29. ## speed this up to ~5000 when it goes back to normal for faster nand transfers/etc
  30. adapter_khz 500
  31.  
  32. ## Start!
  33. init
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement