Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
boards:demov1 [2022/11/13 12:19] – [Setup] darron | boards:demov1 [2022/11/21 13:48] (current) – darron | ||
---|---|---|---|
Line 5: | Line 5: | ||
{{: | {{: | ||
\\ \\ | \\ \\ | ||
- | {{: | + | {{: |
\\ \\ | \\ \\ | ||
{{boards: | {{boards: | ||
Line 53: | Line 53: | ||
SPI1 MISO PA6 | SPI1 MISO PA6 | ||
SPI1 MOSI PA7 | SPI1 MOSI PA7 | ||
+ | </ | ||
+ | |||
+ | ===Clocks=== | ||
+ | |||
+ | < | ||
+ | HSE 8000000 X1 8MHz | ||
+ | HSI 8000000 | ||
+ | LSE 0 N/A | ||
+ | LSI 32768 | ||
</ | </ | ||
=== Power === | === Power === | ||
- | Power is supplied on the USB socket which feeds a 3V3 LDO regulator. The USB socket does not support I/O, it's only for powering the device. | ||
- | === Setup === | + | Power is supplied on the USB socket or the 5V pins. This feeds a 3V3 LDO regulator. |
+ | |||
+ | The USB socket does not support I/O, it's only for powering the device. | ||
+ | |||
+ | === Test === | ||
For testing this board use a [[interfaces: | For testing this board use a [[interfaces: | ||
reset and a source or external interrupt. Picocom is used to control the reset | reset and a source or external interrupt. Picocom is used to control the reset | ||
- | pin and provide a pulse for testing | + | pin and provide a pulse for testing |
- | For programming, | + | For programming, |
==Wiring== | ==Wiring== | ||
Line 77: | Line 89: | ||
| | ||
| | ||
+ | | ||
+ | USB| JLINK/ |DIO-----------DIO | ||
+ | | CLONE |CLK-----------CLK | ||
+ | | ||
- | USB on left is RPi host and USB on right is USB bus power pin. | + | USB on left is RPi host and USB on right is USB 5V pin on UM232R. |
</ | </ | ||
==Comms== | ==Comms== | ||
+ | |||
+ | The lower-rts option to picocom will take the board out of | ||
+ | reset and run the program. | ||
< | < | ||
- | picocom -b 115200 / | + | picocom |
</ | </ | ||
+ | |||
+ | From the RS232 perspective RTS is inverted so when picocom takes | ||
+ | the line low, it's actually a high logical output and the board | ||
+ | is taken out of reset. | ||
==Reset== | ==Reset== | ||
- | CTRL A CTRL G will change | + | Picocom |
- | From the RS232 perspective it's inverted so when picocom says | + | |
- | the line is low, it's actually a high output and the device | + | ==Reboot== |
- | is out of reset. | + | |
+ | If the board is sleeping, picocom can reboot | ||
+ | it for new programming. | ||
+ | |||
+ | < | ||
+ | picocom --quiet --lower-rts --baud 115200 --exit-after 0 / | ||
+ | </ | ||
==Pulse== | ==Pulse== | ||
- | CTRL A CTRL P will pulse the DTR pin from low to high for | + | Picocom |
- | 1 second. | + | 1 second |
- | === Test === | + | |
+ | === Programming | ||
- | Test SWD with J-Link | + | Use SWD with J-Link |
==J-Link== | ==J-Link== |