Allow FoE write only in BOOTSTRAP state in the rtl_slavedemo application

To demonstrate the use of of the `write_only_in_boot` FoE file configuration.
pull/110/head
bnjmnp 2021-12-16 07:48:45 +01:00
parent 098e74f0b8
commit 2e389e1d56
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,7 @@ void bootstrap_foe_init (void)
.dest_start_address = FLASH_BLOCK_SIZE + 0, /* + (uint32_t)&flash_start,*/
.address_offset = 0,
.filepass = 0,
.write_only_in_boot = 1,
.write_function = flash_foe_buffer /* NULL if not used */
},
{
@ -109,6 +110,7 @@ void bootstrap_foe_init (void)
(FLASH_EEPROM_SECTIONS * FLASH_SECTOR_SIZE),
.address_offset = 0,
.filepass = 0,
.write_only_in_boot = 1,
.write_function = flash_foe_buffer /* NULL if not used */
},
};