Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


You are viewing a reply to freeRTOS project don't compile  

freeRTOS project don't compile

Ok, I just do it. I make a new CubeMX freeRTOS project, it has a good freeRTOS_Config.h (it has been done on another workspace), so I copy freeRTOS_Config.h and paste on \nucleo-f411re_hal_lib\Middlewares\Third_Party\FreeRTOS\Source\include.
Then I made changes sugested here:
http://www.forosdeelectronica.com/f24/tutorial-freertos-103057/Question
to the nucleo-f411re_hal_lib project.
Clean the project and try to build once again. I obtain this:

18:20:24 **** Build of configuration Debug for project nucleo-f411re_hal_lib ****
make all
‘Building file: ../Utilities/STM32F4xx-Nucleo/stm32f4xx_nucleo.c’
‘Invoking: MCU GCC Compiler’
D:\UDB_Nucleo\STMSW-WS\nucleo-f411re_hal_lib\Debug
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DSTM32F4 -DSTM32 -DNUCLEO_F411RE -DSTM32F411RETx -DUSE_HAL_DRIVER -DSTM32F411xE -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/CMSIS/core” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/CMSIS/device” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/HAL_Driver/Inc/Legacy” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/HAL_Driver/Inc” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Utilities/STM32F4xx-Nucleo” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/include” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3_MPU” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/CMSIS/core” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/CMSIS/device” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/HAL_Driver/Inc/Legacy” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/HAL_Driver/Inc” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/include” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3_MPU” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Utilities/STM32F4xx-Nucleo” -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -MMD -MP -MF”Utilities/STM32F4xx-Nucleo/stm32f4xx_nucleo.d” -MT”Utilities/STM32F4xx-Nucleo/stm32f4xx_nucleo.d” -o “Utilities/STM32F4xx-Nucleo/stm32f4xx_nucleo.o” “../Utilities/STM32F4xx-Nucleo/stm32f4xx_nucleo.c”
‘Finished building: ../Utilities/STM32F4xx-Nucleo/stm32f4xx_nucleo.c’
’ ’
‘Building file: ../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c’
‘Invoking: MCU GCC Compiler’
D:\UDB_Nucleo\STMSW-WS\nucleo-f411re_hal_lib\Debug
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DSTM32F4 -DSTM32 -DNUCLEO_F411RE -DSTM32F411RETx -DUSE_HAL_DRIVER -DSTM32F411xE -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/CMSIS/core” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/CMSIS/device” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/HAL_Driver/Inc/Legacy” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/HAL_Driver/Inc” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Utilities/STM32F4xx-Nucleo” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/include” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3_MPU” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/CMSIS/core” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/CMSIS/device” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/HAL_Driver/Inc/Legacy” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/HAL_Driver/Inc” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/include” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3_MPU” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/IAR/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM0” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F” -I”D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Utilities/STM32F4xx-Nucleo” -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -MMD -MP -MF”Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.d” -MT”Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.d” -o “Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.o” “../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c”
../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c: In function ‘vPortYield’:
../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c:231:4: error: ‘portNVIC_INT_CTRL’ undeclared (first use in this function)
*(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;

../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c:231:4: note: each undeclared identifier is reported only once for each function it appears in
../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c:231:25: error: ‘portNVIC_PENDSVSET’ undeclared (first use in this function)
*(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;

../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c:235:2: warning: implicit declaration of function ‘__DSB’ -Wimplicit-function-declaration
__DSB();

../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c:236:2: warning: implicit declaration of function ‘__ISB’ -Wimplicit-function-declaration
__ISB();

In file included from D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h:94:0,
from ../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c:71:
../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c: In function ‘vPortEnterCritical’:
../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c:254:23: error: ‘portNVIC_INT_CTRL’ undeclared (first use in this function)
configASSERT( ( ( *(portNVIC_INT_CTRL) ) & portVECTACTIVE_MASK ) == 0 );

D:/UDB_Nucleo/STMSW-WS/nucleo-f411re_hal_lib/Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOSConfig.h:153:32: note: in definition of macro ‘configASSERT’
#define configASSERT( x ) if ((x) == 0) {taskDISABLE_INTERRUPTS(); for( ;; );}

../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c: In function ‘SysTick_Handler’:
../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c:279:6: error: ‘portNVIC_INT_CTRL’ undeclared (first use in this function)
*(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;

../Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.c:279:27: error: ‘portNVIC_PENDSVSET’ undeclared (first use in this function)
*(portNVIC_INT_CTRL) = portNVIC_PENDSVSET;

make: *** Middlewares/Third_Party/FreeRTOS/Source/portable/Tasking/ARM_CM4F/port.o Error 1

18:20:38 Build Finished (took 13s.203ms)

so, what am I doing wrong right now?

BTW how do I do to put “code” on the post?