2017-09-13 05:49 AM
When enabling the FreeRTOS idle hook STM32CubeMX generates a function with the following prototype in the freertos.c file:
__weak void vApplicationIdleHook( void )
However __weak isn't defined in any one of the included header files (I'm using GCC with Makefile target) so the file can't be compiled until defining the __weak as __attribute__((weak)) somewhere.
#idle-hook #freertosSolved! Go to Solution.
2018-02-01 01:17 AM
Hi
sweden
,
There is a post where I have just answered for the same topic. Please refer to it (
https://community.st.com/0D50X00009XkfyISAR
) and tell me if you still have issues.BR. Jeanne
2017-09-13 08:41 AM
Hi,
Which tools version are you using ?
Kind Regards
Imen
2017-09-14 02:58 AM
STM32CubeMX v4.1 on Linux, STM32CubeL0 v1.0, STM32L IOC file is attached.
________________ Attachments : freertos-test.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyRl&d=%2Fa%2F0X0000000b7i%2Ftr_9r_LmjEqa8bXEfgQvMx82hTOzf8zPbiZ.QjfT.qg&asPdf=false2018-02-01 01:17 AM
Hi
sweden
,
There is a post where I have just answered for the same topic. Please refer to it (
https://community.st.com/0D50X00009XkfyISAR
) and tell me if you still have issues.BR. Jeanne
2018-02-01 02:49 AM
Thanks,
Joly.Jeanne
, the problem with __weak seems to be gone: after removing all those duplicate filename definitions (a new bug?) from the Makefile I was able to compile the binary.