Skip to content

Commit 7e83b03

Browse files
committed
add indentation
1 parent c0afad2 commit 7e83b03

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

.changesets/flash-fix-minor.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
release: patch
22
summary: add a FLASH_ST in .ld to keep the flash information that is not code
3-

Inc/HALAL/HardFault/HardfaultTrace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

STM32H723ZGTX_FLASH.ld

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ MEMORY
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);

0 commit comments

Comments
 (0)