Compilation error when enabling NRF5340 FPU

Dear Nordic

hardware:NRF5340, sdk:2.6.1

Our project needs to use floating-point calculations. Attempting to add CONFIG_FPU=y and CONFIG_FPU_SHARING=y to prj.conf will result in an error during compilation
as follows

-- Cache files will be written to: E:/nordic-sdk/v2.6.1/zephyr/.cache
CMake Error at cmake/utils.cmake:67 (message):
INVALID CONFIG: ( CONFIG_TFM_ENABLE_FP OR CONFIG_TFM_ENABLE_MVE OR
CONFIG_TFM_ENABLE_MVE_FP ) AND NOT CONFIG_TFM_ENABLE_CP10CP11
Call Stack (most recent call first):
config/cp_check.cmake:35 (tfm_invalid_config)
config/check_config.cmake:85 (include)
CMakeLists.txt:79 (include)

Our project is developed based on the Zephyr example Blinky, and the board uses nrf5340dk_crf5340_cpuapp_ns

  • Hello,

    Could you tell me a bit more about the project? I see for instance that you are using TFM? Might be that the issue is that you haven't configured everything in the right places.

    Btw, due to the summer holiday things are moving a bit slower here than normally, though I'll get to you when I can.

    Regards,

    Elfving

  • I added two lines in the Kconfig of the project, CONFIG_FPU=y and CONFIG_FPU_SHARING=y, and compilation will result in an error

    I see that the error prompts are all security related, so I tried to change the board from nrf5340dk'nrf5340_cpuapp_ns to nrf5340dk'nrf5340_cpuapp. The compilation passed and it seems that the problem has been solved, but it seems that the RAM usage has increased significantly. What can I do to eliminate the compilation error when the board is nrf5340dk'nrf5340_cpuapp_ns

  • Hello again, and sorry about the wait

    Could you provide me the build log with these errors? 

    I just tried building a sample with these configs for nrf5340dk'nrf5340_cpuapp_ns myself, and that worked. If it works without TFM, then maybe flash space is the issue?

    Regards,

    Elfving

Related