SPI2 configuration for MK24FN1M0VLL12 controller

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

SPI2 configuration for MK24FN1M0VLL12 controller

596 Views
MahithaBoella
Contributor I

I just configured the SPI2 with baurdrate of 1MB/S but when I am trying to see the corresponding clock while connecting SCLK pin to CRO, I am getting some random signal. Please help me to solve this issue.

Tags (1)
0 Kudos
Reply
2 Replies

572 Views
MahithaBoella
Contributor I

Dear team,

I am new to NXP based controller. I am using MK24FN1MOVLL12 controller. I am trying to configure SPI2 to communicate with the W25Q16JVSNIQ flash memory. I am attempting to read the JEDEC ID from the flash memory via the SPI2 interface, but I am not getting the correct output. Could you please help me to get the JEDEC ID from the flash memory. Additionally, please give the guidance on how to write a fixed amount of data to the flash memory and then read it back.

For getting JDEC ID,

I am using Polling method for SPI2 and baurdrate of 500kb/s, I am sending the command 0x9Fh and reading the ID as 24-bit data. Sending and receiving data via inbuilt API (DSPI_MasterTransferBlocking()). For initializing SPI2, I am using API (DSPI_MasterInit()) and also, I am using MCUXpresso IDE

Hope you will help me.

 

0 Kudos
Reply

509 Views
Habib_MS
NXP Employee
NXP Employee

Hello @MahithaBoella,

I understand you are using functions related to the W25Q16JVSNIQ flash memory, but this device is a third party, which is out of scope for this community's support.

You can use the SDK (version 2.3.1) example called "pflash" as a reference. However, please note that the driver may not work directly with your flash memory, as the commands might differ.

Additionally, you can refer to this community post where the JEDEC ID was read from a similar memory using the RT1050. This might provide useful insights and guidance for your specific situation.

Finally, the SDK offers several examples that demonstrate how to configure the SPI peripheral:

Habib_MS_0-1745529082141.png

BR
Habib

0 Kudos
Reply