1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #include <stdint.h>
- #define FLASH_START_ADDR 0x00200000
- #define BOOTLOADER_BACKDOOR_DISABLE 0xEFFFFFFF
- typedef struct
- {
- uint32_t ui32BootldrCfg;
- uint32_t ui32ImageValid;
- uint32_t ui32ImageVectorAddr;
- }
- lockPageCCA_t;
- #ifdef __IAR_SYSTEMS_ICC__
- __root const lockPageCCA_t __cca @ ".flashcca" =
- #elif __TI_COMPILER_VERSION__
- #pragma DATA_SECTION(__cca, ".flashcca")
- #pragma RETAIN(__cca)
- const lockPageCCA_t __cca =
- #else
- __attribute__ ((section(".flashcca"), used))
- const lockPageCCA_t __cca =
- #endif
- {
- BOOTLOADER_BACKDOOR_DISABLE,
- 0,
- FLASH_START_ADDR
- };
|