- Notifications
You must be signed in to change notification settings - Fork 13.3k
Closed
Labels
component: SDKcomponent: corehelp wantedHelp needed from the communityHelp needed from the communitytype: bug
Description
Basic Infos
- This issue complies with the issue POLICY doc.
- I have read the documentation at readthedocs and the issue is not addressed there.
- I have tested that the issue is present in current master branch (aka latest git).
- I have searched the issue tracker for a similar issue.
- If there is a stack dump, I have decoded it.
- I have filled out all fields below.
Platform
- Hardware: [ESP-01]
- Core Version: [313b3c0]
- Development Env: [Arduino IDE]
- Operating System: [Ubuntu]
Settings in IDE
- Module: [Generic ESP8266 Module]
- Flash Mode: [dio]
- Flash Size: [1MB]
- lwip Variant: [v2 Lower Memory]
- Reset Method: [nodemcu]
- Flash Frequency: [40Mhz]
- CPU Frequency: [80Mhz]
- Upload Using: [SERIAL]
- Upload Speed: [115200]
Problem Description
Any program compiled and uploaded using the latest git master does not run at all. After a successful compile and upload Arduino serial monitor only shows garbage (using a scope on the serial line shows data with a non-standard baudrate that I can't decode). The LED is constantly on.
Simplest sketch that reproduces this is the "Blink" example. However the result is the same regardless of what program is uploaded.
Using git bisect from a known-good release (2.4.2) shows that the commit that introduced this issue is:
7356cd1
Heap init code improvements and updates (#8458)
Reverting just this commit on the latest git master fixes the problem.
MCVE Sketch
void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(1000); digitalWrite(LED_BUILTIN, LOW); delay(1000); }
Debug Messages
Picked up JAVA_TOOL_OPTIONS: . Variables and constants in RAM (global, static), used 27984 / 80192 bytes (34%) ║ SEGMENT BYTES DESCRIPTION ╠══ DATA 1496 initialized variables ╠══ RODATA 856 constants ╚══ BSS 25632 zeroed variables . Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 59601 / 65536 bytes (90%) ║ SEGMENT BYTES DESCRIPTION ╠══ ICACHE 32768 reserved space for flash instruction cache ╚══ IRAM 26833 code in IRAM . Code in flash (default, ICACHE_FLASH_ATTR), used 232952 / 1048576 bytes (22%) ║ SEGMENT BYTES DESCRIPTION ╚══ IROM 232952 code in flash esptool.py v3.0 Serial port /dev/ttyUSB0 Connecting.... Chip is ESP8266EX Features: WiFi Crystal is 26MHz MAC: [...] Uploading stub... Running stub... Stub running... Configuring flash size... Auto-detected Flash size: 1MB Erasing flash (this may take a while)... Chip erase completed successfully in 0.0s Flash params set to 0x0220 Compressed 266288 bytes to 196214... Writing at 0x00000000... (8 %) Writing at 0x00004000... (16 %) Writing at 0x00008000... (25 %) Writing at 0x0000c000... (33 %) Writing at 0x00010000... (41 %) Writing at 0x00014000... (50 %) Writing at 0x00018000... (58 %) Writing at 0x0001c000... (66 %) Writing at 0x00020000... (75 %) Writing at 0x00024000... (83 %) Writing at 0x00028000... (91 %) Writing at 0x0002c000... (100 %) Wrote 266288 bytes (196214 compressed) at 0x00000000 in 20.1 seconds (effective 105.9 kbit/s)... Hash of data verified. Leaving... Hard resetting via RTS pin...
Metadata
Metadata
Assignees
Labels
component: SDKcomponent: corehelp wantedHelp needed from the communityHelp needed from the communitytype: bug