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 Children
  • Thanks for replay. I changed as per second guide that are shown in queries but still struggling with error 

    Can you check is it any wrong in my procedure?

  • 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;
        }
        

  • hii IIdar...

    may be your problem is in c/c++ settings

    check you remove NRF 52 from the defines

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

    Remove both this and add your 840 define

    In my case(for 8210):-

    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

  • Nordic technical support staff will be reduced during the holiday season from 21st December to 7th January
    Longer response time to tickets must be expected during this period.

    Other DevZone users might be active and respond to public tickets as usual.

Related