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?
You should check your flash and ram setting against this tutorial .
Please also check that you are following the steps in this guide.
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;
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/ */
NRF_CCM->MAXPACKETSIZE = 0xFBul;
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):-