I have a project where I am distributing code images to a number of devices with DFU (this is a custom bootloader)
The peripherals use a mixture of 52840 and 52811 SoC due to size and cost constraints.
Is there a way to have a common image that can run on both chips? I have already set the memory layout and configuration such that it can run on either device.
But, there is also the device-specific startup code that deals with errata and such (ses_startup_nrf52811.s and ses_startup_nrf52840.s).
Is there a way to have a common code that will execute either one of the startup code dynamically upon detecting which chip it is running on?
Thanks in advance
Johannes