MC33772C SPI mode ,the response always not correct

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

MC33772C SPI mode ,the response always not correct

465 Views
KidhRobin
Contributor I

Hello, NXP team,

I'm using SPI mode  to communicate with MC33772C  ,the main board is S32K322,but the response is always like below : 0x00 0x00 0x00 0x00 0xf0 0xB8;

The MOSI is test data ,please ignore , but when I read the registers ,the response is the same;

but the same Code I test in the S32K344 ,it can work normally ;

the power supply is not different,  S32K344 board's power is 5V ,and S32K322 is 3.3v ,  

Can some please help me?

Thank you very much.

KidhRobin_1-1704871712714.png

 

KidhRobin_0-1704871606306.png

 

Tags (1)
0 Kudos
Reply
4 Replies

267 Views
kontroller
Contributor III

@diazmarin09 

I have the same problem with @KidhRobin 

I use the official nxp sample program to wake up 772c and code for it with SPI, the process is
#1 nop = {0, 0, 1244}
#2 wait 500us = {5000, 0, 0}
#3 nop = {0, 0, 1244}
#4 loca write INIT-register = {3, 256, 1660}
It is executed normally in PCB-A
The feedback message code (@ corresponds to #) is
@1= {0, 0, 96}
@3 = {0, 0, 4302}
@4 = {0, 0, 8211}

But in PCB-B all three replies are
{0,0,61624} = {00 00 00 00 F0 8B}

The logic analyzer waveform is shown in the figure

 

Tags (1)
0 Kudos
Reply

248 Views
kontroller
Contributor III

Finally, I found out the reason for this problem, because the hardware engineer cacaously connected the wrong capacitor of Vana/Vpre/Vcp, so the chip could not work properly. This reason is for your reference only

0 Kudos
Reply

266 Views
kontroller
Contributor III

mc33772-spi-error.png

0 Kudos
Reply

447 Views
diazmarin09
NXP TechSupport
NXP TechSupport

Hello KidhRobin,

I hope all is great with you. Thank you for using the NXP communities.

Messages having less or more than 48 bits, incorrect CRC, or incorrect SCLK phase are disregarded. Communication faults set the COM_ERR_FLT fault bit in the FAULT1_STATUS register and increments the COM_STATUS[COM_ERR_COUNT] register.

Could you please share a detailed description of the bits sent based on the image  below? Are you following such procedure?

diazmarin09_0-1705011337321.png

 

Note that after a power-up (POR) or RESET (pin) or SYS_CFG1[SOFT_RST], the MC33772C device only responds to the cluster ID of 00 0000b. The user must change the cluster ID of the device by writing a new cluster ID into register INIT[CID].

I hope this information helps.

Regards,

David

0 Kudos
Reply