Hi I have tried creating a custom board json file for stm32h563zgt6 chip, however platformio does not appear to have the variant config files for this chip.
What do I need to do to get this project initialized properly to work with this chip?
Many thanks!
Creating a custom board JSON file for a generic STM32H563ZGT6 board is easy enough, but even the most current mainline OpenOCD version can’t upload via SWD to this chip (see available targets). The STM32Duino core in the Arduino IDE uses the STM32CubeProgrammer for upload, but PlatformIO has no such package available.
While that can be created and included, I think a simple test is easier at first.
Just download + open
and build it. It should create the file .pio\build\genericSTM32H563ZG\firmware.bin
. Upload it via https://www.st.com/en/development-tools/stm32cubeprog.html and reset the board. See if it blinks and outputs stuff via UART as would be expected from the code in src/main.cpp
. Adapt the LED pin as needed.