Combining nRF52810 and nRF52832 in one project

Hello DevZone,

I am using Segger embedded studio with multiple build configurations for the two chips and I am having some issues to get the program to compile my nRF52810 code.

I have started using the template_project from SDK 17.0.2 and removed all unnecessary includes that I won't need. 

My build configurations are:

Where I removed some from the common configuration and added unique things for both controllers such as flash/ram size, floating point unit (810 does not have one I believe).

Currently I do not have any code written, just an empty project as it is when you open the template_project.

My common preprocessor definitions are:

APP_TIMER_V2
APP_TIMER_V2_RTC1_ENABLED
CONFIG_GPIO_AS_PINRESET
INITIALIZE_USER_SECTIONS
NO_VTOR_CONFIG
BOARD_PCA10040

For the 832 I have:

DEBUG
DEBUG_NRF
APP_TIMER_V2
APP_TIMER_V2_RTC1_ENABLED
BOARD_PCA10040
CONFIG_GPIO_AS_PINRESET
FLOAT_ABI_HARD
INITIALIZE_USER_SECTIONS
NO_VTOR_CONFIG
NRF52
NRF52832_XXAA
NRF52_PAN_74

And the 810 I have:

DEBUG
DEBUG_NRF
APP_TIMER_V2
APP_TIMER_V2_RTC1_ENABLED
BOARD_PCA10040
BSP_DEFINES_ONLY
CONFIG_GPIO_AS_PINRESET
DEVELOP_IN_NRF52832
FLOAT_ABI_SOFT
INITIALIZE_USER_SECTIONS
NO_VTOR_CONFIG
NRF52810_XXAA
NRF52_PAN_74
NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3

I have changed the ses_startup and system according to the right microcontroller. 

I am able to compile the project for the 832 but not for the 810, it gives me an error saying that it cannot find run section .fs_data_run referenced in fs_data.

I have a feeling I am missing one configuration setting but I have a hard time finding it. I even tried looking for differences between a pca10040 and pca10040e project but could not find any.

Related