nsh: i2c: command not found

2024-04-18 Thread Gustavo Soares
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 i

Re: nsh: i2c: command not found

2024-04-18 Thread Alan C. Assis
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 < gust

Re: nsh: i2c: command not found

2024-04-18 Thread Gregory Nutt
'nsh: i2c: command not found' means that the i2c app was not built into the image and/or was not registered at build time. NSH is simply complaining that you are trying to run an app that does not exist. Did you remember to include logic in your board/src file in order to initialize and regis