SPI example

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

SPI example

4,169 Views
abhitippanna
Contributor III

I am using KW36 dewvelopment board. MCUXpresso IDE. I want to under SPI driver which example should I use.

Thank you,

11 Replies

3,641 Views
abhitippanna
Contributor III

Read and write function.pngmain_loop.png

0 Kudos
Reply

3,641 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Abhijeet Tippanna,

I recommend you download the SDK for the FRDM-KW36. Within the SDK you will find the drivers for all the peripherals of the MCU.

Link to download the SDK.

Hope it helps!

Victor.

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

3,641 Views
abhitippanna
Contributor III

Hi,

Which example should I use for understanding SPI driver. I am  confused.

0 Kudos
Reply

3,641 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Abhijeet Tippanna,

That will depend on what are you trying to achieve. In the SDK you have the following examples for the SPI module: 

pastedImage_2.png

You can use the one that adapts better to your needs. With these examples, you will see how the SPI drivers are implemented.

Regards,

Victor.

0 Kudos
Reply

3,641 Views
abhitippanna
Contributor III

In which example Interfacing is done with AT45DB041E (512KB) Flash.

0 Kudos
Reply

3,641 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Abhijeet Tippanna,

If you want to interface with a Flash memory then you should use the Flash Memory Controller (FMC) module. I recommend you read chapter 28 of the reference manual. The examples that you can use as a guide from the SDK are the following:

pastedImage_2.png

Regards,

Victor.

0 Kudos
Reply

3,641 Views
abhitippanna
Contributor III

Hello Victor Jimenez

   I am going to interface on board external flash (AT45DB041E) and I am using this configuration and read write function.

main_loop.pngRead and write function.png

0 Kudos
Reply

3,640 Views
abhitippanna
Contributor III

Thanks.

0 Kudos
Reply

3,641 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Abhijeet Tippanna,

Could you please provide more information? For example, which MCU are you using? Which IDE are you using? 

Regards, 

Victor.

0 Kudos
Reply

3,640 Views
scottm
Senior Contributor II

Is that a question?

3,641 Views
abhitippanna
Contributor III

Yes,

I am cant able to read FLASH manufacture ID

0 Kudos
Reply