nodemcu custom firmware build problems

坚强是说给别人听的谎言 提交于 2019-12-11 04:06:09

问题


hello everybody:) I built a firmware with cloud build service. The firmware is master and includes "adc, file, gpio, http, mqtt, net, node, ow, spi, tmr, uart, wifi" and also supports SSL. Using ESP 07 and the previous version of firmware was nodeMCU 0.9.6 and that was correctly worked but didn't support some modules that i need. To flash the firmware, i use NodeMCU flasher with these setting: flasher setting

I upload the binary firmware file to address 0x00000 and esp_init_data_default.bin which is from ESP8266_NONOS_SDK_V1.5.4.1 (downloaded from nodemcu website) to address 0x7c000. After finishing the upload, module very actively prints garbage on the console. I uploaded nodeMCU 0.9.6 again to check if the problem is because of the way i flashed firmware, but it wasn't. The module worked with uploaded nodeMCU 0.9.6 well.

Thank you very much:)


回答1:


ESP-07 is a 512KB module. Hence,

  • flash mode is qio
  • flash size is 512KB

All the required settings are documented at http://nodemcu.readthedocs.io/en/latest/en/flash/.

So, using esptool.py the command is as follows:

esptool.py --port <serial-port-of-ESP8266> write_flash -fm qio -fs 4m 0x00000 <nodemcu-firmware>.bin 0x7c000 esp_init_data_default.bin

The esp_init_data_default.bin is contained in http://bbs.espressif.com/download/file.php?id=1572 as the documentation linked above explains.




回答2:


I was facing the same issue. I did the following steps, which solved my issue. Before flashing a new firmware, make sure your chip is fully erased. You may use the command below where "serial-port-of-ESP8266" may vary:

esptool.py --port <serial-port-of-ESP8266> erase_flash

Then flash the firmware to the chip using the same technique you use for flashing nodeMCU 0.9.6. You can refer the command below, which is what I used for flashing.

esptool.py --port /dev/ttyACM0 write_flash -fm qio 0x00000 nodemcu-master-8-modules-2016-12-16-09-52-59-float.bin



回答3:


You mentioned that garbage was printed to console. This can be an indication of mismatched serial port parameters. It's probably worth spending a couple of minutes playing around working through the speed/parity settings of the tool you are using to display the serial output. Try using Putty or Coolterm for "raw" output as these apps do not try and interpret the response.



来源:https://stackoverflow.com/questions/39512319/nodemcu-custom-firmware-build-problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!