# HG changeset patch # User Ideenmodellierer # Date 1736705720 -3600 # Node ID 2130d771c8dba90eb931bca97c2c325083a5667e # Parent a8c0e6d07b8e511bc46579378f013cf9f7270ad2 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). diff -r a8c0e6d07b8e -r 2130d771c8db BootLoader/CPU1-F429_boot.ld --- 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 : { diff -r a8c0e6d07b8e -r 2130d771c8db BootLoader/Src/base_bootlader.c --- 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,