Hi @MyLV ,
Yes you're right, the setting LPSPI DUAL CLOCK MODE only effects to SPI data exchange rate.
To change Core_clk in runtime you should do as following:
1. Config 2 Mcu Clock setting mode, let's say: Clock Setting 0 for Core_Clk 80Mhz, and Clock Setting 1 for Core_Clk 160Mhz.
In S32CT, you can do this by below steps:
- In Clock tool, create 2 functional groups:
cuongnguyenphu_0-1695119255444.png
- Config Core_Clk for each Functional group
2. In Peripheral Tool, in MCU module, create 2 MCU Clock setting config coresponds to 2 Functional group of Clock tool in step1:
cuongnguyenphu_1-1695119433734.png
- Generate code.
3. In run-time, whenever you want to change the clock setting, just call Mcu_InitClock(<param>) with <Param> is the ID of MCU clock setting, which is generated in Mcu_Cfg.h file