So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By enderbeats
#82933 Hello everyone!

I've been struggling for a week with my ESP8266 while trying to upload a 1KB certificate on my board. I'm working on an IoT bootcamp for Watson IoT (not the first time I do, but the first time with this board) and one of the steps requires me to upload an SSL certificate to secure the connection.

I've downloaded the latest pluggin and placed it under Arduino/tools/ESP8266FS/tool/ also compiled/upload several sketches with no issues. But, when I try a data upload (have also created a data folder on my sketch folder for this project) I get this error:

Arduino: 1.8.9 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 160 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

[SPIFFS] data : /Users/ender/arduino/Bootcamp_ESP8266/data
[SPIFFS] size : 1004
[SPIFFS] page : 256
[SPIFFS] block : 8192
/rootCA_certificate.der
skipping .DS_Store
[SPIFFS] upload : /var/folders/q4/5s9_2c210514y_4sclssxbtm0000gn/T/arduino_build_576795/Bootcamp_ESP8266.spiffs.bin
[SPIFFS] address : 0x300000
[SPIFFS] reset : nodemcu
[SPIFFS] port : /dev/cu.wchusbserial14320
[SPIFFS] speed : 115200
[SPIFFS] python : /Users/ender/Library/Arduino15/packages/esp8266/tools/python/3.7.2-post1/python
[SPIFFS] uploader : /Users/ender/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/upload.py

esptool.py v2.6
Serial port /dev/cu.wchusbserial14320
Connecting....
Chip is ESP8266EX
Features: WiFi
MAC: a0:20:a6:29:f9:52
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Traceback (most recent call last):
File "/Users/ender/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/upload.py", line 25, in <module>
esptool.main(fakeargs)
File "/Users/ender/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 2698, in main
operation_func(esp, args)
File "/Users/ender/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 2125, in write_flash
% (argfile.name, argfile.tell(), address, flash_end))
esptool.FatalError: File /var/folders/q4/5s9_2c210514y_4sclssxbtm0000gn/T/arduino_build_576795/Bootcamp_ESP8266.spiffs.bin (length 1028096) at offset 3145728 will not fit in 1048576 bytes of flash. Use --flash-size argument, or change flashing address.
SPIFFS Upload failed!

//-------------------------------------------------------

I don't understand why it is trying to upload that binary file and from that folder, but if I go there and delete it, the IDE creates it again when I try the data upload... Any thoughts?

Thanks!