cancel
Showing results for 
Search instead for 
Did you mean: 

Flash Read not working

PYada.1
Associate III

I am using the SBSFU example in stm32l562edk devkit.

I have modified flash_layout.h and I have added a 4 KB user data section in which I am trying to store user data from the application. I have ported a flash driver(read, write, erase) from the bootloader.

When I read data after writing, I get 0xFF data instead of written, After resetting when I read data I get the exact data that I have written.

 

I am not using Icache.

I have also tried to init Icache, disable before erase, and enable after flash write but still, I am facing the same issue.

I am able to read data correctly only after resetting.

 

Is there any initialization or steps, I am missing?

Note: I am performing all operations in a non-secure application.

 

4 REPLIES 4
PYada.1
Associate III

@Diane POMABIA  Can you please help me regarding this?

 

Hello @PYada.1 

Can you send me your flash_layout.h to understand  what can happened?

Regards

Diane

Hello @Diane POMABIA ,

 

Please find the attachment of flash_layout.h file

Hello @Diane POMABIA ,

Can you please check regarding it?