Problem building v1.96 + filesystem to ESP8266 #6034
Replies: 1 comment
-
Posted at 2018-03-19 by FStech Beyond what I posted earlier, here is a web IDE console output whenever I upload a code: My code:
Console Output:
this last 2 lines repeat indefinetly, no matter if I hard reset the device. The only way out of this loop is to erase the flash and reupload the firmware Posted at 2018-03-19 by Wilberforce I thînk you are creating a firmware to large to fit on the board. Which modules get applied is controlled in the .py board file. Since you are have a 4mb module, you should use the esp8266_4mb firmware which also needs to be flashed a certain way. See here- the flash size parameter http://www.espruino.com/EspruinoESP8266 Posted at 2018-03-19 by @MaBecker Add Posted at 2018-03-20 by FStech Hello @MaBecker, I've also tried building with export RELEASE=1, and got the same error. @wilberforce Thanks for the insight, I may tweak a little on the packages. So far I don't need the graphics, do you know a way to omit it from the build? Posted at 2018-03-20 by Wilberforce Use the 4mb build and see here: Comment out and uncomment - and do a Posted at 2018-03-20 by FStech Thanks @wilberforce, that worked. I can now use the save() and on reboot everything work fine. To be clear on the process, this is my modified python script:
This is my compile.sh
And this is my flashing command using 1024/1024:
There is only one question remaining, I've added the RELEASE=1 again to compress a little bit more the binary, and upon restarting if I'm connected do espruino IDE I get the following output
If I open a PuTTY session, with a baud rate of 75600, I can read the printed message:
Is there any way to remove that from startup? Thanks again. Posted at 2018-03-20 by Wilberforce ah - so you have turned on flashfs - this will use the flash memory as a filesystem, and disable the code that uses the sd card. I guess you have not tested the sd card yet? You might need to reduce the number of variables as the flashes support creates a 4K buffer for the sectors in the flash memory. With regards to suppressing the boot messages- I'm not sure there is an easy way. On the esp32 you can hold a pin low to suppress the messages. Do some googling! Posted at 2018-03-20 by FStech I have tried the SD card and it didn't work, now I know why. I have just asked about turning off those boot messages because I didn't recall them appearing on the stock Espruino firmware. I will recompile it turning flashfs off, and since the messages aren't really doing anything negative, I'll just leave them there. Thanks again for all the help. Posted at 2018-03-28 by Joshua_Sturmvogel Hi Posted at 2018-04-06 by FStech Hello @Joshua_Sturmvogel, sorry for the delay in the response. I can share the firmware with you. Attached is my compiled version, based on the v1.96 release. This version is compiled with the following modules:
Note that it will only work in a 4mb ESP8266. Mine specifically is a NodeMCU V3. Best Regards. EDIT: To be able to flash it without problems, you have to use the 1024/1024 flash map. Here is the esptool.py command for that:
EDIT 2: Corrected the baud rate for the flashing command. Attachments: Posted at 2018-04-10 by Joshua_Sturmvogel Thanks
after change 4MB-c1 to 4m Posted at 2018-04-10 by Wilberforce I think you might be using a different version of esptool.py. 4M = 32 mBit so you could try Posted at 2018-04-11 by FStech @Joshua_Sturmvogel If you flash only with 4m, the flash map will be set to 512/512, and the firmware will be too big to fit on the ESP memory, which will make it crash and printout a lot of errors. Try what Willberforce suggested, or updating your esptool.py to a more recent one. Just don't flash with the single 4m for it will not work. Posted at 2018-04-11 by @MaBecker Hi @Joshua_Sturmvogel, check your flash_id and lookup your memory
Hope this helps you to find the correct setting to flash your board. Posted at 2018-04-12 by Joshua_Sturmvogel Thanks for all for answers on this moment: flash id output:
flash log and command line ooutput:
IDE still dont recognize board if i flash stock esp8266 4mb firmware - everething work ok, but without 'fs' support Posted at 2018-04-12 by FStech Okay, so the error here appears to be on the baud rate. Set it 115200 instead of 460800. The espruino IDE can't recognize such a high baud rate, and won't be able to communicate with the board. This is what the command should look like:
By the way, you can install esptool using the pip manager for python. For me it's just a little bit more convenient. EDIT: grammar. Posted at 2018-04-13 by @MaBecker @Joshua_Sturmvogel can you attach
for further trouble shooting Posted at 2018-04-21 by Joshua_Sturmvogel Sorry for long time waiting Attachments: Posted at 2018-04-22 by Wilberforce Try changing the flash mode from qio to dio. I need to use dio on the nodemcu board I have. Posted at 2018-04-22 by FStech This output still looks like a baud rate problem. Did you reflash the firmware with 115200? If you open a putty on 460800 does the output change? Posted at 2018-05-14 by Jurand I had the same problem, changing qio to dio solved my problem :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-03-19 by FStech
Hello, I'm fairly new to Espruino and recently bought a NodeMCUv3(esp8266). I've downloaded the latest releases and tested a few codes. I was developing a simple web server that would serve an html/css/js page, and the plan was to store them on an SD card.
The problem is that ESP8266 doesn't have FS by default, so I've set to build my own firmware with fs enabled. While I can build and get all my binaries, if i ever type save() on the web IDE and hard reset the board, it prints like crazy "fatal exception(3)"
Here are my codes:
compile.sh
flashing command:
I am running ubuntu on windows for compiling, and had to modify the ESP8266_NONOS_SDK c_types.h lines:
Beyond that, I couldn't find how to not use a certain module, for example neopixel, which made me modify the c_types.h
I'm also uploading my binaries if anyone wants to test them
Any help on this matter is greatly appreciated.
Thanks!
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions