File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11release: patch
22summary: add a FLASH_ST in .ld to keep the flash information that is not code
3-
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ extern uint32_t _hf_log;
1515}
1616#endif
1717
18- #define METADATA_FLASH_ADDR ((uint32_t)& _metadata) // Metadata pool flash address
19- #define HF_FLASH_ADDR ((uint32_t)& _hf_log) // Hard_fault_flash address
18+ #define METADATA_FLASH_ADDR ((uint32_t) & _metadata) // Metadata pool flash address
19+ #define HF_FLASH_ADDR ((uint32_t) & _hf_log) // Hard_fault_flash address
2020#define HF_FLAG_VALUE (0xFF00FF00U) // Flag to know if already is written information in the flash
2121#define METADATA_FLASH_SIZE (0X100U)
2222#define HARD_FAULT_FLASH_SIZE (0X200U)
Original file line number Diff line number Diff line change 4747 ITCMRAM (xrw) : ORIGIN = 0x00000000 , LENGTH = 64K
4848 DTCMRAM (xrw) : ORIGIN = 0x20000000 , LENGTH = 128K
4949 FLASH (rx) : ORIGIN = 0x08000000 , LENGTH = 1024K-128K-128K
50- FLASH_ST (rx) : ORIGIN = 0x080C0000 , LENGTH = 128K
50+ FLASH_ST (rx) : ORIGIN = 0x080C0000 , LENGTH = 128K
5151 FLASH_BT (rx) : ORIGIN = 0x080E0000 , LENGTH = 128K
5252 RAM_D1 (xrw) : ORIGIN = 0x24000000 , LENGTH = 320K
5353 RAM_D2 (xrw) : ORIGIN = 0x30000000 , LENGTH = 32K
@@ -201,9 +201,9 @@ SECTIONS
201201 KEEP (*(.hardfault_log ));
202202 . += 0x200 ;
203203 } >FLASH_ST
204-
204+
205205 . = ALIGN (4 );
206-
206+
207207 .metadata_pool :
208208 {
209209 . = ALIGN (4 );
You can’t perform that action at this time.
0 commit comments