espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
446 stars 151 forks source link

Unable to generate esp_secure_cert.bin (MEGH-5812) #320

Open yatendra98 opened 1 month ago

yatendra98 commented 1 month ago

Answers checklist.

General issue report

I've followed these steps: $ export ESP_SECURE_CERT_PATH=/path/to/esp_secure_cert_mgr $ esp-matter-mfg-tool -v 0x131B -p 0x2 -cd $RMAKER_PATH/examples/matter/mfg/cd_131B_0002.der --csv $RMAKER_PATH/examples/matter/mfg/keys.csv --mcsv $RMAKER_PATH/examples/matter/mfg/master.csv

I'm able to generate the partition.bin, but not able to generate esp_secure_cert.bin file in the out folder.

sayondeep commented 1 month ago

@yatendra98 esp_secure_cert.bin is not required for test set up.

You can go ahead with just flashing the factory_partiton by esptool.py write_flash 0x3e0000 out/131b_2/<node-id>/<node-id>-partition.bin

yatendra98 commented 1 month ago

@sayondeep I did the same and flash the code by following next steps but couldn't able to see any advertisement packet BLE/AP in Rainmaker App. I used the BLE sniffer as well to put a filter of MAC Id but couldn't see any packets. Hence thought of whether there is any dependency of esp_secure_cert.bin Attaching here the screenshot of logs.

Screenshot 2024-07-22 at 3 46 46 PM
sayondeep commented 1 month ago

@yatendra98 You are using matter+rainmaker example where the provisioning is taken care in the commissioning step of Matter. You can follow the steps here to continue with the example. You can use esp rainmaker app for commissioning and control.

If you want to try out rainmaker only examples, you can find them here. EXCEPT the examples inside matter directory.