STM32F board will not select?

Generic F401CC board can is not be selected for compile. The Tools - boards menu shows the correct list of boards, and they can be selected. But when compiling only the board at the top of the list is used resulting in :
: fatal error: variant_BLACK_F407VX.h: No such file or directory
compilation terminated.
Compilation error: exit status 1}

I have tried and removed the adding the stm url to the boards manager to no effect.

This makes the IDE unuseable for me.

Best Regards

picclock

I have managed to resolve this issue, but its a bit strange, possibly a boards library problem.
I had managed to compile my sketch with the correct board several times before this occurred.
When selecting the board manager in the tools menu, which brings up a list of the board definitions in the left pane the stm32 board group was not installed. This is odd as the board type was listed as GENERIC STM32F series in the title bar and all the stm individual boards are listed from the Tools board part number, and could be selected - even though it did not work.

Clicking install on the STM board definitions resolved the issue.

So to sum up the bug is that the board option and selection in the tools menu is displayed even when the library is not installed.

Further investigation shows that when the Preferences url is set (https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/main/package_stmicroelectronics_index.json) this disables the the inbuilt board selection whilst leaving it to be selectable.
Difficult to explain but the following image shows the problem :

As you can see it installed (not), and yet offers to install below.

Hope this helps some other bewildered user.

Best Regards

picclock

Hi @picclock. Thanks so much for your report!

It took me a while to track down the cause of this confusing bug, but I finally got it. I have reported it to Arduino's developers here:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.