SPIFI Flash Identification

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPIFI Flash Identification

ソリューションへジャンプ
852件の閲覧回数
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 件の賞賛
返信
1 解決策
839件の閲覧回数
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 件の賞賛
返信
1 返信
840件の閲覧回数
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 件の賞賛
返信