Other Parts Discussed in Thread: HALCOGEN
Hi,
From what I see, the FreeRTOS code that is being generated by HalCoGen does not support FPU. The internal variable ulTaskHasFPUContext is permanently set to 0 in os_port.c file and the define "configUSE_FPU 1" in FreeRTOSConfig.h file is not used at all. This makes each task having no FPU context. The below link has a description of a problem:
https://www.freertos.org/Using-FreeRTOS-on-Cortex-A-Embedded-Processors.html#floating-point
"To prevent processor register corruption a task must not use any floating point registers unless it has a floating point context. Whether or not RTOS tasks are created with a floating point context by default depends on the compiler in use, and the configUSE_TASK_FPU_SUPPORT setting in FreeRTOSConfig.h."
Please correct me if I am wrong but i think this means I cannot use floating point instructions on this FreeRTOS port. Thus I cannot compile the source with rtsv7R4_T_be_v3D16_eabi.lib library. Which is not good :(