Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By RE:
#19742 I seem to have serious problems connecting to my SSID using Frankenstein. On a second device I don't get connected at all. If I reflash the latest AT frimware (0.9.5 ?) I can connect without problems. That seems to indicate that it is neither a hw problem of the ESP8266 nor a problem with my network. I tried both, static and dhcp connections.

BTW, ifconfig reports state : <null>. That looks strange to me. shouldn't that be "idle"?

Code: Select allsta0: WiFi Client Interface
     state   : <null>
     rssi    : 0
     channel : 0
     inet addr:0.0.0.0 Mask:0.0.0.0 Gateway:0.0.0.0
User avatar
By RE:
#19762
Necromant wrote:
reaper7 wrote:@Necromant - it will be possible to compile Frankenstein firm on windows? (for eg on "My Espressif DevKit for Windows")


Frankenstein is based on antares buildsystem, that's been only well tested in a Linux/FreeBSD environment. MAC OS X support is there as well, it works, but it lacks regular regression testing. Regarding windows - nobody ever tried that. It MIGHT work under cygwin, but I can't even guess what bugs might arise.
Without cygwin it's most likely a no-go, since windows lacks even the simplest command line tools... If you actually make antares work in windows environment without breaking linux/os x support - beer/coffee's on me ;)


I made some progress to use antares in a cygwin environment. Unfortunately I have to use a mixture of MinGW and Cygwin. And unfortunately MinGW does not understand Cygwin's symlinks. I have to manually copy generated/autoconf.h to include/generated/autoconf.h.

The final link step still fails.
User avatar
By RE:
#19868 OK, here is a patch to suppress the usage of microrl. I don't see a means to upload files in this forum. That's why I include the patch directly.

best regards
RE

---------------------
Code: Select alldiff --git a/configs/config_default b/configs/config_default
index baebca5..a9932a4 100644
--- a/configs/config_default
+++ b/configs/config_default
@@ -163,6 +163,7 @@ CONFIG_CMD_DHT11=y
 #
 # Commandline fine-tuning
 #
+CONFIG_USE_MICRORL=y
 CONFIG_MICRORL_USE_COMPLETE=y
 CONFIG_MICRORL_USE_HISTORY=y
 
diff --git a/include/microrl.h b/include/microrl.h
index 69254ac..36e6860 100644
--- a/include/microrl.h
+++ b/include/microrl.h
@@ -94,6 +94,8 @@ typedef struct {
 #endif
 } microrl_t;
 
+#ifdef CONFIG_USE_MICRORL
+
 // init internal data, calls once at start up
 void microrl_init (microrl_t * pThis, void (*print)(const char*));
 
@@ -124,5 +126,16 @@ void microrl_insert_char (microrl_t * pThis, int ch);
 void microrl_print_prompt (microrl_t * pThis);
 void microrl_set_prompt(const char* prompt);
 
+#else
+
+#define microrl_init(pThis,print)
+#define microrl_set_echo(arg)
+#define microrl_set_complete_callback(pThis,get_completion)
+#define microrl_set_execute_callback(pThis,execute)
+#define microrl_set_sigint_callback(pThis,sigintf)
+#define microrl_insert_char(pThis,ch)
+#define microrl_print_prompt(pThis)
+#define microrl_set_prompt(prompt)
+#endif
 
 #endif
diff --git a/kcnf b/kcnf
index b2d7ef3..d2cb273 100644
--- a/kcnf
+++ b/kcnf
@@ -152,6 +152,9 @@ endmenu
 
 menu "Commandline fine-tuning"
 
+config USE_MICRORL
+bool "Provide command line editing"
+
 config MICRORL_USE_COMPLETE
 bool "Command auto-completion"
 
diff --git a/src/microrl.c b/src/microrl.c
index ef83fe5..91e7f55 100644
--- a/src/microrl.c
+++ b/src/microrl.c
@@ -16,6 +16,8 @@ BUGS and TODO:
 #include <stdio.h>
 #endif
 
+#ifdef CONFIG_USE_MICRORL
+
 #include "console.h"
 
 //#define DBG(...) fprintf(stderr, "\033[33m");fprintf(stderr,__VA_ARGS__);fprintf(stderr,"\033[0m");
@@ -752,3 +754,5 @@ void microrl_set_echo (int e)
 {
    echo = e;
 }
+
+#endif // CONFIG_USE_MICRORL