nrf91/common: add configuration checks for linker script

This commit is contained in:
raiden00pl 2023-07-08 12:20:58 +02:00 committed by Alan Carvalho de Assis
parent 0267bfe093
commit db82126faa
1 changed files with 17 additions and 0 deletions

View File

@ -50,6 +50,23 @@
#define FLASH_CPUAPP_START_ADDR (0x00000000) #define FLASH_CPUAPP_START_ADDR (0x00000000)
#define RAM_CPUAPP_START_ADDR (CONFIG_RAM_START + NRF91_SHMEM_SIZE) #define RAM_CPUAPP_START_ADDR (CONFIG_RAM_START + NRF91_SHMEM_SIZE)
/* Verify */
#ifdef CONFIG_NRF91_APP_FORMAT_MCUBOOT
# ifndef CONFIG_NRF91_PROGMEM_OTA_PARTITION
# error missing CONFIG_NRF91_PROGMEM_OTA_PARTITION
# endif
# ifndef CONFIG_NRF91_OTA_PRIMARY_SLOT_OFFSET
# error missing CONFIG_NRF91_OTA_PRIMARY_SLOT_OFFSET
# endif
# ifndef CONFIG_NRF91_MCUBOOT_HEADER_SIZE
# error missing CONFIG_NRF91_MCUBOOT_HEADER_SIZE
# endif
# ifndef CONFIG_NRF91_OTA_SLOT_SIZE
# error missing CONFIG_NRF91_OTA_SLOT_SIZE
# endif
#endif
/* Image format configuration */ /* Image format configuration */
#ifdef CONFIG_NRF91_APP_FORMAT_MCUBOOT #ifdef CONFIG_NRF91_APP_FORMAT_MCUBOOT