s32k146 MCAL LPSPI issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

s32k146 MCAL LPSPI issue

12,627 次查看
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 项奖励
回复
7 回复数

12,588 次查看
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 项奖励
回复

12,574 次查看
yubo_guo
Contributor I

Hi Nam

could you send me your generate code? 

I want to compare the diffference.

 

 

0 项奖励
回复

12,567 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello,

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

Nam

0 项奖励
回复

12,596 次查看
yubo_guo
Contributor I

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

 

 

 
 
 
 

 

0 项奖励
回复

12,611 次查看
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 项奖励
回复

12,590 次查看
yubo_guo
Contributor I

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

0 项奖励
回复

12,608 次查看
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 项奖励
回复