TEXT 74
Rasp.conf Guest on 9th April 2021 12:46:11 PM
  1. #
  2. # Config for using Raspberry Pi'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. # matches RPi's 3.3V and the cable is short enough.
  7. #
  8. # Do not forget the GND connection, pin 6 of the expansion header.
  9. #
  10.  
  11. interface bcm2835gpio
  12.  
  13. bcm2835gpio_peripheral_base 0x3F000000
  14.  
  15. # Transition delay calculation: SPEED_COEFF/khz - SPEED_OFFSET
  16. # These depend on system clock, calibrated for stock 700MHz
  17. # bcm2835gpio_speed SPEED_COEFF SPEED_OFFSET
  18. #bcm2835gpio_speed_coeffs 146203 36
  19. # Raspi3 BCM2837 (1200Mhz):
  20. bcm2835gpio_speed_coeffs 194938 48
  21.  
  22. # Each of the JTAG lines need a gpio number set: tck tms tdi tdo
  23. # Header pin numbers: 23 22 19 21
  24. bcm2835gpio_jtag_nums 11 25 10 9
  25.  
  26. adapter_khz 1000
  27.  
  28. # or if you have both connected,
  29. # reset_config trst_and_srst srst_push_pull
  30.  
  31. # Each of the SWD lines need a gpio number set: swclk swdio
  32. # Header pin numbers: 22 18
  33. #bcm2835gpio_swd_nums 25 24
  34.  
  35. # If you define trst or srst, use appropriate reset_config
  36. # Header pin numbers: TRST - 26, SRST - 18
  37.  
  38. bcm2835gpio_trst_num 7
  39. # reset_config trst_only
  40.  
  41. bcm2835gpio_srst_num 18
  42. reset_config srst_only srst_push_pull
  43.  
  44. # or if you have both connected,
  45. # reset_config trst_and_srst srst_push_pull
  46.  
  47. transport select jtag
  48.  
  49. jtag newtap auto0 tap -irlen 4 -expected-id 0x4ba00477
  50. target create mex1 cortex_r4 -chain-position auto0.tap -coreid 0
  51. #target create mex2 cortex_r4 -chain-position auto0.tap -coreid 1 -dbgbase 0x80002000
  52. #target create mex3 cortex_r4 -chain-position auto0.tap -coreid 2 -dbgbase 0x80003000

Paste-bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.