raspberrypi-gpio-connector.cfg 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. #
  3. # Config for Raspberry Pi GPIO header
  4. #
  5. # This is best used with a fast enough buffer but also
  6. # is suitable for direct connection if the target voltage
  7. # matches RPi's 3.3V and the cable is short enough.
  8. #
  9. # Do not forget the GND connection, e.g. pin 20 of the GPIO header.
  10. #
  11. # GPIO 25 (pin 22) previously used for TMS/SWDIO is pulled-down by default.
  12. # The JTAG/SWD specification requires pull-up at the target board
  13. # for either signal. Connecting the signal pulled-up on the target
  14. # to the pull-down on the adapter is not a good idea.
  15. # GPIO 8 is pulled-up by default.
  16. echo "Warn : TMS/SWDIO moved to GPIO 8 (pin 24). Check the wiring please!"
  17. # Each of the JTAG lines need a gpio number set: tck tms tdi tdo
  18. # Header pin numbers: 23 24 19 21
  19. adapter gpio tck -chip 0 11
  20. adapter gpio tms -chip 0 8
  21. adapter gpio tdi -chip 0 10
  22. adapter gpio tdo -chip 0 9
  23. # Each of the SWD lines need a gpio number set: swclk swdio
  24. # Header pin numbers: 23 24
  25. adapter gpio swclk -chip 0 11
  26. adapter gpio swdio -chip 0 8
  27. # If you define trst or srst, use appropriate reset_config
  28. # Header pin numbers: TRST - 26, SRST - 18
  29. # adapter gpio trst -chip 0 7
  30. # reset_config trst_only
  31. # adapter gpio srst -chip 0 24
  32. # reset_config srst_only srst_push_pull
  33. # or if you have both connected,
  34. # reset_config trst_and_srst srst_push_pull