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

Porting to nRF52810

Dear Nordic,

I port one of my application for nRF52810 from nRF52832(application). i Followed as  per guide. but when i build its showing an error.

RTE\Device\nRF52810_xxAA\system_nrf52810.c(169): error:  #136: struct "<unnamed>" has no field "MAXPACKETSIZE"

Why this error occurs?

ROM and RAM settings:-

C/C++ preprosessor settings:-

BOARD_PCA10040 CONFIG_GPIO_AS_PINRESET FLOAT_ABI_HARD NRF52810_XXAA NRF52_PAN_74 NRF_SD_BLE_API_VERSION=6 S132 SOFTDEVICE_PRESENT SWI_DISABLE0 __HEAP_SIZE=0 __STACK_SIZE=8192

Remove files and adding .s and .c files:-

1. Is it any mistake in my setting?

2. why the error showing when i build?

Parents Reply
  • Hello! I notice exactly the same problem. I have my project for nrf52832 and tried to porting for nrf52840. I checked my memory allocations and sizes - everything is correct, but:

    RTE\Device\nRF52840_xxAA\system_nrf52840.c(118): error: #136: struct "<unnamed>" has no field "MAXPACKETSIZE"
    NRF_CCM->MAXPACKETSIZE = 0xFBul;

    appears.

    As I see this code in system_nrf52840.c rises the problem:

     /* Workaround for Errata 103 "CCM: Wrong reset value of CCM MAXPACKETSIZE" found at the Errata document
           for your device located at https://infocenter.nordicsemi.com/  */
        if (errata_103()){
            NRF_CCM->MAXPACKETSIZE = 0xFBul;
        }
        

Children
Related