AT+BLEINIT=2 ERROR

Anton_Dru
Posts: 7
Joined: Sun Dec 27, 2020 7:01 pm

AT+BLEINIT=2 ERROR

Postby Anton_Dru » Thu Sep 09, 2021 4:40 pm

Hey!
I am using ESP32-C3 on DevKitC-02 board. I am trying to initialize BLE via AT + BLEINIT = 2 and I get this response

AT + BLEINIT = 2
AT + BLEINIT = 2

ERROR

At the same time, the following message appears on the UART as a channel for the logs:

"Config struct mismatch: magic = 5a5aa5a5, ver = 02103310"

The steps described in the official documentation for enabling the BLE server I did https://docs.espressif.com/projects/esp ... #cmd-binit
In addition, I noticed that the latest version of ESP-AT itself generates the necessary files and flashes them to the desired addresses in the flash. I used the AT + SYSFLASH? Command to check. She gave me such a log

AT + SYSFLASH?
AT + SYSFLASH?

SYSFLASH: "ble_data", 64,1,0x1f000,0x6000
SYSFLASH: "server_cert", 64,2,0x25000,0x2000
SYSFLASH: "server_key", 64,3,0x27000,0x2000
SYSFLASH: "server_ca", 64,4,0x29000,0x2000
SYSFLASH: "client_cert", 64,5,0x2b000,0x2000
SYSFLASH: "client_key", 64,6,0x2d000,0x2000
SYSFLASH: "client_ca", 64,7,0x2f000,0x2000
SYSFLASH: "factory_param", 64,8,0x31000,0x1000
SYSFLASH: "wpa2_cert", 64,9,0x32000,0x2000
SYSFLASH: "wpa2_key", 64,10,0x34000,0x2000
SYSFLASH: "wpa2_ca", 64,11,0x36000,0x2000
SYSFLASH: "mqtt_cert", 64,12,0x38000,0x2000
SYSFLASH: "mqtt_key", 64,13,0x3a000,0x2000
SYSFLASH: "mqtt_ca", 64,14,0x3c000,0x2000
SYSFLASH: "fatfs", 1,129,0x47000,0x19000
OK

Tell me what am I doing wrong? Thank you in advance!

Anton_Dru
Posts: 7
Joined: Sun Dec 27, 2020 7:01 pm

Re: AT+BLEINIT=2 ERROR

Postby Anton_Dru » Fri Sep 10, 2021 8:57 am

This issue was resolved by updating the firmware. More details here: https://github.com/espressif/esp-at/issues/563

ESP_Alson
Posts: 106
Joined: Mon Mar 22, 2021 3:37 am

Re: AT+BLEINIT=2 ERROR

Postby ESP_Alson » Thu Dec 30, 2021 7:26 am

What version of AT do you use?

For ESP32-C3 v2.2.0.0 version, It does not support BLE function. If you want to use BLE functions, you can download ESP32-C3 v2.3.0.0 from https://docs.espressif.com/projects/esp ... aries.html.

Who is online

Users browsing this forum: No registered users and 36 guests