Voila, after several unsuccessful attempts, I finally managed to make this code work and flash it in my controller.
So I am reply myself to my answer if it can help anyone.
First of all, it's absolutely necessary to use the Espruino 1v95 firmware, because with another version it will not work, the code must not be adapted to more recent versions.
Then the mode to send the first file must be "FLASH" mode, and for the second file it is "RAM" mode.
Here I hope it can help someone. I don't say thank you to anyone on this forum, because no one came to my aid!
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.
Voila, after several unsuccessful attempts, I finally managed to make this code work and flash it in my controller.
So I am reply myself to my answer if it can help anyone.
First of all, it's absolutely necessary to use the Espruino 1v95 firmware, because with another version it will not work, the code must not be adapted to more recent versions.
Then the mode to send the first file must be "FLASH" mode, and for the second file it is "RAM" mode.
Here I hope it can help someone. I don't say thank you to anyone on this forum, because no one came to my aid!