Problem solved with my #raspberrypipico bare metal text editor project: software reset! Even with the best practises to clean memory, I've searched that microcontrollers can fragment memory with larger objects. So use all what you need at startup. In this case when I load a file of any size. It worked! Of course It lead me a problem with i2c LCD Sync, and solved It again with capacitors and calling lcd_init and clean more than one time. One of these capacitors Prevent PI pico reset when I plug the Mechanical keyboard.
Git hub: https://github.com/CleversonSA/rpi204...