Closed shawnlobo96 closed 7 years ago
By data log do you mean serial debug output?
Also, could you please care to elaborate how you fixed the issue mentioned in an earlier edit of this issue?
I was successful in building the ESP8266-HomeKit and ESP8266-HomeKit-Demo and got the two files "eagle.flash.bin" and "eagle.irom0text.bin". On running the esptool flash tool, the files were successfully written to the ESP8266 NodeMCU 1.0 at the addressed "0x00000" and "0x14000". After resetting (pressing the reset button) the board, the led on the NodeMCU board kept flashing rapidly and writing gibberish data to the serial monitor on the Arduino Serial Monitor. I wasn't able to get it running. What could be the problem? Is there any configuration that I may have missed?
Wifi instructions added, good point! As for Ubuntu serial programs, try Coolterm. Realise that it needs to support 74880 baud which is not obvious. Coolterm can if adding a special file (see its help files).
Please confirm if it worked?
Also, could you please care to elaborate how you fixed the issue mentioned in an earlier edit of this issue?
@AdySan I managed to get it working on NodeMCU 1.0 by following the below steps:
$ cd ../ESP8266-HomeKit-Demo
$ ./gen_misc.sh
should create two files eagle.flash.bin and eagle.irom0text.bin in the bin directory.$ esptool.py -p /dev/ttyUSB1 erase_flash
(*set the appropriate port)0x3fe000
and 0x3fc000
(or other addresses depending upon the flash size).$ esptool.py --baud 230400 -p /dev/ttyUSB1 write_flash 0x3fe000 bin/blank.bin 0x3fc000 bin/esp_init_data_default.bin
(*set the appropriate port) (the files blank.bin and esp_init_data_default.bin** come along with ESP8266_RTOS_SDK and is present in the bin directory)0x00000
and 0x14000
respectively $ esptool.py --baud 230400 -p /dev/ttyUSB1 write_flash 0x00000 ../bin/eagle.flash.bin 0x14000 ../bin/eagle.irom0text.bin
(*set the appropriate port)
Some of the main steps I followed and weren't mentioned in the wiki page were step 3 and step 9
Hope this helps! Please let me know if it worked or didn't for you.
By data log do you mean serial debug output?
Yep @AdySan serial debug output. @HomeACcessoryKid I tried using PUTTY and set the baud rate to 74880 but it returned gibberish data.
@shawnlobo96 Thanks for the recovery procedure after erasing flash, I'll update the wiki.
Regarding the It is possible your USB-Serial chip doesn't support that baud rate for some reason, can you try changing the default baud rate in the SDK?
Hello, I am having kind of a problem getting the code run, I forked the repository and followed the travis instructions, it looks it generates some kind of binary but when I connect it to a serial console, all I can see is this:
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 29960, room 16 tail 8 chksum 0x42 load 0x3ffe8000, len 2860, room 0 tail 12 chksum 0xff ho 0 tail 12 room 4 load 0x3ffe8b40, len 4528, room 12 tail 4 chksum 0xd7 csum 0xd7
Any ideas on what step I did wrong? the only step I didn't follow is 1) from @shawnlobo96 because I ran a travis build
I think you should first check your setup and get a hello world to work. There are many places that explain how. Consider starting from scratch…
How to get data log on Ubuntu? After searching through the code I managed to get it working. Please mention in the wiki that the WiFi credentials have to be added in the user_main.c file. Great job on the code gotta say that!