cancel
Showing results for 
Search instead for 
Did you mean: 

Please confirm this typo in (generated code) Core/Inc/app_conf.h

BoardSurfer
Associate II

Hi, I'm fairly new to the STM32 world. I'm running CubeIDE 1.2.0 with a P-NUCLEO-WB55 board and stm32cube_fw_wb_v140.

I am using the built-in task scheduler and I believe the IDE is generating invalid code. I am pretty sure the code in Core/Inc/app_conf.h shown in the first attachment "original.png" should actually read like the code in "corrected.png" (Ie the -1 should actually be a +1).

Without the change the scheduler does not run my custom task. I first noticed this in CubeIDE 1.1.0 and stm32cube_fw_wb_v130. I have not checked for versions earlier than that.

So for a quick fix I have to run this command in a shell after every code generation:

sed -i 's/CFG_FIRST_TASK_ID_WITH_NO_HCICMD = CFG_LAST_TASK_ID_WITH_HCICMD - 1/CFG_FIRST_TASK_ID_WITH_NO_HCICMD = CFG_LAST_TASK_ID_WITH_HCICMD + 1/' $projectdir/Core/Inc/app_conf.h

Please review and let me know if the change is required, or if I am not understanding things correctly.

Thanks!

2 REPLIES 2
BoardSurfer
Associate II

Attachments here..

BoardSurfer
Associate II