SPI transfer by directly writing to registers using memtool

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPI transfer by directly writing to registers using memtool

909件の閲覧回数
ajith_shenoy
Contributor I

Hi,

Can I make an SPI transfer by directly writing to registers using memtool.

I am following the below steps, but i do not see any data transfer in CRO 

/unit_tests/memtool -32 0x5A030010=0x01

/unit_tests/memtool -32 0x5A030024=0x0B

/unit_tests/memtool -32 0x5A030040=0x03

/unit_tests/memtool -32 0x5A030058=0x00200020

/unit_tests/memtool -32 0x5A030060=0x00200007

/unit_tests/memtool -32 0x5A030064=0x0F

I assume my DTS is correct since data transfer is happening via spidev

Regards,

Ajith

#SPI

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

822件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

you should access though memtool,

memtool\test - imx-test - i.MX Driver Test Application Software 

but for imx8QM, which is under preproduction, we don't have enough information to support, maybe you can get support from professional support:

NXP Professional Services | NXP 

one maybe refer to the imx6 as an example:

https://community.nxp.com/message/874559?commentID=874559#comment-874559 

0 件の賞賛
返信

822件の閲覧回数
ajith_shenoy
Contributor I

Hi Joan,

Thanks for the reply.

I am accessing the registers through memtool, but no luck in SPI transfer.

The only thing i am missing is configuring the LPCG register of LPSPI.

I couldn't find anywhere in reference manual or internet the bit information for LPCG register.

Can you please share it?

Regards,

Ajith

0 件の賞賛
返信

822件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

unfortunately, imx8QM is under preproduction, we don't have such information share with customer in the public community

0 件の賞賛
返信