Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Connect Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. #21

Open
Heusini opened this issue Apr 21, 2021 · 0 comments

Comments

@Heusini
Copy link

Heusini commented Apr 21, 2021

I enabled the MQTT feature in the esp32 Firmware and flashed it to my particle argon.
The problem now is when i want to connect with the MQTT AT-Command the esp32 panics.
Maybe you can help me debug this problem.

MQTT Command i send:

AT+MQTTCONN=0,"192.168.0.118",1883,0\r\n

ESP32 Response:

all parameters are ready
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x400014dc  PS      : 0x00060730  A0      : 0x80001459  A1      : 0x3ffcd7e0
A2      : 0x0000075b  A3      : 0x00000757  A4      : 0x000000ff  A5      : 0x0000ff00
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x800910da  A9      : 0x3ffcd7b0
A10     : 0x3ffcd9ac  A11     : 0x00000001  A12     : 0x00060720  A13     : 0x00000000
A14     : 0x3ffcfa19  A15     : 0x3ffcd8c0  SAR     : 0x00000008  EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000075b  LBEG    : 0x4000c349  LEND    : 0x4000c36b  LCOUNT  : 0xffffffff

ELF file SHA256: 9dfefef0dfdc7996f1358f043093f04db8229901e05b7cca367c6c5060486717

Backtrace: 0x400014dc:0x3ffcd7e0 0x40001456:0x3ffcd7f0 0x40001445:0x3ffcd810 0x4014b101:0x3ffcd830 0x4014b7fc:0x3ffcd860 0x400e71c6:0x3ffcd890 0x400e5821:0x3ffcd8c0 0x400e7336:0x3ffcd8e0 0x40090966:0x3ffcd920

Rebooting...

sdkconfig to enable mqtt:

 CONFIG_AT_COMMAND_TERMINATOR_SUPPORT=
 CONFIG_AT_BASE_COMMAND_SUPPORT=y
 CONFIG_AT_WIFI_COMMAND_SUPPORT=y
-CONFIG_AT_NET_COMMAND_SUPPORT=
+CONFIG_AT_NET_COMMAND_SUPPORT=y
 CONFIG_AT_SOCKET_MAX_CONN_NUM=5

 #
 # AT ssl client authentication method
 #
+CONFIG_AT_SSL_CLIENT_SERVER_AUTH_CLIENT=y
+CONFIG_AT_SSL_CLIENT_CLIENT_AUTH_SERVER=y

 #
 # AT ssl server authentication method
 #
-CONFIG_AT_MQTT_COMMAND_SUPPORT=
+CONFIG_AT_SSL_SERVER_SERVER_AUTH_CLIENT=y
+CONFIG_AT_SSL_SERVER_CLIENT_AUTH_SERVER=y
+CONFIG_AT_MQTT_COMMAND_SUPPORT=y
 CONFIG_AT_HTTP_COMMAND_SUPPORT=
 CONFIG_AT_BLE_COMMAND_SUPPORT=
 CONFIG_AT_BLE_HID_COMMAND_SUPPORT=
@@ -679,8 +683,16 @@ CONFIG_MQTT_PROTOCOL_311=y
 CONFIG_MQTT_TRANSPORT_SSL=y
 CONFIG_MQTT_TRANSPORT_WEBSOCKET=y
 CONFIG_MQTT_TRANSPORT_WEBSOCKET_SECURE=y
-CONFIG_MQTT_USE_CUSTOM_CONFIG=
-CONFIG_MQTT_TASK_CORE_SELECTION_ENABLED=
+CONFIG_MQTT_USE_CUSTOM_CONFIG=y
+CONFIG_MQTT_TCP_DEFAULT_PORT=1883
+CONFIG_MQTT_SSL_DEFAULT_PORT=8883
+CONFIG_MQTT_WS_DEFAULT_PORT=80
+CONFIG_MQTT_WSS_DEFAULT_PORT=443
+CONFIG_MQTT_BUFFER_SIZE=1024
+CONFIG_MQTT_TASK_STACK_SIZE=6144
+CONFIG_MQTT_TASK_CORE_SELECTION_ENABLED=y
+CONFIG_MQTT_USE_CORE_0=y
+CONFIG_MQTT_USE_CORE_1=
 CONFIG_MQTT_CUSTOM_OUTBOX=

 #

And the customized cpp:

+    /*NET AT commands */
+    CHECK_TRUE(esp_at_net_cmd_regist(), RESULT_ERROR);
+
+    /*MQTT AT commands */
+    CHECK_TRUE(esp_at_mqtt_cmd_regist(), RESULT_ERROR);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant