I am trying to run the libopencm3 USB serial example for the STM32 Discovery F4.
I created a new platformio project, set the board to Discovery F4, set the framework to libopencm3, and put the above C file in the src
folder.
When I click build, I get errors that symbols such as rcc_hse_8mhz_3v3
, RCC_CLOCK_3V3_168MHZ
and rcc_clock_setup_pll
are undefined.
I can see where these symbols are defined within the libopencm3 source on github. When I look at the corresponding file under my .platformio
directory, I see that they are missing. Looking at the version.txt
in my framework-libopencm3 folder, I see the contents is 16_10_2015
, suggesting that this is quite an old version. But according to pio update
, this is the latest version available with platformio.
Because libopencm3 is treated as a framework, rather than a library, it is not clear to me if or how I could update this manually. Any suggestions would be most appreciated.