How to use SPI 3 channer?

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

How to use SPI 3 channer?

1,285 Views
kimjunghyun
Contributor III

Hi. 

I have to use SPI 3 channels and I am using EB TRESOS.

- SPI 1 channel is activated well.(communicate with TLE9262)

- I have to add SPI 2 channels as master

I think that I have to add SPI physical unit as below. 

1.PNG

But when I added SPI physical unit, MCU did not work at Trace32

- build was done. 

- If I removed SPI physical unit, MCU worked.

How can I add 2 more SPI channel?

0 Kudos
5 Replies

1,194 Views
kimjunghyun
Contributor III

Hi.

I attached Mcu.epc, Spi.epc file

Thank you

0 Kudos

1,196 Views
hungnguyenphi
NXP Employee
NXP Employee

Hi Kim JungHyun,

I have tried to use your configuration to create a simple project and I can see it run normally.

I also create one more channel and add it to the SpiJob_0. I also can see it work normally.

Please find the project in the attached file. 

Best regard,

Hung

0 Kudos

1,196 Views
hungnguyenphi
NXP Employee
NXP Employee

Hi Kim JungHyun,

Could you please share your MCAL package version and SPI, MCU configuration for us to check it first.

Best regards,

Hung.

0 Kudos

1,196 Views
kimjunghyun
Contributor III

Hi. 

MCAL package version : S32K14X_MCAL4_2_RTM_HF2_1_0_0

SPI, MCU configuration : refer to attached file

First I have to update as below 

I changed MCU clock, SPI clock settings and then MCU worked at Trace32

Thank you

0 Kudos

1,196 Views
hungnguyenphi
NXP Employee
NXP Employee

HiKim JungHyun,

Could you please send the configuration in .epc file. It will easy for us to check/modify your configuration with the .epc file.

Best regards,

Hung.

0 Kudos