Hi Gustavo,

Could you please share a simplified version of your code that triggers this
issue?

Probably there is some memory leaking in your application or even in the
i2ctool (less probably, but we need to investigate).

Best Regards,

Alan

On Thu, Apr 18, 2024 at 12:31 PM Gustavo Soares <
gustavo.felipesoa...@hotmail.com> wrote:

> Hi everyone!
>
> I've built an application that sends i2c set/get commands to NuttX using
> the system() function in a loop that breaks after a timer runs out. After
> some i2c requests, NuttX prompts the message 'nsh: i2c: command not found'
> and the only way to solve it is rebooting the ESP32.
>
> This is what I tried so far:
> 1. Enabling i2c reset command and sending it every time i2c get/set fails,
> but it won't work because it depends on i2c driver;
> 2. Enabling the reboot command, but of course it resets the board so the
> app stops;
>
> Some more details:
> * I2c debug tool shows no error (only that one message);
> * Killing the program and sending any i2c command from console works fine;
> * Depending on the scenario, the error raises after sending around 3000
> i2c requests.
>
> Is there any other way how to reset the i2c driver without rebooting the
> board? Forcing a delay at every request significantly reduces the amount of
> i2c requests, but it does not solve the problem.
>
>
>
>

Reply via email to