Skip to content

Loading the firmware

Myrgued edited this page May 22, 2017 · 6 revisions

previous page: Where to buy - next page: Assembly (wiring)

Installing the firmware, deleting the configuration

How to do it A:

How to do it B:

  • Download and install the Arduino IDE and the plugin for ESP8266 as above.
  • Download our firmware version: https://www.madavi.de/sensor/update/data/latest.bin.
  • Open the command line (Windows) or a terminal (Linux / MacOS)
  • Windows: %USERPROFILE%\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.8\esptool.exe -vv -cd nodemcu -cb 57600 -ca 0x00000 -cp COM11 -cf path_to_downloaded_firmware (port number following '-cp' may have to be adapted).
  • Linux / MacOS: ~/Library/Arduino15/packages/esp8266/tools/esptool/0.4.8/esptool -vv -cd nodemcu -cb 57600 -ca 0x00000 -cp /dev/cu.wchusbserial1410 -cf path_to_downloaded_firmware (port number following '-cp' may have to be adapted). Under Linux (untested for MacOS, may be another path), there is a script in sensors-software/utils/flash/, which can delete the configuration (see below).
  • The appropriate port is learned, for example, by connecting the NodeMCU to the desired port and then starting the Arduino IDE. Under 'Tools -> Port' the available port can be seen, usually the port with the NodeMCU is quite easy to recognize. Then close the IDE again because otherwise this port is blocked.

Deleting the configuration:

How to do it A: Via the Arduino IDE, the stored configuration can be deleted with the plugin [ESP8266 Sketch data upload] (https://github.com/esp8266/arduino-esp8266fs-plugin). Install the plugin according to the instructions. Once you run the plugin, a message appears, stating that the data directory is empty, asking whether you want to upload an empty SPIFFS image. Just click "Yes". The following upload of 3 MB may take some time. When finished, the NodeMCU can be restarted.

How to do it B: The procedure corresponds to "How to do it I" of the firmware import. As a "firmware" file, the file ppd42ns-wificonfig-ppd-sds-dht.spiffs.bin. The call of the esptool must then be changed to "-ca 0x00000" to "-ca 0x100000" and the path to the "firmware" file to the downloaded download. Implemented in (Linux / bash-) script under sensors-software/utils/flash/.

Clone this wiki locally