关于aliyun mqtt例程接入错误

seanoy
Posts: 8
Joined: Tue Apr 30, 2019 2:34 am

关于aliyun mqtt例程接入错误

Postby seanoy » Wed Aug 28, 2019 3:57 pm

错误信息如下:
I (3759) event: sta ip: 192.168.31.189, mask: 255.255.255.0, gw: 192.168.31.1
E (3769) wrapper_product: NVS Flash init fctry failed, Please check that you have flashed fctry partition!!!
E (3769) wrapper_product: NVS Flash init fctry failed, Please check that you have flashed fctry partition!!!
E (3779) wrapper_product: NVS Flash init fctry failed, Please check that you have flashed fctry partition!!!
mqtt_main|124 :: mqtt example
E (3789) wrapper_product: NVS Flash init fctry failed, Please check that you have flashed fctry partition!!!
E (3799) wrapper_product: NVS Flash init fctry failed, Please check that you have flashed fctry partition!!!
[err] IOT_MQTT_Construct(395): Invalid product key, abort!
mqtt_main|227 :: MQTT construct failed
E (3819) FreeRTOS: FreeRTOS Task "mqtt_example" should not return, Aborting now!
abort() was called at PC 0x4008d1ff on core 1
0x4008d1ff: vPortTaskWrapper at D:/msys32/home/Administrator/esp/esp-idf/components/freertos/port.c:403


ELF file SHA256: f9c1359151487bb8ff8464aa8eb7edc45334155a65d2b46a6aacb7e9737a2209

Backtrace: 0x40086fe8:0x3ffc9250 0x40087235:0x3ffc9270 0x4008d1ff:0x3ffc9290
0x40086fe8: invoke_abort at D:/msys32/home/Administrator/esp/esp-idf/components/esp32/panic.c:715

0x40087235: abort at D:/msys32/home/Administrator/esp/esp-idf/components/esp32/panic.c:715

0x4008d1ff: vPortTaskWrapper at D:/msys32/home/Administrator/esp/esp-idf/components/freertos/port.c:403
例程链接https://github.com/espressif/esp-aliyun ... tt_example
信息提示连接wifi成功,但是提示错误信息NVS Flash 初始化fctry失败,要我检查是否flash过fctry分区,但是我已经按照readme中进行分区写操作了,求大大们教教!

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 关于aliyun mqtt例程接入错误

Postby ESP_Gargamel » Thu Aug 29, 2019 3:24 am

你要按照:https://github.com/espressif/esp-aliyun ... g/mass_mfg 操作,烧入包含你自己三元组信息的 factry 分区。

seanoy
Posts: 8
Joined: Tue Apr 30, 2019 2:34 am

Re: 关于aliyun mqtt例程接入错误

Postby seanoy » Thu Aug 29, 2019 8:24 am

ESP_Gargamel wrote:
Thu Aug 29, 2019 3:24 am
你要按照:https://github.com/espressif/esp-aliyun ... g/mass_mfg 操作,烧入包含你自己三元组信息的 factry 分区。
我原本已经在my_single_mfg_config.csv中填充我产品设备的四元组了,所以看到product key错误提示才会觉得奇怪。有可能是芯片烧坏了吗?

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 关于aliyun mqtt例程接入错误

Postby ESP_Gargamel » Fri Aug 30, 2019 1:58 am

不会,你是 esp32 还是 esp8266?你把生成的 my_single_mfg.bin 烧到哪个地址了?

如果你没改过 partition,那:

针对 esp32:
$IDF_PATH/components/esptool_py/esptool/esptool.py write_flash 0x210000 my_single_mfg.bin

针对 esp8266:
$IDF_PATH/components/esptool_py/esptool/esptool.py write_flash 0x100000 my_single_mfg.bin

seanoy
Posts: 8
Joined: Tue Apr 30, 2019 2:34 am

Re: 关于aliyun mqtt例程接入错误

Postby seanoy » Fri Aug 30, 2019 12:58 pm

ESP_Gargamel wrote:
Fri Aug 30, 2019 1:58 am
不会,你是 esp32 还是 esp8266?你把生成的 my_single_mfg.bin 烧到哪个地址了?

如果你没改过 partition,那:

针对 esp32:
$IDF_PATH/components/esptool_py/esptool/esptool.py write_flash 0x210000 my_single_mfg.bin

针对 esp8266:
$IDF_PATH/components/esptool_py/esptool/esptool.py write_flash 0x100000 my_single_mfg.bin
我使用的是ESP32,烧录到默认的地址,就是按照上面针对ESP32的指令来操作的。 :cry:

seanoy
Posts: 8
Joined: Tue Apr 30, 2019 2:34 am

Re: 关于aliyun mqtt例程接入错误

Postby seanoy » Sun Sep 01, 2019 1:03 pm

已解决,原因是分区配置那里的partitions.csv没有改成partitions_esp32.csv,另外可能和我经常取消编译和配置导致esp-idf部分文件出错有关。

rillhu
Posts: 10
Joined: Wed Apr 19, 2017 5:35 am

Re: 关于aliyun mqtt例程接入错误

Postby rillhu » Sun Mar 22, 2020 3:22 pm

我估计你没有执行make chip=esp32 defconfig
这个会自动配置partition

Who is online

Users browsing this forum: No registered users and 17 guests