S32 design studio demo project[ FLASH_Example] issue

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

S32 design studio demo project[ FLASH_Example] issue

2,317 Views
喀秋莎
Contributor I

I imported a demo that  is Flash_Example for the S32k144 board. And the demo comple is OK.

Running result is correct. But after changing clock (from Fast IRC to system PLL ), it doesn't run  normally.

I expect that the project always run if using OSC.

Figure 1

modifing demo Default clock Source  :Fast IRC,  Configuring Flash Clock Source  :System PLL

160528_160528.pngWU1[YC{WP0G@`SUFH3V((N3.png

 After starting  project ,No running normally

160538_160538.pngROB2SBA8I(J7@VF[Q6P3KAT.png

 

160539_160539.png_2FG5Q)MB`1LX2}2}]YWD@L.png

 

what is more,This reference manual of  S32K144RM reports Flash Clock is from FLASH_CLK,  However, 

when Rrocessor Expert configures Flash Clock, Flash Clock is from BUS_CLK ?

Figure 2

clocking architecture and various clock
sources for S32K144 demoboard.

W%$]T2LP75}_3X}FP[S17GV.png

T_J%LPRBJMIUY]C9HJ[GJMF.png

Configuring Flash Clock : 8MHz   ,Bus Clock  :24MHz

]1]AW$%]R6%GAV%UZ`]HS8T.png

However,In PCC Clock,how Flash Clock is 24MHz ?

UBQF%%(KEG5GFQB3`HYU@$R.png

hoping  resolve,In a hurry.

 thanks a lot

Original Attachment has been moved to: Figure-2.rar

Original Attachment has been moved to: Figure-1.rar

0 Kudos
1 Reply

1,133 Views
raresvasile
NXP Employee
NXP Employee

Hi,

I am working at S32 SDK and I can help you but first I need to ask you a few questions to be able to reproduce your issues.

1) What version of S32 Design Studio are you using? You can find the version number and build id under Help -> About S32 Design Studio.

2) Can you provide me the version number of the S32 SDK? Please look at Window -> Preferences -> SDK Management, there you will find the version on the next tab following S32K144_SDK_gcc.

Now, regarding the FLASH clock.

The S32K144 features two types of clocking for the modules:

   - Interface clock - is the clock that ensures the functionality of the module's registers and internal state machine. This clock appears in the PCC tab. In the case of the FLASH module the Interface clock is the BUS Clock (please see the table attached), this is why modifying the FLASH clock in the SCG tab did not affect the clock for the module. Underneath is the picture you had attached in the original post, but I have highlighted the Interface clock column for you to better understand the previous explanation. 

pastedImage_16.png

   - Functional clock - this is the clock source that feeds the logic of the modules( eg. clock source for the LPUART (eg. shifters) and it is configurable to allow asynchronous operations in respect to the main clock sources and CPU state, for example: using a timer module when the CPU is in sleep mode and all most of the clock sources are off. In the case of the FLASH module it is programmed from the SCG module in the Slow Divider Field. The manual states that: "FLASH_CLK frequency must be programmed to 28 MHz or less in HSRUN, 26.67 MHz or less in RUN, and an integer divide of the CORE_CLK. The core clock to flash clock ratio is limited to a max value of 8.".

pastedImage_4.png

Thank you for your feedback, it is really appreciated.

I am waiting for the answer to my questions so I will be able to help you.

Best regards,

Rares Vasile

0 Kudos