cancel
Showing results for 
Search instead for 
Did you mean: 

Can't deference memory mapped qspi

dan0
Associate II

I am using memory mapped mode of the QSPI peripheral on an STM32L452. I can see in the memory view at address 0x90000000 the bytes i expect. However, when dereferencing the pointer to that memory all i get is 0xFF's.

In the attached photo you can see I expect to read xAA, xAA, xBB,xBB,xCC,xCC ... and so on. You can see those bytes in the memory view, but all that i get is xFF.

1 ACCEPTED SOLUTION

Accepted Solutions
dan0
Associate II

Hello All-

Thanks for the replys, but I've solved the problem. I had the wrong number of dummy cycles programmed (0 when i needed 8). This was on a N25Q256 spi flash.

View solution in original post

4 REPLIES 4
alister
Lead

Perhaps the Memory window's accesses are adversely affecting it, and if not the mapped memory, perhaps the memory below is paged and impacting something. Try repeating from boot without the memory window.

I tried from boot w/out a memory view but still read 0xFF. Thanks for the idea though.

Seems like you need to revisit your QSPI support code.

What chip is being used here?​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
dan0
Associate II

Hello All-

Thanks for the replys, but I've solved the problem. I had the wrong number of dummy cycles programmed (0 when i needed 8). This was on a N25Q256 spi flash.