SPI transfer by directly writing to registers using memtool

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

SPI transfer by directly writing to registers using memtool

649 Views
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

0 Kudos
3 Replies

562 Views
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 Kudos

562 Views
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 Kudos

562 Views
joanxie
NXP TechSupport
NXP TechSupport

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

0 Kudos