madGambol

sysfs-gpio-cubieboard-swd

May 28th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #
  2. # Config for using Cubieboard's expansion header
  3. #
  4. # This is best used with a fast enough buffer but also
  5. # is suitable for direct connection if the target voltage
  6. # matchesi the CB's 3.3V
  7. #
  8. # Do not forget the GND connection, pin 19, 20, 37 of U15,
  9. # and 2, 9, 20, 38, 42 of U14 of the expansion header.
  10. #
  11.  
  12. interface sysfsgpio
  13. transport select swd
  14.  
  15. reset_config srst_nogate
  16. adapter_nsrst_delay 100
  17. adapter_nsrst_assert_width 100
  18.  
  19. # Each of the JTAG lines need a gpio number set: tck tms tdi tdo
  20. # Header pin numbers: 23 22 19 21
  21. #sysfsgpio_jtag_nums 11 25 10 9
  22.  
  23. # At least one of srst or trst needs to be specified
  24. # Header pin numbers: TRST - 26, SRST - 18
  25. #sysfsgpio_trst_num 7
  26. #sysfsgpio_srst_num 24
  27.  
  28. #
  29. # for Cubieboard
  30. #
  31. sysfsgpio_swclk_num 194
  32. sysfsgpio_swdio_num 196
  33. sysfsgpio_srst_num 198
  34.  
  35. #sysfsgpio_swo_num ???
Advertisement
Add Comment
Please, Sign In to add comment