cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H523VE - High cycle flash pure read configuration

Mks1
Visitor

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

0 REPLIES 0