This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sample QSPI example Flash read giving 88 in read buffer

Hello developers,

I am currently using nRF52840 DK and want to integrate external flash in my already developed Open Thread based application. My idea is to store 200-300 sample data from sensor into external flash memory and send all data at specific interval from my end device in single payload via MQTT-SN. The MQTT-SN part is already developed and i am looking for help and guidance in the flash interface.

I started with peripheral example QSPI present in nrf5 SDK although without any success. The Erase, Read, Write process doesn't give error logs but it also doesn't read the data properly. It always give me 0x88 0x88 in the read buffer. Here are the logs of the following sample example:

<info> app: QSPI write and read example using 24bit addressing mode
<info> app: QSPI example started.
<info> app: Process of erasing first block start
<info> app: Process of writing data start
<info> app: Data read
<info> app: Compare...
<info> app: Data inconsistent
<info> app: QSPI write and read example using 24bit addressing mode
<info> app: QSPI example started.
<info> app: Process of erasing first block start
<info> app: Process of writing data start
<info> app: Data read
<info> app: Compare...
<info> app: Data inconsistent

I have checked my DK the jumpers as written in docs are soldered perfectly So this isn't a hardware issue. How should i run the sample QSPI example successfully.

So can anyone please help me ?

Parents
No Data
Reply
  • Hello Jared,

    I have enabled logs and I am always developing examples in debug mode only. So how to check the assertion in debug mode. Because in debug mode what I can see I am getting nRF success from every function. 

    I am using external J Link  from another nRf52 dk kit, so if change the SW6 state to default I won't be able to debug. That's why sw6 is in nRF only. So in short I have to keep the SW6 to nRF only otherwise I won't be able to establish J link connection.

    Now when I change the state of SW6 to default and than again switch it back to nRF only. Than I open J Link RTT viewer to check the logs, it shows me the data comparison successfully. But its only once. But I didn't get any clock or cs signals during that also.

    What could be the issue ?

Children
Related