Page 1 of 1

Using AT+SYSMFG commands

Posted: Wed Jul 19, 2023 10:52 pm
by banjoluck
Greetings,

We are using the ESP32 AT command firmware, v2.4.2.0 on the C3. We made a small change to the configuration to select the pins for the serial port. Otherwise, the configuration is 100% vanilla.

We'd like to use the AT+SYSMFG commands. The documentation states that this should return a namespace:

AT+SYSMFG?
+SYSMFG:<"namespace">
OK

When we run this command, we see

AT+SYSMFG?
ERROR

As far as we can tell, none of the SYSMFG command variants work. Do we need to do something else first, before these commands will work. We expect that the NVS data is initialized because we have systore enabled:

AT+SYSSTORE?
+SYSSTORE:1
OK

and we have setup WiFi, so at a minimum there should be WiFi parameters in NVS.

What must we do to enable this command?

Cheers

Re: Using AT+SYSMFG commands

Posted: Wed Jul 19, 2023 10:54 pm
by banjoluck
One other thing. We poll for partitions:

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

We don't see the NVS partition. Is this the problem?

Cheers

Re: Using AT+SYSMFG commands

Posted: Wed Jul 26, 2023 5:38 pm
by banjoluck
We notice that SYSMFG is not listed in the output of AT+CMD?. What do we need to do to enable this command?

Re: Using AT+SYSMFG commands

Posted: Mon Jul 31, 2023 3:48 am
by esp-at
Hello @banjoluck,

Different firmwares have different documentations. You should refer to https://docs.espressif.com/projects/esp ... index.html for v2.4.0.0/v2.4.2.0 firmwares.

AT+SYSMFG command is added after v3.1.0.0 version, so you can use latest v3.2.0.0 firmware to have a try.
ESP32-C3 v3.2.0.0 firmware: https://docs.espressif.com/projects/esp ... aries.html
ESP32-C3 v3.2.0.0 document: https://docs.espressif.com/projects/esp ... index.html