s32k146 MCAL LPSPI issue

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

s32k146 MCAL LPSPI issue

1,642 Views
yubo_guo
Contributor I

my base project use s32k146 1.0.0 mcal,

For SPI setting, I only update mcal to 1.0.4 and the setting is the same as below

yubo_guo_0-1599462177729.png

 

yubo_guo_1-1599462177758.png

 

 

when run to below code, CS should be selected but not, only txcount plus

no signal on SCLK or MOSI

yubo_guo_2-1599462177858.png

 

 

 

0 Kudos
7 Replies

1,603 Views
namnguyenviet
NXP Employee
NXP Employee

Hello,

I have imported your configuration and test with my board. Unfortunately, I can't reproduce your issue. With this sequence: Sigma300_ProgramWritesSequence, (using SPI0 CS0) I can send the SPI signal from master. I also able to modify the TCR register's value.

Best Regards,

Nam

0 Kudos

1,589 Views
yubo_guo
Contributor I

Hi Nam

could you send me your generate code? 

I want to compare the diffference.

 

 

0 Kudos

1,582 Views
namnguyenviet
NXP Employee
NXP Employee

Hello,

Here is the generation code. You can check whether it's different than yours.

Nam

0 Kudos

1,615 Views
yubo_guo
Contributor I

I set TCR as 00200007 after Spi_Init(), and the spi register shown below.

 

 

 
 
 
 

 

0 Kudos

1,630 Views
namnguyenviet
NXP Employee
NXP Employee

Hello,

I supposed you're using S32K1xx ASR 4.2, and just update from RTM 1.0.0 to RTM 1.0.4. Since there might have a lot of changes between these two versions, could  you send us the EB configuration files in *.epc, including SPI, MCU and PORT? We will double check in our site.

Best Regards,

Nam

0 Kudos

1,609 Views
yubo_guo
Contributor I

i import the arxml to eb and create the .epc file as attached, please check it thanks!

0 Kudos

1,627 Views
yubo_guo
Contributor I

Hi

Thank you for the replying.

Yes  I just update from RTM 1.0.0 to RTM 1.0.4, since the setting is almost the same.

after installing the new mcal with 3rdPartyMcalIntegrationHelper, I use the .arxml file to import the setting directly.

attached file is the .arxml file of spi, mcu and port, hope it could useful.

 

 by the way, I tried to set TCR as 00200007 after Spi_Init().

but it didn't work either, please check the attached 1.jpg

thanks!

 

0 Kudos