Hello to the NXP Community team,
I am reaching you because I am running into troubles while trying to interface the A71CHARD demo board to my Raspberry Pi3.
Here is what I did already:
dtoverlay=i2c-gpio,i2c_gpio_sda=2,i2c_gpio_scl=3,i2c_gpio_delay_us=4
Details on the Config:
Linux <GATEWAY_NAME> 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux
pigpio V64
I could compile the following examples:
Now I am running into issues with some of the simple commands responding correctly (e.g. info device, info cnt, info pairs) but most of them return a 0x7011 or 0x7010 (Write or Read error code), including the i2c native demo, the light i2c native demo and info status, info objects called from the config interactive console. After an error code, the normally operational commands return Protocol exception 01 A7 and the A71CH required a softReset to be issued (device hanging). I have tried to look directly at the bus with a logic analyzer but the results are not quite clear.
I have attached in the following zip:
I have already tried to change the gpio delay & timeout parameters in the dtoverlay as I think it is certainly related to the implementation of the i2c bus on the Raspberry Pi3 side but without success that far. Do you have any idea what the source of the issue might be?
Thank you in advance for your help
Best Regards
hello,
I believe that the problem you are experiencing it's similar to this one
https://community.nxp.com/thread/477378
Could you please check that thread and verify if that it's helpful for you?
Regards,
Estephania
Hello,
Indeed I first followed these steps but in addition to that, the makefile points to an /rsp folder that is not present in the package and must contain:
- i2c_a7.c leveraging pigpio (not the same as the i2c_a7 provided for the imx platform)
- pigpio.h/c
- types.h
The pigpio standard library files (on pigpio github) were missing some undeclared defines and I add to edit them so for it to be operational on the pi.
The Raspberry allows for a fast and easy testing of the IC that does not require to rebuild a full Yocto (we are working with the i.Mx7 platform). Also it might be helpful for all the A71CH users that the adapted files for a build on Pi be added to one of your future A71CH Software Package releases.
Here are the compilation issues observed when using the standard pigpio files:
It is operational now and I was able to test the different A71CH features.
Thank you for your support
Best Regards
Quentin