Hello
In order to manufacture products using ESP32, it is necessary to write automatically.
Also at that time, you need to define the serial number, build, and FLASH.
Do you have any suggestions for how to do this?
How to Build and Flash with Operations from our Windows App
-
- Posts: 2
- Joined: Wed Jul 13, 2022 4:50 pm
Re: How to Build and Flash with Operations from our Windows App
For the serial number or similar device-specific settings you can use either of the two approaches which don't require rebuilding the application:
- During the manufacturing process, generate an NVS partition binary specific to the device and flash it into an NVS partition. This option is possible using the NVS manufacturing utility. If you follow this approach, it is recommended to have two NVS partitions in your partition table: one for the run-time settings, such as Wi-Fi SSID and password; another, read-only one, for factory settings. This should allow for "factory reset" functionality where the run-time NVS partition is erased but the factory NVS partition is kept intact. It is also recommended to use flash encryption and NVS encryption to prevent modification of the data in NVS factory partition. Programming of the application binary and of the NVS partition can be done using the esptool.py.
- If the amount of information you need to store is small you can store it in eFuses. In this approach, the values can't be modified after burning. Efuses can be burned using the espefuse.py tool.
Who is online
Users browsing this forum: No registered users and 37 guests