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

Are there A0 field in NRF_TEMP_Type?

I can not compile the example project 'ble_app_uart_s132_pca10036' ,in nRF52_SDK_0.9.2_dbc28c9\examples\ble_peripheral\ble_app_uart\pca10036\s132\arm5_no_packs.the error given by mdk 5.15 is 'RTE\Device\nRF52832_xxAA\system_nrf52.c(92): error: #136: struct "" has no field "A0"'keil.png

Parents
  • This problem is caused by the (unfortunate) fact that even the non-pack examples use Device files from the pack version of the Device Family Pack. Then, when using a new Device Family Pack with a previous SDK (or in this case the current SDK, as it has not yet been updated), you can get a version mismatch between different files.

    The fix in this case is to copy two files from the Device Family Pack to the SDK:

    • nrf52.h
    • nrf52_bitfields.h

    You will find the files under <keil_install_directory>\ARM/Pack\NordicSemiconductor\nRF_DeviceFamilyPack\8.2.0\Device\Include. Copy them to <sdk_directory>\components\device, overwriting the existing files.

  • Hi, I copied the two files into the SDK directory as mentioned, but I still get the same error:

    *** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'nrf52832_xxaa_s132' compiling system_nrf52.c... RTE\Device\nRF52832_xxAA\system_nrf52.c(92): error: #136: struct "" has no field "A0"

    The two file have the creation date: 20.10.2015. So I assume they are the most recent ones.

    Is there anything else I have to do to get the example compile? Yours Johannes

Reply
  • Hi, I copied the two files into the SDK directory as mentioned, but I still get the same error:

    *** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'nrf52832_xxaa_s132' compiling system_nrf52.c... RTE\Device\nRF52832_xxAA\system_nrf52.c(92): error: #136: struct "" has no field "A0"

    The two file have the creation date: 20.10.2015. So I assume they are the most recent ones.

    Is there anything else I have to do to get the example compile? Yours Johannes

Children
No Data
Related