Ok, thanks,
Finally, the bug disappeared for good after removing this line and replacing with for loop : "var mp=tabarray.map(function(e) {print("upCr map",e); index++;print("index",index);e=jp(e); print("upCR map item "+index +" :",e);return e["name"]; })". Maybe map implementation has a problem, or the way I used it. I could not reproduce it in isolation, I still suspect of a call stack problem. @Wilberforce, I realize that but, the problem is that the board does not freeze at a specific line but much later, like when I am reading the dht22 sensor.
@allObjects, what do you call 'combination structures' ? I thought the problem was the cpu not the memory. What is so good about the pico ?
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.
Ok, thanks,
Finally, the bug disappeared for good after removing this line and replacing with for loop : "var mp=tabarray.map(function(e) {print("upCr map",e); index++;print("index",index);e=jp(e); print("upCR map item "+index +" :",e);return e["name"]; })". Maybe map implementation has a problem, or the way I used it. I could not reproduce it in isolation, I still suspect of a call stack problem.
@Wilberforce, I realize that but, the problem is that the board does not freeze at a specific line but much later, like when I am reading the dht22 sensor.
@allObjects, what do you call 'combination structures' ? I thought the problem was the cpu not the memory. What is so good about the pico ?