SPIFI Flash Identification

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

SPIFI Flash Identification

Jump to solution
290 Views
VIGNESH_BABU
Contributor II

Hi ,

I was working on LPC54018 Customized EVK Board to connect with TFT Controller.Where we connected external flash memory (W25Q128FV) to flash the code.

Doubts?

1.How to find which types of SPI to transfer the data whether it was single,dual or quad?

2.How to change the MODE of SPI in MCUXPRESSO?

 

0 Kudos
1 Solution
277 Views
RaRo
NXP TechSupport
NXP TechSupport

Hello @VIGNESH_BABU,

  1. How to find which type of SPI to transfer the data whether it was single, dual or quad?

You may find the information in LPC54018JxM/LPC54S018JxM User manual. At Chapter 33: LPC54018JxM/LPC54S018JxM SPI flash interface (SPIFI), section 33.6 Register description.

There is a register called SPIFI control register that controls the overall operation of the SPIFI and should be written before any commands are initiated. There you could set the DUAL bit to select the mode of operation between Quad and Dual.

RaulRomero_0-1672084040288.png

 

  1. How to change the MODE of SPI in MCUXPRESSO?

Do you mean SPIFI? If that’s the case, then you could change it as follows:

  1. First, you need to select the drivers to work with SPIFI. In new project -> drivers -> SPIFI and check the box. Then in the file fsl_spifi.c modify the next function in the highlighted line.

RaulRomero_1-1672084040291.png

As mentioned in the answer of your first question, you can modify between QUAD and DUAL:

RaulRomero_2-1672084040293.png

 

  1. In MCUXpresso there is a useful tool called ConfigTools, if you are aware of how it works, you could use Peripherals

RaulRomero_3-1672084040295.png

And trough Peripheral drivers add SPIFI and configure it according to your needs. In SPI Protocol you could select between QUAD and DUAL.

RaulRomero_4-1672084040296.png

RaulRomero_5-1672084040298.png

Do not forget to Update the code.

RaulRomero_6-1672084040300.png

 

For more information, please take a look to the LPC54018JxM/LPC54S018JxM User manual (you could download it here LPC540XX Family of Microcontrollers (MCUs) | NXP Semiconductors) and SPIFI driver files in MCUXpresso.

Regards, Raul.

View solution in original post

0 Kudos
1 Reply
278 Views
RaRo
NXP TechSupport
NXP TechSupport

Hello @VIGNESH_BABU,

  1. How to find which type of SPI to transfer the data whether it was single, dual or quad?

You may find the information in LPC54018JxM/LPC54S018JxM User manual. At Chapter 33: LPC54018JxM/LPC54S018JxM SPI flash interface (SPIFI), section 33.6 Register description.

There is a register called SPIFI control register that controls the overall operation of the SPIFI and should be written before any commands are initiated. There you could set the DUAL bit to select the mode of operation between Quad and Dual.

RaulRomero_0-1672084040288.png

 

  1. How to change the MODE of SPI in MCUXPRESSO?

Do you mean SPIFI? If that’s the case, then you could change it as follows:

  1. First, you need to select the drivers to work with SPIFI. In new project -> drivers -> SPIFI and check the box. Then in the file fsl_spifi.c modify the next function in the highlighted line.

RaulRomero_1-1672084040291.png

As mentioned in the answer of your first question, you can modify between QUAD and DUAL:

RaulRomero_2-1672084040293.png

 

  1. In MCUXpresso there is a useful tool called ConfigTools, if you are aware of how it works, you could use Peripherals

RaulRomero_3-1672084040295.png

And trough Peripheral drivers add SPIFI and configure it according to your needs. In SPI Protocol you could select between QUAD and DUAL.

RaulRomero_4-1672084040296.png

RaulRomero_5-1672084040298.png

Do not forget to Update the code.

RaulRomero_6-1672084040300.png

 

For more information, please take a look to the LPC54018JxM/LPC54S018JxM User manual (you could download it here LPC540XX Family of Microcontrollers (MCUs) | NXP Semiconductors) and SPIFI driver files in MCUXpresso.

Regards, Raul.

0 Kudos