orgua / shepherd

Synchronized Energy Harvesting Emulator and Recorder
MIT License
2 stars 2 forks source link

pru-programmer - compatibility for hw v2.4 - direction-pins #20

Closed orgua closed 1 year ago

orgua commented 1 year ago

the firmware doesn't know yet how and when to change the IO-Pin direction

Programming-Pins

# SWD1 CLK - jtag TCK   - always TX
# SWD1 IO  - jtag TDI   - pDir1-pin / rxtx
# SWD2 CLK - jtag TDO   - always TX
# SWD2 IO  - jtag TMS   - pDir2-pin / rxtx

swd1_clk = 5
swd1_io = 4
swd2_clk = 8
swd2_io = 9

Direction-Pins

swd1_io = 10  # P8_31, GPIO0[10]
swd2_io = 11  # P8_32, GPIO0[11]

Link to Source

orgua commented 1 year ago

Userspace up to pru-interface knows about direction pins. Last step would be:

orgua commented 1 year ago

implemented for SWD & SBW, tested with SWD / nrf52