You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
in pico-sdk/src/rp2_common/pico_flash/flash.c, on line 18,
when compiled with FreeRTOS SMP support, configNUM_CORES is expected to be set to 2 through FreeRTOSConfig.h.
But the FreeRTOS uses a different name for this define: configNUMBER_OF_CORES.
See for instance line 100 in https://github.com/FreeRTOS/FreeRTOS-Community-Supported-Demos/blob/main/CORTEX_M0%2B_RP2040/Standard_smp/FreeRTOSConfig.h
This leads to an assert/error when calling flash_safe_execute() with FreeRTOS SMP, see line 172 in flash.c.
As a quick fix I had to add the following in my FreeRTOSConfig.h: #define configNUM_CORES configNUMBER_OF_CORES
With best regards, Anton
The text was updated successfully, but these errors were encountered:
antonwtw
changed the title
flash_safe_execute() not recognises FreeRTOS SMP define for the number of cores
flash_safe_execute() doesn't recognise FreeRTOS SMP define for the number of cores
Feb 3, 2024
Hello,
in pico-sdk/src/rp2_common/pico_flash/flash.c, on line 18,
when compiled with FreeRTOS SMP support,
configNUM_CORES
is expected to be set to 2 through FreeRTOSConfig.h.But the FreeRTOS uses a different name for this define:
configNUMBER_OF_CORES
.See for instance line 100 in https://github.com/FreeRTOS/FreeRTOS-Community-Supported-Demos/blob/main/CORTEX_M0%2B_RP2040/Standard_smp/FreeRTOSConfig.h
This leads to an assert/error when calling flash_safe_execute() with FreeRTOS SMP, see line 172 in flash.c.
As a quick fix I had to add the following in my FreeRTOSConfig.h:
#define configNUM_CORES configNUMBER_OF_CORES
With best regards, Anton
The text was updated successfully, but these errors were encountered: