63 #include "bsl_defines.h"
64 #include "scu_defines.h"
71 #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
72 extern uint32_t __STACK_SEAL;
82 #if defined(__ARMCC_VERSION)
85 #elif defined(__IAR_SYSTEMS_ICC__)
88 #elif defined(UNIT_TESTING_OCN)
151 #if defined ( __GNUC__ )
152 #pragma GCC diagnostic push
153 #pragma GCC diagnostic ignored "-Wpedantic"
156 #if defined(__ARMCC_VERSION)
158 static const uint32 u32_flash0_page0[11]
__attribute__((section(
"sec_NVM0_BOOTCFG"), used)) =
159 #elif defined(__IAR_SYSTEMS_ICC__)
161 __root
const uint32 u32_flash0_page0[11] @
"sec_NVM0_BOOTCFG" =
162 #elif defined(UNIT_TESTING_OCN)
163 const uint32 u32_flash0_page0[11] =
179 #if defined(__ARMCC_VERSION)
182 #elif defined(__IAR_SYSTEMS_ICC__)
184 __root
const VECTOR_TABLE_Type vt_vectab_deprecated[2] @
"sec_NVM0_VECTAB_DEPRECATED" =
185 #elif defined(UNIT_TESTING_OCN)
195 #define SCU_BOOT_CFG_LATCH_ADDR 0x480040BC
196 #define SCU_BOOT_CFG_LATCH_TMS_MASK 0x00000001
197 #define SCU_BOOT_CFG_LATCH_P00_MASK 0x00000002
198 #define CPU_DHCSR_ADDR 0xE000EDF0
199 #define CPU_DHCSR_C_DEBUGEN_MASK 0x00000001
200 uint32 u32_boot_cfg_latch;
201 uint32 u32_dhcsr_c_debugen;
210 while (u32_dhcsr_c_debugen == 0);
218 #if defined(__ARMCC_VERSION)
222 #elif defined(__IAR_SYSTEMS_ICC__)
225 #elif defined(UNIT_TESTING_OCN)
280 #if defined ( __GNUC__ )
281 #pragma GCC diagnostic pop
290 #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
291 __TZ_set_STACKSEAL_S((uint32_t *)(&__STACK_SEAL));
295 if(FLASH1_CACHE_EN == 1)
304 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
305 #pragma clang diagnostic push
306 #pragma clang diagnostic ignored "-Wmissing-noreturn"
325 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
326 #pragma clang diagnostic pop
BootROM low level access library.
#define user_cache_operation
This user API function provides an alternative to writing to cache registers in addition to direct re...
Definition: bootrom.h:775
@ CACHE_OP_EN
Cache enable operation.
Definition: bootrom.h:256
void(* VECTOR_TABLE_Type)(void)
Exception / Interrupt Handler Function Prototype.
Definition: startup_tle989x.h:78
() VECTOR_TABLE_Type NVIC_IRQ17_Handler
Definition: startup_tle989x.h:263
() VECTOR_TABLE_Type NVIC_IRQ30_Handler
Definition: startup_tle989x.h:276
() VECTOR_TABLE_Type NVIC_IRQ27_Handler
Definition: startup_tle989x.h:273
() VECTOR_TABLE_Type SysTick_Handler
Definition: startup_tle989x.h:243
__NO_RETURN void Reset_Handler(void)
Definition: startup_tle989x.h:287
() VECTOR_TABLE_Type NVIC_IRQ4_Handler
Definition: startup_tle989x.h:250
() VECTOR_TABLE_Type NVIC_IRQ5_Handler
Definition: startup_tle989x.h:251
() VECTOR_TABLE_Type UsageFault_Handler
Definition: startup_tle989x.h:234
() VECTOR_TABLE_Type NVIC_IRQ12_Handler
Definition: startup_tle989x.h:258
__attribute__((noreturn)) static void debug_entry(void)
Definition: startup_tle989x.h:193
() VECTOR_TABLE_Type NMI_Handler
Definition: startup_tle989x.h:230
() VECTOR_TABLE_Type NVIC_IRQ0_Handler
Definition: startup_tle989x.h:246
() VECTOR_TABLE_Type BusFault_Handler
Definition: startup_tle989x.h:233
() VECTOR_TABLE_Type NVIC_IRQ9_Handler
Definition: startup_tle989x.h:255
() VECTOR_TABLE_Type debug_entry
Definition: startup_tle989x.h:229
() VECTOR_TABLE_Type NVIC_IRQ10_Handler
Definition: startup_tle989x.h:256
() VECTOR_TABLE_Type NVIC_IRQ31_Handler
Definition: startup_tle989x.h:278
() VECTOR_TABLE_Type NVIC_IRQ14_Handler
Definition: startup_tle989x.h:260
() VECTOR_TABLE_Type NVIC_IRQ15_Handler
Definition: startup_tle989x.h:261
() VECTOR_TABLE_Type MemManage_Handler
Definition: startup_tle989x.h:232
() VECTOR_TABLE_Type HardFault_Handler
Definition: startup_tle989x.h:231
() VECTOR_TABLE_Type NVIC_IRQ7_Handler
Definition: startup_tle989x.h:253
const VECTOR_TABLE_Type __VECTOR_TABLE[48]
() VECTOR_TABLE_Type NVIC_IRQ11_Handler
Definition: startup_tle989x.h:257
() VECTOR_TABLE_Type NVIC_IRQ21_Handler
Definition: startup_tle989x.h:267
() VECTOR_TABLE_Type NVIC_IRQ8_Handler
Definition: startup_tle989x.h:254
__NO_RETURN void Default_Handler(void)
Definition: startup_tle989x.h:320
() VECTOR_TABLE_Type PendSV_Handler
Definition: startup_tle989x.h:241
() VECTOR_TABLE_Type NVIC_IRQ20_Handler
Definition: startup_tle989x.h:266
#define SCU_BOOT_CFG_LATCH_TMS_MASK
() VECTOR_TABLE_Type DebugMon_Handler
Definition: startup_tle989x.h:240
() VECTOR_TABLE_Type NVIC_IRQ16_Handler
Definition: startup_tle989x.h:262
() VECTOR_TABLE_Type NVIC_IRQ18_Handler
Definition: startup_tle989x.h:264
() VECTOR_TABLE_Type NVIC_IRQ28_Handler
Definition: startup_tle989x.h:274
() VECTOR_TABLE_Type NVIC_IRQ1_Handler
Definition: startup_tle989x.h:247
#define SCU_BOOT_CFG_LATCH_P00_MASK
#define CPU_DHCSR_C_DEBUGEN_MASK
() VECTOR_TABLE_Type SVC_Handler
Definition: startup_tle989x.h:235
() VECTOR_TABLE_Type NVIC_IRQ19_Handler
Definition: startup_tle989x.h:265
() VECTOR_TABLE_Type NVIC_IRQ2_Handler
Definition: startup_tle989x.h:248
() VECTOR_TABLE_Type NVIC_IRQ24_Handler
Definition: startup_tle989x.h:270
() VECTOR_TABLE_Type NVIC_IRQ3_Handler
Definition: startup_tle989x.h:249
#define SCU_BOOT_CFG_LATCH_ADDR
void alias("Default_Handler")))
__NO_RETURN void __PROGRAM_START(void)
() VECTOR_TABLE_Type NVIC_IRQ22_Handler
Definition: startup_tle989x.h:268
uint32_t __INITIAL_SP
Definition: startup_tle989x.h:228
() VECTOR_TABLE_Type NVIC_IRQ23_Handler
Definition: startup_tle989x.h:269
() VECTOR_TABLE_Type NVIC_IRQ26_Handler
Definition: startup_tle989x.h:272
() VECTOR_TABLE_Type NVIC_IRQ29_Handler
Definition: startup_tle989x.h:275
() VECTOR_TABLE_Type NVIC_IRQ25_Handler
Definition: startup_tle989x.h:271
() VECTOR_TABLE_Type NVIC_IRQ13_Handler
Definition: startup_tle989x.h:259
void SystemInit(void)
Initialize the system.
Definition: system_tle988x.c:29
Device specific memory layout defines and features.
#define UC_FLASH1_START
Definition: tle_variants.h:322
uint32_t uint32
32 bit unsigned value
Definition: types.h:206