Skip to main content
Sep 26, 2020 6:39 PM UTC
Solved

Problems with project generated by CubeMX (Keil , STM32WB55)

Hello! I have a project where I set up the BLE , then I decided to add FreeRTOS to this project. But the problem is that there is an error in the generated project that I cannot solve (It seems the error is from Cube).

(...).axf: Error: L6200E: Symbol vPortSetupTimerInterrupt multiply defined (by port.o and freertos_port.o).

when I open this files I see that there are two implementations

im freertos file

0693W000004HLhpQAG.pngand this is port file

0693W000004HLhuQAG.png

They are not declared globaly. When I comment one of them, I get two new errors, when I seattle these new errors, I get news one. How to end up with this?

This topic has been closed for replies.
Nesrine.JLASSI
Nesrine.JLASSIBest answer
Visitor II
Oct 19, 2020 8:44 AM UTC

Hello @Kolab​ 

Thanks for your post. I have raised your feedback internally to be reviewed and treated accordingly to the priority. We will give you an update as soon as possible.

Thanks for your contribution,

Best regards,

Nesrine

8 replies

Nesrine.JLASSI
Visitor II
Oct 8, 2020 8:50 PM UTC

Hello @Kolab​ 

Could you please share your .ioc file to check with.

Best regards,

Nesrine

Oct 10, 2020 9:15 AM UTC
Nesrine.JLASSI
Visitor II
Oct 12, 2020 9:49 AM UTC

Hi @Kolab​ 

It will be internally checked.

Best regards,

Nesrine

Oct 12, 2020 10:42 AM UTC

hello, @Nesrine.JLASSI​  I could solve the problem but not sure if it is the right way: in Cube . in project manager , I increased the minimum Heap Size and the minimum Stack size to 400 and 1000 respectively. When I generated the code, the error came once again and in file freertos.c I renamed the annoying function and the compilation runned without any erros.

The second way through what I solved it was generating to CubeIDE , I increased heap and stack size then there was no need to rename the functions after generation

Nesrine.JLASSI
Visitor II
Oct 13, 2020 9:56 AM UTC

The issue is detected only when using KEIL as toolchain. (no problem with EWARM and CubeIDE).

Oct 13, 2020 10:49 AM UTC

yes

Nesrine.JLASSI
Nesrine.JLASSIBest answer
Visitor II
Oct 19, 2020 8:44 AM UTC

Hello @Kolab​ 

Thanks for your post. I have raised your feedback internally to be reviewed and treated accordingly to the priority. We will give you an update as soon as possible.

Thanks for your contribution,

Best regards,

Nesrine

Nesrine.JLASSI
Visitor II
Nov 24, 2020 11:56 AM UTC

Hello @Kolab​ 

As a Workaround you can set configOVERRIDE_DEFAULT_TICK_CONFIGURATION to 1 (in FreeRTOS UI) when using Keil toolchain.

Best regards,

Nesrine