Skip to content

Commit

Permalink
boards/stm32l0538-disco: doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-cabaj committed Jun 26, 2024
1 parent 0e080e3 commit a6a731d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion boards/stm32l0538-disco/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,28 @@ The board also provides an on-board 2.04\" E-paper display (not supported yet).
| UARTs | USART1 on PA10 (RX), PA9 (TX) |
| SPIs | SPI1 on PB5 (MOSI), PB4 (MISO), PB3 (SCLK); SPI2 on PB15 (MOSI), PB14 (MISO), PB13 (SCLK) |

### Flashing the board
## Flashing the device

### Flashing the board using OpenOCD

The board can be flashed using OpenOCD via the on-board ST-Link adapter.
Then use the following command:

make BOARD=stm32l0538-disco -C examples/hello-world flash

## Flashing the Board Using ST-LINK Removable Media

On-board ST-LINK programmer provides via composite USB device removable media.
Copying the HEX file causes reprogramming of the board. This task
could be performed manually; however, the cpy2remed (copy to removable
media) PROGRAMMER script does this automatically. To program board in
this manner, use the command:
```
make BOARD=stm32l0538-disco PROGRAMMER=cpy2remed flash
```
@note This PROGRAMMER was tested using ST-LINK firmware 2.37.26. Firmware updates
could be found on [this STM webpage](https://www.st.com/en/development-tools/stsw-link007.html).

### STDIO

STDIO is connected to pins PA9 (TX) and PA10 (RX) so an USB to UART adapter is
Expand Down

0 comments on commit a6a731d

Please # to comment.