-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation settings for ESP8266 in Arduino IDE (ESF-127) #104
Comments
Hello @Crystallonus , please enable tracing with |
DEBUG_TRACE.txt Hello. My script is just a blink with output to serial, I didn't even try to upload anything more complicated, I started with this and it already didn't work.
My settings in the Arduino IDE (I tried changing them differently, the result is the same): |
After a brief glance, there seems to be nothing wrong with the binary itself. Considering flashing verification using MD5 is not available for the |
At a speed of 19200, the result is the same, at a speed of 9600, the upload stops working: I tried uploading the blink example compiled under 'non-os-sdk' from platformio, it similarly doesn't work, but now instead of endless rebooting, the board just outputs this log and then nothing happens:
When uploading the sketch to the board directly from platformio, it works. Attaching the debug trace obtained during the upload of this bin and the bin file itself. Speed 19200. Speed 9600 with this bin file also does not work, just like with the previous one. Just to clarify, I understand correctly that there is no need for me to do anything with the bootloader.bin and partition-table.bin files? I just replace hello-world.bin with mine, right? |
The on-device partition table needs to match the layout of the partitions flashed to the device, so It would be best if you flashed the partition table. |
Yes, if you're actually uploading the bootloader and partition table you built with your app. If you only placed the app binary in the example folder and used preexisting binaries for the bootloader and partition table, unless the partition table matches the layout of your app, it's not gonna work. Here is the output of > esptool.py image_info hello-world.bin
esptool.py vv4.8.dev1
File size: 195984 (bytes)
Detected image type: ESP8266
WARNING: Suspicious segment 0x40210010, length 149844
WARNING: Suspicious segment 0x40234964, length 20164
Image version: 1
Entry point: 40210f08
5 segments
Segment 1: len 0x24954 load 0x40210010 file_offs 0x00000008 [IROM]
Segment 2: len 0x04ec4 load 0x40234964 file_offs 0x00024964 [IROM]
Segment 3: len 0x00620 load 0x3ffe8000 file_offs 0x00029830 [DRAM]
Segment 4: len 0x00a50 load 0x40100000 file_offs 0x00029e58 [IRAM]
Segment 5: len 0x054b0 load 0x40100a50 file_offs 0x0002a8b0 [IRAM]
Checksum: 90 (valid) And here is the output for your binary: > esptool.py image_info hello-world.bin
esptool.py vv4.8.dev1
File size: 270464 (bytes)
Detected image type: ESP8266
Image version: 1
Entry point: 4010f480
2 segments
Segment 1: len 0x00d60 load 0x4010f000 file_offs 0x00000008 []
Segment 2: len 0x00028 load 0x3fff20b8 file_offs 0x00000d70 [DRAM] |
Closing this for inactivity. |
I'm trying to upload a firmware bin file from an ESP32 to an ESP8266. The test firmware hello world, the bin file of which comes with your library, is uploaded and works, but after I upload the firmware bin file that I make for the ESP8266 in the Arduino IDE, the microcontroller continuously reboots with errors. The same firmware, uploaded to the same ESP8266 directly from the Arduino IDE without using your library, works perfectly. As I understand, I am using some unsuitable compilation settings, could you suggest what settings should be used? I think it will be useful not only to me. Thank you!
The text was updated successfully, but these errors were encountered: