-->
Page 1 of 3

SDK call Example

PostPosted: Tue Mar 31, 2015 1:03 pm
by gerardwr
This sketch shows how functions in the ESP8266 SDK can be called from an Arduino sketch.

The picture below shows output from the sketch.

Schermafbeelding 2015-03-31 om 19.59.21.png


ESP8266SDK2.ino.zip

Re: SDK call Example

PostPosted: Tue Mar 31, 2015 1:43 pm
by Mikejstb
I'm getting an error that user_interface.h isn't found.
That file does exist in my ESP-Arduino IDE path under hardware/tools/esp8266/sdk/include so I'm not sure what I'm doing wrong.
I've been able to build and run other projects.
Is there somewhere where I'm supposed to define that path to that file?

Re: SDK call Example

PostPosted: Tue Mar 31, 2015 1:55 pm
by Mikejstb
sorry - my bad
I started the ESP-Arduino with the desktop shortcut I'd made but for some reason it had set back to use an Arduino Yun board instead of the ESP.
I'll be sure to check that every time I start up

Re: SDK call Example - Not Working

PostPosted: Fri Apr 10, 2015 5:35 am
by AcmeUK
Hi

Tried this and no joy.

If I look at the boot messages at 74880 baud I get :-
Code: Select all ets Jan  8 2013,rst cause:1, boot mode:(3,7)

load 0x40100000, len 27564, room 16
tail 12
chksum 0x63
ho 0 tail 12 room 4
load 0x00000000, len 0, room 12
tail 0
chksum 0x63
load 0x00000000, len 0, room 4
tail 0
chksum 0x63
csum 0x63
csum err
ets_main.c

I had to put this at the top to get this far:-
Code: Select allvoid* __dso_handle;

Any Ideas?