77 #include "bsl_defines.h"
78 #include "scu_defines.h"
85 #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
86 extern uint32_t __STACK_SEAL;
96 #if defined(__ARMCC_VERSION)
99 #elif defined(__IAR_SYSTEMS_ICC__)
102 #elif defined(UNIT_TESTING_OCN)
175 #if defined ( __GNUC__ )
176 #pragma GCC diagnostic push
177 #pragma GCC diagnostic ignored "-Wpedantic"
180 #if defined(__ARMCC_VERSION)
182 static const uint32 u32_flash0_page0[11]
__attribute__((section(
"sec_NVM0_BOOTCFG"), used)) =
183 #elif defined(__IAR_SYSTEMS_ICC__)
185 __root
const uint32 u32_flash0_page0[11] @
"sec_NVM0_BOOTCFG" =
186 #elif defined(UNIT_TESTING_OCN)
187 const uint32 u32_flash0_page0[11] =
204 #if defined(__ARMCC_VERSION)
207 #elif defined(__IAR_SYSTEMS_ICC__)
209 __root
const VECTOR_TABLE_Type vt_vectab_deprecated[2] @
"sec_NVM0_VECTAB_DEPRECATED" =
210 #elif defined(UNIT_TESTING_OCN)
223 #define SCU_BOOT_CFG_LATCH_ADDR 0x480040BC
224 #define SCU_BOOT_CFG_LATCH_TMS_MASK 0x00000001
225 #define SCU_BOOT_CFG_LATCH_P00_MASK 0x00000002
226 #define CPU_DHCSR_ADDR 0xE000EDF0
227 #define CPU_DHCSR_C_DEBUGEN_MASK 0x00000001
228 uint32 u32_boot_cfg_latch;
229 uint32 u32_dhcsr_c_debugen;
238 while (u32_dhcsr_c_debugen == 0);
248 #if defined(__ARMCC_VERSION)
252 #elif defined(__IAR_SYSTEMS_ICC__)
255 #elif defined(UNIT_TESTING_OCN)
314 #if defined ( __GNUC__ )
315 #pragma GCC diagnostic pop
328 #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
329 __TZ_set_STACKSEAL_S((uint32_t *)(&__STACK_SEAL));
333 if(FLASH1_CACHE_EN == 1)
343 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
344 #pragma clang diagnostic push
345 #pragma clang diagnostic ignored "-Wmissing-noreturn"
364 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
365 #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:791
@ CACHE_OP_EN
Cache enable operation.
Definition: bootrom.h:272
void(* VECTOR_TABLE_Type)(void)
Exception / Interrupt Handler Function Prototype.
Definition: startup_tle989x.h:92
() VECTOR_TABLE_Type NVIC_IRQ17_Handler
Definition: startup_tle989x.h:297
() VECTOR_TABLE_Type NVIC_IRQ30_Handler
Definition: startup_tle989x.h:310
() VECTOR_TABLE_Type NVIC_IRQ27_Handler
Definition: startup_tle989x.h:307
() VECTOR_TABLE_Type SysTick_Handler
Definition: startup_tle989x.h:273
__NO_RETURN void Reset_Handler(void)
Definition: startup_tle989x.h:321
() VECTOR_TABLE_Type NVIC_IRQ4_Handler
Definition: startup_tle989x.h:284
() VECTOR_TABLE_Type NVIC_IRQ5_Handler
Definition: startup_tle989x.h:285
() VECTOR_TABLE_Type UsageFault_Handler
Definition: startup_tle989x.h:264
() VECTOR_TABLE_Type NVIC_IRQ12_Handler
Definition: startup_tle989x.h:292
__attribute__((noreturn)) static void debug_entry(void)
Definition: startup_tle989x.h:221
() VECTOR_TABLE_Type NMI_Handler
Definition: startup_tle989x.h:260
() VECTOR_TABLE_Type NVIC_IRQ0_Handler
Definition: startup_tle989x.h:280
() VECTOR_TABLE_Type BusFault_Handler
Definition: startup_tle989x.h:263
() VECTOR_TABLE_Type NVIC_IRQ9_Handler
Definition: startup_tle989x.h:289
() VECTOR_TABLE_Type debug_entry
Definition: startup_tle989x.h:259
() VECTOR_TABLE_Type NVIC_IRQ10_Handler
Definition: startup_tle989x.h:290
() VECTOR_TABLE_Type NVIC_IRQ31_Handler
Definition: startup_tle989x.h:312
() VECTOR_TABLE_Type NVIC_IRQ14_Handler
Definition: startup_tle989x.h:294
() VECTOR_TABLE_Type NVIC_IRQ15_Handler
Definition: startup_tle989x.h:295
() VECTOR_TABLE_Type MemManage_Handler
Definition: startup_tle989x.h:262
() VECTOR_TABLE_Type HardFault_Handler
Definition: startup_tle989x.h:261
() VECTOR_TABLE_Type NVIC_IRQ7_Handler
Definition: startup_tle989x.h:287
const VECTOR_TABLE_Type __VECTOR_TABLE[48]
() VECTOR_TABLE_Type NVIC_IRQ11_Handler
Definition: startup_tle989x.h:291
() VECTOR_TABLE_Type NVIC_IRQ21_Handler
Definition: startup_tle989x.h:301
() VECTOR_TABLE_Type NVIC_IRQ8_Handler
Definition: startup_tle989x.h:288
__NO_RETURN void Default_Handler(void)
Definition: startup_tle989x.h:359
() VECTOR_TABLE_Type PendSV_Handler
Definition: startup_tle989x.h:271
() VECTOR_TABLE_Type NVIC_IRQ20_Handler
Definition: startup_tle989x.h:300
#define SCU_BOOT_CFG_LATCH_TMS_MASK
() VECTOR_TABLE_Type DebugMon_Handler
Definition: startup_tle989x.h:270
() VECTOR_TABLE_Type NVIC_IRQ16_Handler
Definition: startup_tle989x.h:296
() VECTOR_TABLE_Type NVIC_IRQ18_Handler
Definition: startup_tle989x.h:298
() VECTOR_TABLE_Type NVIC_IRQ28_Handler
Definition: startup_tle989x.h:308
() VECTOR_TABLE_Type NVIC_IRQ1_Handler
Definition: startup_tle989x.h:281
#define SCU_BOOT_CFG_LATCH_P00_MASK
#define CPU_DHCSR_C_DEBUGEN_MASK
() VECTOR_TABLE_Type SVC_Handler
Definition: startup_tle989x.h:265
() VECTOR_TABLE_Type NVIC_IRQ19_Handler
Definition: startup_tle989x.h:299
() VECTOR_TABLE_Type NVIC_IRQ2_Handler
Definition: startup_tle989x.h:282
() VECTOR_TABLE_Type NVIC_IRQ24_Handler
Definition: startup_tle989x.h:304
() VECTOR_TABLE_Type NVIC_IRQ3_Handler
Definition: startup_tle989x.h:283
#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:302
uint32_t __INITIAL_SP
Definition: startup_tle989x.h:258
() VECTOR_TABLE_Type NVIC_IRQ23_Handler
Definition: startup_tle989x.h:303
() VECTOR_TABLE_Type NVIC_IRQ26_Handler
Definition: startup_tle989x.h:306
() VECTOR_TABLE_Type NVIC_IRQ29_Handler
Definition: startup_tle989x.h:309
() VECTOR_TABLE_Type NVIC_IRQ25_Handler
Definition: startup_tle989x.h:305
() VECTOR_TABLE_Type NVIC_IRQ13_Handler
Definition: startup_tle989x.h:293
void SystemInit(void)
Initialize the system.
Definition: system_tle988x.c:46
Device specific memory layout defines and features.
#define UC_FLASH1_START
Definition: tle_variants.h:338
uint32_t uint32
32 bit unsigned value
Definition: types.h:222