Wrong compilation path selected for this board

Post here first, or if you can't find a relevant section!
Post Reply
SvenBosma
Posts: 1
Joined: Fri Nov 18, 2022 9:27 am

Wrong compilation path selected for this board

Post by SvenBosma »

Hi everyone,

I am new to this forum, so sorry if there' s something wrong with the way I'm posting. I will do my best to provide all the information needed.

The problem I am encountering is that the STM32 MCU based boards library 2.2.0 by STMicroelectronics selects the wrong folder when I click the board. When I select the STM32F0xx board and then select "Generic STM32F030C8Tx" as board part number, the definition folder opened by arduino is wrong. It opens the folder path to the STM32F030F4 Demo Board. This is a completely different board which results in pins having the wrong address and peripherals not working etc.

Does someone know a solution to change the board compilation path to the correct folder? STM32Duino does have the right folder with the correct information for the STM32F030C8Tx, it is just not selected when you choose this board from the drop down menu's in Arduino IDE 2.0.2
Using windows 11,
STM32 MCU based boards library 2.2.0 by STMicroelectronics,
STM32F030C8T6
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Wrong compilation path selected for this board

Post by fpiSTM »

Well, I guess it is a bug of the arduino IDE 2.0.0
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Wrong compilation path selected for this board

Post by fpiSTM »

I've made the test and it is correct.
The generic F03C8T is built, you can see in your log file:

Code: Select all

2.3.0\\variants\\STM32F0xx\\F030C8T\\variant_generic.cpp
When you told wrong path it is not for compilation but for the editor when you use "Go To Definition".
I confirm it opens the variant_DEMO_F030F4.h. Don't know why like this path is not part of any config found in the output folder.

So you can report this issue to Arduino IDE 2.x repository.
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Wrong compilation path selected for this board

Post by fpiSTM »

Probably linked to Language server.
Ex: https://github.com/arduino/arduino-ide/issues/31
Post Reply

Return to “General discussion”