Closed T94T closed 4 years ago
I have the same issue now. @T94T did you found the solution for this problem ?
Build your app from a command line, then mos flash && mos console
. The mos console
command starts a core backtrace on crash - the only thing it needs is an .elf
file. The backtrace should give a clue what is going on.
Thank you for your answer. I've done this and I'm getting these log files, but I'm new to mongoose os and I'm totally lost finding any helpful information in these cryptographic logs.
@henrikengelbrink
I've been using ESP32 with mongoose-os with 16M flash sizes without any issue.
Please do as @cpq outlined:
mos flash
and mos console
to flash and start the serial monitor.bt
command on gdb to get the stack traceFeel free to ask more questions on the project's gitter channel https://gitter.im/cesanta/mongoose-os
@DrBomb Thank you for your detailed information.
I already found the problem. The .protocol
parameter in the ap config struct was missing. This seems to be a new thing and it was not mentioned in the docs. Would be helpful if you can update the docs that nobody will have the same issue in the future.
struct mgos_config_wifi_ap ap_config = {
.enable = true,
.ssid = "esp32eh",
.pass = "XXX",
.ip = "192.168.99.1",
.netmask = "255.255.255.0",
.dhcp_start = "192.168.99.20",
.dhcp_end = "192.168.99.100",
.channel = 5,
.max_connections = 3,
.protocol = "BGN" // <- was missing
};
bool wifiSuccess = mgos_wifi_setup_ap(&ap_config);
LOG(LL_INFO, ("Wifi Success: %d", wifiSuccess));
This code is working now and the AP is running and it's possible to connect to it.
Ok, so your problem was not because your module was 16Mb but because your application was crashing due to application code.
I would suggest just using the config parameters for AP config instead of initializing the AP mode yourself. But if it works that's good.
I'll be closing this issue because it is 1 year old already.
EDIT: Someone just pointed to me that the struct mgos_config_wifi_ap
structure comes from the wifi.ap
config schema. So as long as you use that structure, your app will break on any change we make to it. Please consider using the config schema to set up the AP.
Hi,
I currently got a new ESP32-WROOM-32 with 16MB of flash from Mouser. No matter what firmware (for example the mongoose-os-apps/demo-c) is flashed on the chip I get the error message below. Flashing common esp-idf projects is working fine though.