mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:43:28 +08:00
arch/nrf91: add errata workarounds
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
1af1ef4a89
commit
872a05911e
@@ -20,6 +20,8 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <hardware/nrf91_memorymap.h>
|
||||
|
||||
/* CONFIG_RAM_SIZE includes SHMEM and FIRC_RAM */
|
||||
|
||||
#if CONFIG_RAM_SIZE > CONFIG_NRF91_CPUAPP_MEM_RAM_SIZE
|
||||
@@ -34,6 +36,15 @@
|
||||
# define NRF91_SHMEM_SIZE (0)
|
||||
#endif
|
||||
|
||||
/* Non-secure FICR RAM copy - this must match */
|
||||
|
||||
#if defined(CONFIG_NRF91_NONSECURE_RAM_FICR_OFFSET) && \
|
||||
defined(CONFIG_ARCH_TRUSTZONE_NONSECURE)
|
||||
# define FICR_RAM_SIZE (NRF91_NONSECURE_RAM_FICR_OFFSET)
|
||||
#else
|
||||
# define FICR_RAM_SIZE (0)
|
||||
#endif
|
||||
|
||||
/* FLASH and RAM start */
|
||||
|
||||
#define FLASH_CPUAPP_START_ADDR (0x00000000)
|
||||
@@ -60,7 +71,7 @@ MEMORY
|
||||
progmem (rx) : ORIGIN = FLASH_CPUAPP_START_ADDR + FLASH_OFFSET,
|
||||
LENGTH = FLASH_IMG_SIZE
|
||||
datamem (rwx) : ORIGIN = RAM_CPUAPP_START_ADDR,
|
||||
LENGTH = CONFIG_RAM_SIZE - NRF91_SHMEM_SIZE
|
||||
LENGTH = CONFIG_RAM_SIZE - NRF91_SHMEM_SIZE - FICR_RAM_SIZE
|
||||
}
|
||||
|
||||
OUTPUT_ARCH(arm)
|
||||
|
||||
Reference in New Issue
Block a user