s-pw / PianoLED

34 stars 11 forks source link

Problem with flashing #1

Open Crazy-Geeks opened 5 years ago

Crazy-Geeks commented 5 years ago

Hello. I'm using NodeMCU, ESP-12E. Tried to flash firmware to 0x12000. Rboot easily starts, but it can't see ROM. I've tried to flash eagle.app.bin to 0x2000 (or 0x02000), what is described in readme of rboot sources, but it still do not work. What should I do with this for correct working? image

s-pw commented 5 years ago

Try using a full dump from my chip https://github.com/NodeMCUProjects/nodemcu-firmware/releases/download/midiPoC/0x00000_full.zip

You will have to flash esp_init_data_default.bin at 0x3fc000 so the ESP performs RF calibration for your specific chip. Also, you'll need to save your WiFi configuration using commands via UART.

Crazy-Geeks commented 5 years ago

Where I need to find "esp_init_data_default.bin"? In other project? Or just rename "0x0" file? Or don't need to flash smth to 0x3fc000, just "0x0" in 0x0? I tried to flash anorher module, with stock firmware, with other settings. Module succesfully started, requested "init.lua", I tried to upload lua, via ESPlorer, but he did not respond to requests or comands, so lua didn't uploaded at all. Tried these all in NodeMCU v3 board with CP2102, after, with de-soldering module, tried external CP2102 converter, and after this - FTDI flasher, nothing of this didn't uploaded lua.

s-pw commented 5 years ago

You will find more information on https://nodemcu.readthedocs.io/en/master/flash/ https://github.com/NodeMCUProjects/nodemcu-firmware/releases/download/midiPoC/0x00000_full.zip should already have all lua files if your flash is 4MB. You can also use web browser IDE to upload files using drag-drop after connecting to wifi and issuing LUA command: api = devapi.createServer()

Crazy-Geeks commented 5 years ago

After flashing your dump - firmware starts, but still don't respond to any command. If I try to flash firmware with init_data - esptool gives an error: image

About responding: ESP didn't write in terminal any "Ok" to any comand, no wi-fi generated. image What I need to do with this? Sorry for my stupidity and incompetence in some questions, this is my first ESP project with this level, which i am trying to repeat. Before that were simple Arduino projects, so in deeper ESP programming I understand almost nothing. Thank you for your patience and understanding.