How to interface with ZMOD4410AIR with ESP32?
It is with the firmware integration.
Best place to start is the programming manual It details the API's you 'll need and references the more detailed documentation <downloadable with the firwmware libraires>.
ZMOD4450 Programming Manual - Read Me (renesas.com)
We have done interfacing with reference to the same document, but we are facing an issue. We used the API functions provided to access the data. The communication with registers provided in the I2C configuration was successful. But when main function is used, we get a timeout error in fetching the sensor status.
Can you elaborate a bit more ? like where does it actually get stuck. If you capture the i2c traffic, can you determine if the sensor is reading/responding correctly - or is sensor is not responding <triggering timeout>.. Note that we' can't provide debug support on 3rd party platforms <if the issue is a software issue related to the host, you'll need to get some help from the host MCU provider>
zmod_2 is the picture function code of read sensor info
here in the zmod_2, the function dies with a time out. I just printed out the number of retries
Please share a reply
it seems that the example is stopping at the first I2C communication. Did you adapt the ZMOD4410 API to your specific hardware? It is described in section 5.1 of the Programming Manual.
An example implementation of the Hardware HAL level is in the "HAL" folder of the example.
We are following the same procedure, we added the HAL as per specified. But we are still getting timeout issue.
it is hard to guess, because i cannot see if your code is actually running the while loop or stuck in the status read. Could you please confirm where exactly it is stuck?
Are you able to check the I2C communication with logic analyzer?
Which ESP32 board are you using , is it an Arduino board?
We are ESP32-UE module, it is not arduino board.
We have not checked with logic analyzer.
It is getting struck in while loop.