Could you provide sample code for S32k344 reading FS26 registers via SPI communication?

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

Could you provide sample code for S32k344 reading FS26 registers via SPI communication?

2,214 次查看
franklin08
Contributor I

please is there a sample code for FS26 SPI communication with S32K344 with using S32K344_172MQFP PACKAGE. Thanks.

0 项奖励
回复
5 回复数

2,174 次查看
franklin08
Contributor I

Noted with thanks @Robin_Shen .

0 项奖励
回复

2,185 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Please click S32K3 Standard Software and download Automotive SW - SBC/PMIC - Real Time Drivers.

Automotive SW - S32K3 Standard Software  Automotive SW - SBC PMIC - Real Time Drivers.png

Then you will find the Sbc_fs26_example_HLD_S32K344 project. It will show you how to read FS26 registers.  Sbc_fs26_ReadRegister

Sbc_fs26_example_HLD_S32K344 Sbc_fs26_ReadRegister.png

Please click Switch package for the Processor to select S32K344_257BGA PACKAGE.

Switch package for the Processor Sbc_fs26_example_HLD_S32K344.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 项奖励
回复

1,605 次查看
Sanjay1112
Contributor I
Can You please share this example file here because I searched but I didn't get this example.
0 项奖励
回复

1,601 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Sorry we can't share the examples directly. Please click S32K3 Standard Software and download Automotive SW - SBC/PMIC - Real Time Drivers. Then refer to the Installation section in the release notes.

0 项奖励
回复

2,171 次查看
franklin08
Contributor I

Hi @Robin_Shen. I succeeded in running the example program. However, I tried to read SBC_FS26_M_REG_FLG_ADDR register that flags over current event for the converters, LDOS' and TRKS' using the below code but I keep getting FALSE. I had expected u16ReadData variable to give 0x0000, instead it gives 1101001001101111 from the expression tab. Please is there something wrong with my code? 

 

eReturnValue |= Sbc_fs26_ReadRegister(TRUE,SBC_FS26_M_REG_MSK_ADDR , &rxData);


if((eReturnValue != E_OK) || (rxData.u16ReadData != SBC_FS26_M_REG_MSK_DEFAULT ))
{
bPass = FALSE; 

 


}

 

0 项奖励
回复