在 stm32f103单片机开发 中介绍了使用qemu仿真 BluePill 开发板, 这次选择 STM32F429I-Discovery 开发板,因为这个板子有 LCD。
开发板介绍
参考 https://www.st.com/resource/en/user_manual/dm00093903-discovery-kit-with-stm32f429zi-mcu-stmicroelectronics.pdf
https://www.st.com/zh/evaluation-tools/32f429idiscovery.html
https://docs.platformio.org/en/latest/boards/ststm32/disco_f429zi.html
参考代码 https://github.com/monoclecat/STM32F4-discovery-lcd.git
Creating custom board for STM32F429ZGT6
https://community.platformio.org/t/creating-custom-board-for-stm32f429zgt6/23582
开工
1
2
3
4
5
|
mkdir -p /data/stm32f429 && cd /data/stm32f429
# 从 https://docs.platformio.org/en/latest/boards/ststm32/disco_f429zi.html 可以看出支持的 framework
pip install pyelftools==0.29
pio init -b disco_f429zi --ide qtcreator -O "framework=mbed"
wget https://github.com/platformio/platform-ststm32/raw/master/examples/mbed-rtos-serial/src/main.cpp -O src/main.cpp
|