2025-08-04 2:35 AM
Hi All,
I do struggle with high-cycle flash read.
By using the example:
https://github.com/STMicroelectronics/STM32CubeH5/tree/main/Projects/NUCLEO-H563ZI/Examples/FLASH/FLASH_EDATA_EraseProgram
It is doable to erase/write sector or halfword but reading from address (with simple memcpy) without writing/erasing it just before causes NMI_Handler().
How to init/configure the EFLASH to simply retrieve data after startup?
Write function:
HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD_EDATA, address, (uint32_t)&halfword)
Read 'function':
uint16_t halfword = *(uint16_t*) address;
Regards,
Mat