Dear NXP,
I try to setup I2C on S32CT, but it gets error.
I provide my steps to let you understand the situation. The step is:
1. Choose Hardware: S32K312EVB-Q172
1.PNG
2. SET I2C PINS: LPI2C1 SCL, SDA
2.PNG
3. Make sure LPI2C1 Clock Reference: AIPS_SLOW_CLK
3.PNG
4. Add I2C tab
4.PNG
5. Mcu tab: LPI2C 1 Clock Setting & Enablement
5.PNG
6.PNG
9.PNG
10.PNG
6. LPI2C1 Setting: Standard Mode, 100kb/s, Slave address: 10bits, using Interrupt
7_I2C_config_1.PNG
8_I2C_config_2.PNG
7. LPI2C1 Interrupt Configuartion in Platform Tab
11.PNG
12.PNG
8. Code Generation
13.PNG
9. Add I2C component in the Board initialization
14_BoardInitialization.PNG
10. Simulink Model - Build, Deploy & Start
15.PNG
When I try to building the program, it gets an error message.
The reason I found the error was because it didn't find "Dem.h".
16_errorMessage.PNG
Therefore, I would like to ask you where the error occurred in my construction steps, which caused this problem.
Could you help me, please?
(BTW. The Environment is MBDT 1.4.0, Matlab 2021a, S32K312EVB-Q172)