Sketch uses 294520 bytes (28%) of program storage space. Maximum is 1044464 bytes.
Global variables use 30740 bytes (37%) of dynamic memory, leaving 51180 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM3
Connecting…
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 84:f3:eb:5a:1a:b0
Uploading stub…
Running stub…
Stub running…
Configuring flash size…
Auto-detected Flash size: 4MB
Compressed 298672 bytes to 216087…
Writing at 0x00000000… (7 %)
Writing at 0x00004000… (14 %)
Writing at 0x00008000… (21 %)
Writing at 0x0000c000… (28 %)
Writing at 0x00010000… (35 %)
Writing at 0x00014000… (42 %)
Writing at 0x00018000… (50 %)
Writing at 0x0001c000… (57 %)
Writing at 0x00020000… (64 %)
Writing at 0x00024000… (71 %)
Writing at 0x00028000… (78 %)
Writing at 0x0002c000… (85 %)
Writing at 0x00030000… (92 %)
Writing at 0x00034000… (100 %)
Wrote 298672 bytes (216087 compressed) at 0x00000000 in 19.1 seconds (effective 125.3 kbit/s)…
Hash of data verified.
Leaving…
Hard resetting via RTS pin…
I’m newbie use nodemcu, and i have errors when upload the code, i’ve reset it but still not working, what should i do for fix it?
Thankyou
That’s what a normal upload looks like. These aren’t error messages, they are are informational messages. The “Hard Resetting …” message simply means that the device is rebooting so that it will load and run the new code.
This is your error message.
It occurs because the code you are using doesn’t correctly declare the interrupt ISR function. This isn’t a problem with earlier versions of the ESP core, as they were tolerant of this omission, but later versions are more strict about this.
To fix the issue you need to add ICACHE_RAM_ATTR to the name of your ISR, like this:
void ICACHE_RAM_ATTR yourFunctinName()
Also, the ISR function needs to be before your void setup() otherwise you’ll get a ‘not declared in this scope error’.
A quick search of google or this forum would have revealed all of this information, as it is not a Blynk specific issue.