cancel
Showing results for 
Search instead for 
Did you mean: 

Missing data written to the high-cycle data flash of the STM32H563

Kiyama
Associate

Hi,

When the sample program FLASH_EDATA_EraseProgram is executed on the NUCREO-H563ZI board, it appears that 0xAA55 is correctly written to the high-cycle data flash. However, when debugging is terminated and the board is rebooted, the data in the latter half of the flash is not written, and it remains in the Erase state (0xFFFF).
Since the memory in the Erase state is not at a sector boundary, it cannot be considered that it was erased later. Also, although the memory in the Erase state causes an NMI interrupt when read, it is possible to write to it, and after writing it becomes possible to read normally.

Please give advice how to work with the high cycle data!

  • STM32CubeIDE 1.17.0
  • NUCREO-H563ZI board NUH563!$MR2
  • STM32H563ZIT6U AA327 VQ revision X
  • FLASH_EDATA_EraseProgram 1.12

 

  1. Debug run "FLASH_EDATA_EraseProgram", break main.c:215 and reset CPU, Memory Monitor 0x90002700
    High-cycle data memory dump after HAL_FLASH_Program() 
    Kiyama_5-1739345357128.png
  2. Debug stop, debug run again, break main.c:167 and reset CPU
    High-cycle data memory dump before HAL_FLASHEx_Erase()
    Kiyama_4-1739345295217.png

Thanks,
Kiyama

 

 

 

 

0 REPLIES 0