如果你已經在阿里雲物聯網平台注冊了你的產品(product)和設備(device)后獲得四元組,
DeviceName、DeviceSecret、ProductKey、ProductSecret。
然后進入…\esp\esp-aliyun\config\mass_mfg里拷貝single_mfg_config.csv到你的項目並填充你的四組數,更名為my_single_mfg_config.csv
之后執行下面命令生成.bin文件
$IDF_PATH/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py generate my_single_mfg_config.csv my_single_mfg.bin 0x4000
將生成的分區bin文件燒錄到板子上:
$IDF_PATH/components/esptool_py/esptool/esptool.py write_flash 0x210000 my_single_mfg.bin