This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Migrating project is from nRF52810 to nRF52832_QFAB

Hi Sir/Miss,

 

In original project, I use nRF52810. But, it's not enough flash in our customer adding requirements.

Therefore, I want to migrate project from nrf52810 to nrf52832_XXAB in IAR.

I still use SoftDevices 112 and SDK 17.0.2.

I remove original files (iar_startup_nrf52810.s and system_nrf52810.c) and add iar_startup_nrf52.s and system_nrf52.c file in project.

And, setting ROM and RAM in linker script. (ROM end: 0x3FFFF, RAM end 0x20007FFF). The begin of memory is same as before.

To add NRF52 and NRF52832_XXAB are in define symbols (Both of them are in Assembler and C/C++ Compiler). Also, I remove NRF52810_XXAA in define.

I don't change stack/Heap size, they're still 2048.

After compiler, IAR displays Fatal Error[Pe035 ]#error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" in core_cm4.h

__FPU_PRESENT is set to 1.

I see this article and follow it to include "nrf52.h", "arm_const_structs.h" and "arm_math.h"".

But, the result is same.

Do I miss something else?

Please help to solve it.

Thank you.

Parents
  • Hi,

    I do find the error message a bit confusing, since the nRF52832 does have an FPU, but nevertheless it may be related to the FPU setting in the project options, "General Options" category. This is the settings for a generic nRF52832 project:

    Regards,
    Terje

  • Hi,

    I also confused too, I found out that I define NRF52832_XXAB in define symbol. But, compiler still identify project which is defined NRF52810_XXAA. It enters NRF52810_XXAA in nrf.h (For define problem, I remove nrf52810.h in my folder, compiler's log displays not found it). It's unknow root cause in my project. 

Reply
  • Hi,

    I also confused too, I found out that I define NRF52832_XXAB in define symbol. But, compiler still identify project which is defined NRF52810_XXAA. It enters NRF52810_XXAA in nrf.h (For define problem, I remove nrf52810.h in my folder, compiler's log displays not found it). It's unknow root cause in my project. 

Children
No Data
Related