2021-10-27 05:25 AM
HI
I am using stm32l496 and want to use external flash memory MX25R6435F .
Although this memory has 64 MB of memory, I set it to 8 MB in the ioc file and mx25r6435f library, but when I write in that string or character, it is not written correctly and it is 0x88 in that value!
please guide me.
I attached the cube setting and my code.
if(BSP_QSPI_Init()==0)
debug("Init flash ok\r\n");
else
{
sprintf(AA_str,"Init flash error\r\n init_result=%d",init_result);
debug(AA_str);
}
Fill_Buffer(aTxBuffer, BUFFER_SIZE, 0xD20F);
if(BSP_QSPI_Write(aTxBuffer, WRITE_READ_ADDR, BUFFER_SIZE)==0)
debug("Wr flash ok\r\n");
else
debug("Wr flash error\r\n");
if(BSP_QSPI_Read(aRxBuffer, WRITE_READ_ADDR, BUFFER_SIZE)==0)
debug("read flash ok\r\n");
else
debug("read flash error\r\n");
if(Buffercmp(aRxBuffer, aTxBuffer, BUFFER_SIZE) > 0)
debug("Test Aborted");
else
debug("Test : OK");
2022-04-18 01:25 AM
why nobody wants to answer this question?
2022-04-18 06:37 AM
Who knows? Forums don't guarantee interest or responses. It may have been a duplicate post.
No project was attached. Just screen shots. Very little material to actually review.
The part is 64Mbit not 64MByte, so 8MB is appropriate setting
The BSP has to work properly, and the part has to be correctly configured.
The 0x88 response is suggestive that the part is not in the right mode (1 vs 4-bit), or the command wasn't accepted.
Alternatively the part is not powered or wired correctly.
Not clear what debugging was done, no BSP code provided.
Guess you've got same/similar problem, but again not any details to work with.
#MeToo