Sming - Open Source framework for high efficiency native ESP8266 development

User avatar
By xlh1460
#19882 I have just installed sming.

Code: Select allchoco install sming -y


Now I am stuck trying to get the projects to build.

First try:
Code: Select all16:17:03 **** Build of configuration Sming for project Basic_Blink ****
make all
Makefile:16: *** ESP_HOME is not set. Please configure it in Makefile-user.mk.  Stop.

16:17:03 Build Finished (took 452ms)


Then after setting ESP_HOME and SMING_HOME according to https://github.com/anakod/Sming/wiki/Windows---Manual-Installation :

Code: Select all17:47:18 **** Incremental Build of configuration Sming for project Basic_Blink ****
make all
C+ /c/tools/Sming/Sming/appinit/user_main.cpp
C+ app/application.cpp
AR out/build/app_app.a
LD out/build/app.out
c:/Espressif/ESP8266_SDK/lib\libmain.a(nmi-vector.o):(.text+0x8): undefined reference to `NMI_Handler'
collect2.exe: error: ld returned 1 exit status
make: *** [out/build/app.out] Error 1

17:47:31 Build Finished (took 12s.761ms)



No idea why this is being such a pain.

The installation instructions seemed pretty straightforward.

Any ideas what I am doing wrong?

Thanks.
User avatar
By nitrokart
#20181 Hi everyone....

I need a little help on Wire library... I can't get wire.read() , to return the correct value....

I'm trying to read a slave (an arduino, with the Slave Sender template) from an esp8266...

Firstly, I flashed the slave and try it with other arduino as master, it worked fine!
Then I tried the same program using an esp8266... I flashed it with arduino esp8266 IDE it also worked fine...
Then I tried the program with Sming and I can't get it to work...

With Sming and i2c scanner I can "find" the slave and also I can write to the slave but I can't read from it... It always return some garbage... Even if it only have to read one byte...

This is my recive function :
void recive()
{
Wire.requestFrom(2, 6); // request 6 bytes from slave device #2

while(Wire.available()) // slave may send less than requested
{
char c = Wire.read(); // receive a byte as character
Serial.print(c); // print the character
}

}

Does anyone knows how to read from a slave, or if I'm doing something wrong...
Thanks in advance!