sbc_uja116x_s32k144 demo project LPSPI SBC_DataTransfer Error

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

sbc_uja116x_s32k144 demo project LPSPI SBC_DataTransfer Error

901 Views
bjs
Contributor III

Hi Community,

I tried sbc_uja116x_s32k144 by using S32DS Project from Example. When I ran the program stopped at SBC_DataTransfer function in file sbc_uja116x_driver.

/* Address of device with read only bit. */
command[1] = (uint8_t)((SBC_UJA_REG_ADDR_F(regName) | readOnlyMask) & 0xFFU);

status = LPSPI_DRV_MasterTransferBlocking(g_drvConfig.lpspiIntace, command,
readData, 2U, SBC_UJA_TIMEOUT );

if( readData[1] != command[1]) //!!!!!!!!!!! here !!!!!!!!!!!!!
{
status = SBC_COMM_ERROR;
}

I'm new to the mcu and have no clue what the cause of this error could be.  

Thanks.

Bruce

Tags (2)
0 Kudos
Reply
3 Replies

863 Views
bjs
Contributor III

The actual procedure I used is as following.

To reset the CAN transceiver to default mode connect the SBC transceiver in next configuration with the board S32K144EVB-Q100 power off:

  • pin RSTN from SBC is held LOW
  • CANH(J13.1) is pulled up to VBAT(J11.2)
  • CANL(J13.2) is pulled down to GND(J13.4)

Power on the board with external supply 12V (J16)

 

 

0 Kudos
Reply

888 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 

Did you follow the guide of SBC UJA116x when test sbc_uja116x_s32k144?

SBC UJA116x S32SDK S32K1XX RTM4.0.3 S32K144.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

859 Views
bjs
Contributor III

Thanks for the information. 

I succeeded after following the procedure described in the CAN PAL example. The board power should be off first and apply external 12 volt with those conditions.

0 Kudos
Reply