Replies: 3 comments 5 replies
-
Thanks for the MCVE. I am able to reproduce it locally. What's really weird, though, is that I tried to get better debugging by using -O0
- Os (normal Arduino build)
Decoded:
Arduino/cores/esp8266/HardwareSerial.cpp Lines 108 to 115 in d283541 Arduino/cores/esp8266/uart.cpp Lines 218 to 229 in d283541 |
Beta Was this translation helpful? Give feedback.
-
I was poking at this one also. I have been noticing lately that when I do some quick coding and forget the return, this kind of crash occurs. I didn't think too much about it, though I was surprised. I think, the resulting compile for a missing return use to work. Looks like the optimizer is a lot more aggressive in v10. There have been other optimizations that have bitten me. I wish I had kept track of them. |
Beta Was this translation helpful? Give feedback.
-
If a crash (almost) always occurs when no return statement is used you can consider |
Beta Was this translation helpful? Give feedback.
-
After upgrade from 2.7.4 to 3.0.0
this small program crashes:
Output (snip):
Expected output (with 2.7.4)
Is running fine on earlier releases, ofcourse. I can not see the relation with a misaligned pointer, of see what the release dependent difference can be, does someone?
Selected board is generic esp8266, upload output:
Executable segment sizes:
IROM : 233304 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26888 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 1248 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 764 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 24936 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 262204 bytes (27%) of program storage space. Maximum is 958448 bytes.
Global variables use 26948 bytes (32%) of dynamic memory, leaving 54972 bytes for local variables. Maximum is 81920 bytes.
/home/ed/.arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 /home/ed/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/upload.py --chip esp8266 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash 0x0 /tmp/arduino_build_599182/nodemcu_classtest.ino.bin
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: cc:50:e3:c6:93:20
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x034f
Compressed 266352 bytes to 196309...
Wrote 266352 bytes (196309 compressed) at 0x00000000 in 17.3 seconds (effective 123.4 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
I tried several computers. Can someone confirm this problem?
Beta Was this translation helpful? Give feedback.
All reactions