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:
Details on the Config:
Linux <GATEWAY_NAME> 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux
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
I believe that the problem you are experiencing it's similar to this one
Could you please check that thread and verify if that it's helpful for you?
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)
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