This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Struct "" has no field NRFFW

Has anyone else encountered a recent problem while compiling projects using mbed online compiler (error message goes "Struct "" has no field "NRFFW" "RF_UICR->NRFFW[0]" in fstorage_config.h? I haven't changed anything in my project. IT was working on 7/20/16, then something happened, and since 7/21/2016, it no longer compiles. The same is true for imported projects like BLE_HeartRate. The target board is NRF51-DK.

  • This problem is caused by the conflict between two header files 'nrf51.h'. One is nrf51.h of mbed and another is it of nRF51822.

    • /nRF51822/source/nordic_sdk/components/device/nrf51.h
    • /mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51.h

    The header of nRF51822 is more recent.

    Solution #1

    1. Delete mbed library on your project.
    2. Import mbed-dev library.
    3. Rename /mbed-dev/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51.h to other.

    Solution #2

    1. Export your project to offline toolchain.
    2. Change the include path order.

    Good luck to you.

Related