Wiki » Historie » Version 3
Maximilian Seesslen, 21.11.2025 16:03
| 1 | 1 | Maximilian Seesslen | h1. Wiki |
|---|---|---|---|
| 2 | |||
| 3 | Using ST-tools to flash images to SPI would be really nice. The Bootloader protocol is not that complicated. |
||
| 4 | https://www.st.com/en/development-tools/stm32cubeprog.html |
||
| 5 | https://www.st.com/resource/en/application_note/an3155-usart-protocol-used-in-the-stm32-bootloader-stmicroelectronics.pdf |
||
| 6 | 2 | Maximilian Seesslen | |
| 7 | The code should run on PC in order to test it. The serial interface can be a pseudo device: |
||
| 8 | <pre><code class="shell"> |
||
| 9 | socat -d -d pty,rawer,link=host,echo=0 pty,rawer,link=target,echo=0 |
||
| 10 | 3 | Maximilian Seesslen | </code></pre> |
| 11 | |||
| 12 | 2 Terminals are needed: |
||
| 13 | <pre><code class="shell"> |
||
| 14 | 2 | Maximilian Seesslen | ${HOME}/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI -c port=$PWD/host -e all -d theme_noto/media.bin 0x0 |
| 15 | 3 | Maximilian Seesslen | </code></pre> |
| 16 | <pre><code class="shell"> |
||
| 17 | 2 | Maximilian Seesslen | tio -t -l tio.log $PWD/target |
| 18 | </code></pre> |