-->
Page 1 of 2

I need help with LoLin NodeMcu V3 + ESP8266 SDK

PostPosted: Mon Jun 25, 2018 6:54 pm
by vaiojasard
I'm quite new in the 8266's world and I need some help.

First of all, I'm going to tell you what is my experience so far:

- I bought two NodeMcu LoLin V3 boards (I also have a esp8266-f SoC I've been successfully using to connect an Arduino board to Wifi)

- I bought Kolban's book about ESP8266 (I've read it more or less in depth depending on my interest in each topic)

- I installed Arduino IDE's extensions for programming ESP8266 modules and I was able to play with various test programs (AP enumerating, led blinking, etc.). I used the "NodeMCU 1.0 (ESP-12E Module)" option under "ESP8286 Modules" (I'm telling it because maybe it's important let you know)

So far so good, then I tried to take a step further and start to play with the SDK (No OS). In this regard, I followed these steps to set up de environment:

- I installed (over Windows 7 ultimate 64 bits):
* Eclipse IDE for C/C++ Developers (Oxygen.3a Release (4.7.3a))
* MinGW (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 8.1.0
* Core Utils 5.3.0 (aka GnuWin32)
* Latest Unofficial Development Kit for Espressif ESP8266 (http://dl.programs74.ru/get.php?file=Es ... 8266DevKit)

The problems arose when I tried some examples (blinky & blinky2 to be more precise) and nothing seemed to work.

I built the binaries objects from Eclipse (eagle.flash.bin & eagle.irom0text.bin) and then I flashed the board with them (from Eclipse itself and using nodemcu-flasher: eagle.flash.bin to 0x00000 and eagle.irom0text.bin to 0x10000. I also tried with different values for Flash Speed and SPI Mode). After flashing the board, I reset it from the integrated switch and nothing happened: no led blinking, nothing written to UART0 (from os_printf's I added in order to see if the program were alive)

Could somebody help me?

Of course I'll be glad to add any further information you could need

Thanks in advance

Best regards

Re: I need help with LoLin NodeMcu V3 + ESP8266 SDK

PostPosted: Thu Jun 28, 2018 10:35 pm
by davydnorris
The blinky example in the NONOS SDK is a bit broken so it's not a good starting project, even though that's what it was meant for! It hasn't been updated in ages and the flash instructions are a bit weird.

Try one of the other samples programs and you are likely to have more luck.

The most important thing is that you will generally need to match the flash mode to your module - the Lolin are 4M units so you will want flash mode 6 as a good starting point

Re: I need help with LoLin NodeMcu V3 + ESP8266 SDK

PostPosted: Fri Jun 29, 2018 8:03 am
by vaiojasard
Hi Davyd. Thank you for your response. I'll try your suggestions ASAP and I'll let you know the results.

Regards!

Re: I need help with LoLin NodeMcu V3 + ESP8266 SDK

PostPosted: Mon Jul 02, 2018 10:34 pm
by vaiojasard
For the records:
I figured out I hadn't flashed the esp_init_data_default.bin and blank.bin files. All worked as expected after doing it.

Regards!