I've checked using the process.memory().usage. Finally I found that there were a pin that was not pulled up or down and it was used in a setWatch. This pin was also near to another pin used for I2C communication, so it receive a lot of electrilcal noise. The state of the pin was changing extremly fast and uncontrollable, filling the buffer. After removing the setWatch the error has disapeared.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi Gordon,
Thank you for your fast response.
I've checked using the process.memory().usage. Finally I found that there were a pin that was not pulled up or down and it was used in a setWatch. This pin was also near to another pin used for I2C communication, so it receive a lot of electrilcal noise. The state of the pin was changing extremly fast and uncontrollable, filling the buffer. After removing the setWatch the error has disapeared.
Thank you for all.