Skip to content

Commit

Permalink
stm32f1: add short description to Targets.md
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Dahlström <[email protected]>
  • Loading branch information
Risca committed Feb 15, 2025
1 parent 80cea5f commit e878621
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/Targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ This README describes configuration of supported targets.
* [Renesas RZN2L](#renesas-rzn2l)
* [SiFive HiFive1 RISC-V](#sifive-hifive1-risc-v)
* [STM32C0](#stm32c0)
* [STM32F1](#stm32f1)
* [STM32F4](#stm32f4)
* [STM32F7](#stm32f7)
* [STM32G0](#stm32g0)
Expand Down Expand Up @@ -103,6 +104,36 @@ b main
c
```

## STM32F1

Similar layout as the STM32F4, but for a much smaller 64KB flash.

WolfBoot occupy 13KB, followed by 2x25 KB firmware partitions, and a 1KB swap:

```
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08003400
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08009800
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x0800FC00
```

This is with the sample config in [config/examples/stm32f1.config](config/examples/stm32f1.config).

Note that with this partition layout, WolfBoot cannot be compiled with debug support.

The test application for STM32F1 is designed so that if it boots a version 1 software, it will trigger an update
If the running software version is 2, all is good.
In both cases, PC13 is cleared (lights up the green LED on a Blue Pill board).

### STM32F1 Programming

All STM32F1 devices come with a builtin bootloader that can be used to program the device.
It allows firmware upload on USART0 (pin A9 and A10 on the Blue Pill) using a usb-serial converter.
The bootloader is entered by pulling the BOOT0 pin high.
Once the builtin bootloader is active, the STM32F1 can be programmed with `stm32flash`:

```
stm32flash -w factory.bin -b 115200 -g 0 /dev/ttyUSB0
```

## STM32L4
Example 1MB partitioning on STM32L4
Expand Down

0 comments on commit e878621

Please sign in to comment.