Question about S32K3X4EVB-Q172

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

Question about S32K3X4EVB-Q172

跳至解决方案
800 次查看
20Sidar04
Contributor III

Dear Mr. and Mrs.,

 I resolder S32 microcontroller on S32K3X4EVB-Q172. After that I connected STM32 microcontroller's SPI and Reset to PFS26ZZXMA0D. PFS26ZZXMA0D is working as debug mode. For SPI connection, I changed voltage from 5 to 3.3 by changing location of J18 header. I can measure 1.5 volt for Vcore, 3.3 and 5 volt from Regultor output of PFS26ZZXMA0D. After that I send SPI message to pass Initiliaze mode. But when I send first 32 bit message for Reading  LFSR value in FS_WD_TOKEN register during initiliaze. My data byte is equal to 0. After that when I want to read FS_STATES register. FS_STATES[3:0] is equal to 0000. For using PFS26ZZXMA0D with STM32 I only connect SPI, Ground and reset pin. CRC calculation and CRC response are correct during SPI communication. Vdebug voltage is under 6 V. Do you have any advice for correct working for it. 

Regards,

Sidar. 

0 项奖励
回复
1 解答
708 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Sidar,

Please double check you SPI mode and timing. The FS26 uses SPI mode 1 (CPOL=0 and CPHA=1). Are you able to read correctly the M_DEVICEID register 0x00?

BR, Tomas

在原帖中查看解决方案

0 项奖励
回复
4 回复数
750 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Sidar,

Did you manage to read the FS_WD_TOKEN register before desoldering the S32K3 MCU?

Do you have a logic analyzer to double check if your SPI read command is correct?

BR, Tomas

0 项奖励
回复
741 次查看
20Sidar04
Contributor III

Dear Tomas,

Thanks for response. Previous software developers complained about getting hotter of S32K3 MCU on board. Due to this reason, they desoldered MCU. I didn't have an opportunity to test FS26 with S32K3 on development board. Following pictures shows communication between STM32 and FS26. I have another question that reserved bit could be 1 during reading register?

 

20Sidar04_0-1710160671279.png

20Sidar04_1-1710160688172.png

 

Regards.

Sidar.

 

0 项奖励
回复
709 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Sidar,

Please double check you SPI mode and timing. The FS26 uses SPI mode 1 (CPOL=0 and CPHA=1). Are you able to read correctly the M_DEVICEID register 0x00?

BR, Tomas

0 项奖励
回复
666 次查看
20Sidar04
Contributor III

Hi Tomas,

After SPI mode 1 (CPOL=0 and CPHA=1) configuration, it works. Thanks for precious advice.

Regards,

Sidar.

0 项奖励
回复