I am unable to Write into SBC M_Memory0 Register through SPI(without DMA)

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

I am unable to Write into SBC M_Memory0 Register through SPI(without DMA)

1,238 次查看
scnaidu
Contributor II

Hello NXP Experts...,

I am trying to writ 0x55(example) into SBC Memory0 register through SPI without DMA while writing into register i observed RX buffer data i 0XF000 for every write value into register (different data i wrote into this register) am seeing the same value in RX buffer i.e.., 0XF000

 

I followed the AN1233 reference for SPI Read and Write

you can see the source file attached

 

0 项奖励
回复
2 回复数

1,206 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Chakradhar,

I am not familiar with the code you are using and do not support directly S32K MCUs, but I would recommend you to take a closer look at our  "FS8x Generic SW Driver with Examples". It includes, among others, the FS8x_WriteRegister function in sbc_fs8x_communication.c file. 

https://www.nxp.com/products/power-management/pmics-and-sbcs/system-basis-chips/safety-system-basis-...

Snímek obrazovky 2024-10-04 153834.png

BRs, Tomas

0 项奖励
回复

1,200 次查看
scnaidu
Contributor II

the drivers are taken from S32k SBC fs85 only, one query is the SBC registers will only access through FS8x_Write and FS8X_Read. any other info if you had can you share, please

0 项奖励
回复