|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
-
-
- #include <stdint.h>
-
- extern void ResetHandler(void);
- extern unsigned long _estack;
- extern unsigned long _flashimagelen;
-
- __attribute__ ((section(".vectors"), used))
- const uint32_t vector_table[2] = {
- #if defined(__IMXRT1062__)
- 0x20010000,
- #endif
- (uint32_t)&ResetHandler
- };
-
-
- __attribute__ ((section(".bootdata"), used))
- const uint32_t BootData[3] = {
- 0x60000000,
- (uint32_t)&_flashimagelen,
- 0
- };
-
-
- __attribute__ ((section(".ivt"), used))
- const uint32_t ImageVectorTable[8] = {
- 0x402000D1,
- (uint32_t)vector_table,
- 0,
- 0,
- (uint32_t)BootData,
- (uint32_t)ImageVectorTable,
- 0,
- 0
- };
-
- __attribute__ ((section(".flashconfig"), used))
- uint32_t FlexSPI_NOR_Config[128] = {
-
-
- 0x42464346,
- 0x56010000,
- 0,
- 0x00020101,
-
- 0x00000000,
- 0,
- 0,
- 0x00000000,
-
- 0,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0x00000000,
- 0x00030401,
- 0,
- 0,
-
- #if defined(ARDUINO_TEENSY40)
- 0x00200000,
- #elif defined(ARDUINO_TEENSY41)
- 0x00800000,
- #else
- #error "Unknow flash chip size";
- #endif
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0x00000000,
-
- 0x0A1804EB,
- 0x26043206,
- 0,
- 0,
-
- 0x24040405,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0x00000406,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0x08180420,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0x081804D8,
- 0,
- 0,
- 0,
-
- 0x08180402,
- 0x00002004,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0x00000460,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
-
-
- 256,
- 4096,
- 1,
- 0,
-
- 0x00010000,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0,
-
- 0,
- 0,
- 0,
- 0
- };
-
|