So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By vaiojasard
#76612 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 listing, 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 and
playing with different value for Flash Speed and SPI Mode). After flashing, I reset the board with the integrated switch and nothing happened: no led blinking and nothing was written to the UART0 (from os_printf's added by me in order to do some debug)

Could someone help me?

I'll be glad to add any extra info needed

Thanks in advance

Best regards
User avatar
By Luis Lopez
#82536 Hi, I have a very similar setup to yours but
Windows 10 64 bits
Eclipse CDT 2019-03 (latest)
mingw-get version 0.6.3-pre-20170905-1 (directly from mingw.org)
and of course the very same Unofficial Development Kit

I´ve also been successful with Arduino IDE so far

As far as I know the board I´m using (a Wemos D1 mini clone) should be pretty similar to yours:
4Mb flash which should be SPI mapping 4 or 6 (6 if i take into account that using Arduino IDE with 1Mb SPIFFs works for me)

So, the sad part is that I get random resets or garbage in the serial terminal, I am able to see part of the programs executing if I use the no boot option and flash (exactly as you did). I also tried the blinky without modifications and I can see the led flashing but after a while I get random errors and the board resets.

My guess is just that I got a little but further than you (not there yet).... At least I can see something going on over UART

As for suggestions it comes to mind:
- I am assuming you attempted to replicate Arduino IDE settings
- Did you check viewtopic.php?f=9&t=820 thoroughly? Just double checking, I know there is a list of packages that need to be in your MinGW installation, there is even a script that automates the whole thing

I think I will try to adhere to these instructions and reinstall everything, hope this reply helps somehow ... would you let me know if you get it working?

Best of luck!!