Author Topic: ESP8266 ESP12E  (Read 1361 times)

0 Members and 1 Guest are viewing this topic.

Offline MetonymyTopic starter

  • Newbie
  • Posts: 8
  • Country: ro
ESP8266 ESP12E
« on: February 02, 2018, 12:23:24 pm »
Hello,

Not long ago I have purchased a NodeMCU module from Aliexpress in order to teach myself about FreeRTOS.

I'm unable to get this example to work on it: https://github.com/espressif/ESP8266_RTOS_SDK/tree/master/examples/smart_config

When running ./gen_misc.sh I use default values, except for the SPI_SIZE_MAP where I chose 4.

I got the following output:

---
!!!
SDK_PATH: /home/denis/Development/ESP8266_RTOS_SDK
BIN_PATH: /home/denis/Development/ESP8266_RTOS_SDK/bin

No boot needed.
Generate eagle.flash.bin and eagle.irom0text.bin successully in BIN_PATH
eagle.flash.bin-------->0x00000
eagle.irom0text.bin---->0x20000
!!!
---

And I've tried the following commands, each one without success:

esptool.py write_flash 0x00000 eagle.flash.bin 0x20000 eagle.irom0text.bin 0x7E000 blank.bin // Led blinks rapidly
esptool.py write_flash 0x00000 eagle.flash.bin 0x40000 eagle.irom0text.bin 0x7E000 blank.bin // Led doesn't blink however smart config doesn't work.
esptool.py write_flash 0x00000 eagle.flash.bin 0x20000 eagle.irom0text.bin // Led blinks rapidly

I've also tried to flash the blinky example from esp-open-sdk, didn't work, led started blinking but not according to the code.

Could anybody tell me what I'm doing wrong? My board is: V3 Wireless module NodeMcu 4M bytes Lua WIFI Internet of Things development board based ESP8266 esp-12e
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9925
  • Country: nz
Re: ESP8266 ESP12E
« Reply #1 on: February 02, 2018, 01:18:32 pm »
Install arduino and its ESP8266 library.
One you get that working, which is quite easy, you should be able to look at the log window from an upload and see what esptool.py command parameters arduino uses to program your esp.
And you can run some examples to confirm your board is good

another thing that might be worth doing is use a serial terminal to read the ESP8266 serial boot data when starting it in bootloader mode.
It may tell you some useful info about your particular chip. From memory it spits out info at either 115k or 56k board
« Last Edit: February 02, 2018, 01:24:24 pm by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline MetonymyTopic starter

  • Newbie
  • Posts: 8
  • Country: ro
Re: ESP8266 ESP12E
« Reply #2 on: February 02, 2018, 03:57:36 pm »
I did test with Arduino IDE the first time I got the board, it was working okay.

And right now, I got the blinky exameple from rtos-open-sdk working, the trick is to use:

esptool.py write_flash 0x3FC000 esp_init_data_default.bin
esptool.py write_flash 0x3FE000 blank.bin

esptool.py write_flash 0x00000 blinky-0x00000.bin 0x10000 blinky-0x10000.bin

I did not know about "esptool.py write_flash 0x3FC000 esp_init_data_default.bin"

Apparently the same result can be accomplished with:

esptool.py erase_flash
esptool.py write_flash 0x3FC000 esp_init_data_default.bin
esptool.py write_flash 0x00000 blinky-0x00000.bin 0x10000 blinky-0x10000.bin

This is great!

I saw esp_init_data_default in the datasheet but I didn't know that it is required.

Here's the output of flash_id if someone is interested:

Manufacturer: 20
Device: 4016

I just tested the samart_config example from FreeRTOS SDK and it works!!

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf