Moderator: igrr
I also had to disable wdt in the run loop, otherwise it was resetting the board.
I had no such problem with Arduino IDE.
Hope it helps whoever is going through the same pain.
extern "C" {
#include "user_interface.h"
}
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.print("system_get_sdk_version(): ");
Serial.println(system_get_sdk_version());
delay(1000);
}
at compile time I get:
.ino:9: undefined reference to `system_get_sdk_version()'
EDIT:
I figured. You can avoid this error by creating another header file and puting extern "C" in there.
extern "C" {
#include "user_interface.h"
}