CH201 Can't Write I2C For Long Message

By imammashur96gmailcom , 8 November 2022

Hi, I am currently creating a custom board for measuring distance using nrf chip and CH201. In this case, my code always stuck when it is try to write a long buffer message to sensor.

So I just port the code from DK to nrf52 sdk code, but when I run it, it just works on find_sensor function. But at the rest, it doesn't work, no signal communication at all. As you can see in the attached image, there is a logic analyzer, it only shows the signal for find sensor. But at the rest, there is no signal for that.

But, when I put debugging message on it, it does, run the other functions, but at the logic analyzer, it doesn't. I was thinking the issue maybe the sensor configuration, but I double check it, there is no different configuration betweem my code and DK example.

Do you have any idea about this? Really thanks.

minggaotdkcom

2 years 7 months ago

if you have the full LA capture log , that will be better to check what it happened.

phpbb Post ID
45096
phpbb Topic ID
39589