From a6a731d300e53fda4d10363062b313dc5d3b7de8 Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Wed, 26 Jun 2024 15:05:36 +0200 Subject: [PATCH] boards/stm32l0538-disco: doc update --- boards/stm32l0538-disco/doc.txt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/boards/stm32l0538-disco/doc.txt b/boards/stm32l0538-disco/doc.txt index f283457c9e..55dcef411b 100644 --- a/boards/stm32l0538-disco/doc.txt +++ b/boards/stm32l0538-disco/doc.txt @@ -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