SPIFI reset

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPIFI reset

471 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mb1391 on Sat Feb 15 02:11:01 MST 2014
Hi,

I have a problem regarding SPIFI software reset. I am using LPC-40xx controller for my product, and LPCXpresso v6.1.0 IDE for firmware development.

I have managed to get the SPIFI working for storage of data.

It works perfectly fine with Power On reset, but when I add watchdog reset, the hardware gets stuck at the first accessing attempt of SPIFI.
The initialization generates error code 0x2000A (No operative serial flash (JEDEC ID all zeroes or all ones)) after such reset.

The user manual mentions that SPIFI is disabled on reset, which is not mentioned in the errata; on the other hand LPC-43xx supports peripheral reset for SPIFI (reset#53).

The registers for sending commands or addresses also are not supported in LPC-40xx so as to send reset commands.
Correct me if I am wrong about the registers.

Is there any fix / workaround for resetting the SPIFI?
Labels (1)
0 Kudos
1 Reply

373 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Fri May 16 12:41:00 MST 2014
Hi mb1391,
Please reset QSPI flash before using it. Below instruction sequence will reset the Windbond device.

         // reset spifi flash
SPIFI_CMD = (0xffu << 24) | // opcode 0xFF (read reset) for winbond
(0x1 << 21) | // frame form indicating opcode only
(0x0 << 19) | // field form indicating all serial
(0); // datalen
       while(SPIFI_STAT & 2); // wait for command to complete

Please check LPC40xx user manual for register details.

Your QSPI flash device may have different reset sequence. Please check datasheet of QSPI flash device.

0 Kudos