Fire_STM32H750XB_Template/xip/fire_stm32h750_pro_xip_conf...

19 lines
514 B
C

#include <stdint.h>
#define BOOT_HEADER_SIGNATURE_VALID 0x46434642 /* FCFB */
#define BOOT_HEADER_CONFIG_INIT_SDRAM_Pos 0
#define BOOT_HEADER_CONFIG_INIT_SDRAM_Msk (1 << BOOT_HEADER_CONFIG_INIT_SDRAM_Pos)
typedef struct {
uint32_t signature;
uint32_t config;
uint32_t base;
} boot_header_t;
#ifdef XIP_BOOT_ENABLED
__attribute__((section(".xip_fcfb"))) const boot_header_t boot_hdr = {
.signature = BOOT_HEADER_SIGNATURE_VALID,
.config = 0U,
.base = 0x90001000UL,
};
#endif