Mercurial > public > ostc4
changeset 961:2130d771c8db Evo_2_23
Bootloader: Activate Hardware data defaults:
The hardware data was not part of the build to avoid overwriting of existing data. For initial HW bringup the data is now active (define 0xFF values) and placed at the correct flash location (allocation was missing before).
author | Ideenmodellierer |
---|---|
date | Sun, 12 Jan 2025 19:15:20 +0100 |
parents | a8c0e6d07b8e |
children | 3d8c22c1f9e2 |
files | BootLoader/CPU1-F429_boot.ld BootLoader/Src/base_bootlader.c |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/BootLoader/CPU1-F429_boot.ld Sat Jan 11 17:12:39 2025 +0100 +++ b/BootLoader/CPU1-F429_boot.ld Sun Jan 12 19:15:20 2025 +0100 @@ -188,7 +188,10 @@ KEEP( *(.bootloader_firmware_data) ) } > ROM_BOOT - + .bootloader_hardware_data 0x0800A040 : { + PROVIDE( bootloader_HardwareData = . ); + KEEP( *(.bootloader_hardware_data) ) + } > ROM_BOOT .text 0x08001000 : {
--- a/BootLoader/Src/base_bootlader.c Sat Jan 11 17:12:39 2025 +0100 +++ b/BootLoader/Src/base_bootlader.c Sun Jan 12 19:15:20 2025 +0100 @@ -282,8 +282,8 @@ .magic[3] = FIRMWARE_MAGIC_END }; -#if 0 -const SHardwareData HardwareData __attribute__((at(HARDWAREDATA_ADDRESS))) = { +#if 1 +const SHardwareData HardwareData __attribute__ ((section (".bootloader_hardware_data"))) = { // first 52 bytes .primarySerial = 0xFFFF,