1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-23 05:23:50 +01:00

Merge pull request #20766 from krzysztof-cabaj/stm32l0538-disco-cpy2remed

boards/stm32l0538-disco: enable cpy2remed
This commit is contained in:
Marian Buschsieweke 2024-06-26 20:49:26 +00:00 committed by GitHub
commit 4fe8a15452
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 2 deletions

View File

@ -11,4 +11,7 @@ PROGRAMMER ?= openocd
OPENOCD_DEBUG_ADAPTER ?= stlink
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd
PROGRAMMERS_SUPPORTED += openocd cpy2remed
#needed by cpy2remed
DIR_NAME_AT_REMED = "DISCOVERY"

View File

@ -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