S32K148 QSPI clock settings issue

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

S32K148 QSPI clock settings issue

1,150 Views
Konrad_M
Contributor I

Hi.
I work with EVB and using QSPI example from S32 Design Studio. Goal: SCLK = 80MHz
Using PLL_DIV1 and various settings max 20Mhz works.
Default project settings use FIRC and divider set to 4. 
Has anyone tried to change QSPI frequency in this example? 

Any ideas? 

0 Kudos
5 Replies

1,137 Views
Konrad_M
Contributor I

Using PLL, as shown, even 30MHz is too much....program stops and wait forever on last RX interrupt

Konrad_M_0-1630038717407.png

Konrad_M_1-1630038850393.png

 

0 Kudos

1,058 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Konrad_M,

Sorry for my last reply.
I confused the QSPI and LSPI routines.
After modify the S32K148EVB circuit and change the clock configuration, I encountered the same phenomenon you described.

Hardware Wiring.png

Wait for program to finish 76MHz div2.png

According to the description of the Data Sheet "Table 39. QuadSPI electrical specifications", the max SCK Clock Frequency of FLASH A PORT should be 38MHz when Internal Sampling is selected.

Robin_Shen_0-1630975395135.png

 

I got their feedback after consulting the AE team:

I re-appeared the issue you describled. After anslysis, this issue is not caused by the clock frequency. when you read data and the size is larger than 256 bytes, it will happen the overflow error. so it will pending in that line. if I reallocated the read API into the write process, which read 256 bytes every time, it work well. That means the maximum clock frequency can reach 38MHz. about the overflow error, I will test it in the newest version. if still exist, I will create a ticket in our system.

Robin_Shen_1-1630975495560.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,142 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Konrad_M,

Maybe you can refer the method shown below:

change clock.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,131 Views
yihe_zuo
Contributor I

Can SPLLDIV2_CLK be set with 80Mhz?

I checked the datasheet it should be less than the one in the below?

yihe_zuo_0-1630042915312.png

Could you double check?

0 Kudos

1,124 Views
Konrad_M
Contributor I

Good point but didn't help.
SPLLDIV2_CLK should be 40Mhz or less but QSPI uses SPLLDIV1_CLK.
Thank you.

0 Kudos