-
Notifications
You must be signed in to change notification settings - Fork 237
Assembling "Main PCB": Programming and first tests
iliasam edited this page May 1, 2020
·
2 revisions
After "Main PCB" is assembled we need to test working of the MCU.
- Connect external +5V power lines to the "GND" and "PWR+" pads at the PCB.
- Connect programmer to the J1 (3.5mm Jack) or J2 (PLS-3) connectors. Both connectors are SWD. You can use any of them.
- Ensure that MCU is accessible by programmer software.
- Load "test_encoder_blinking" firmware to the MCU.
- Ensure that LED is blinking at power-up.
Firmware is loaded to the MCU using any SWD programmer that is supporting STM32.
You can use, for example, original ST-Link, any kind of STM32FXXX-Discovery board - they have integrated ST-Link programmer, or cheap Chinese ST-Link clone.
"ST-Link Utility" could be used for flashing HEX file.
Needed HEX file is placed here: LINK
J1 pinout: Sleeve - ground, Ring - SWCLK, Tip - SWDIO.
J2 pinout is written at the board in silk layer.