Return value for mass production

AlexESP32
Posts: 65
Joined: Thu Oct 03, 2019 9:41 am

Return value for mass production

Postby AlexESP32 » Tue Jul 14, 2020 6:41 pm

Hello guys.

I am shortly before mass production.
Therefore we burn the fuses with the espefuse.py and the firmware with the esptool.py. Also we generate the nvs partition with the nvs_partition_gen.py.

In this case we want to check whether there are some errors at burning fuses, flashing the firmware or generating the nvs partititon or whether these functions works fine. Unfortunately every .py-script has his "own error message". Therefore it is very hard to catch all exceptions...

The question is:
Does the .py-scripts provide consistent messages which we can take for the checks.
Something like:
Begin-Message: "Start"
Prepare: "Prepare..."
Finished: "Finished"
Error: "Error"

Thank you ;)

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Return value for mass production

Postby ESP_Angus » Wed Jul 15, 2020 12:39 am

Hi Alex,

All of the tools should return a process exit code of zero for success and non-zero for any failure. Are you able to check this in your script?

(If you've found a case where this doesn't happen, it's probably a bug so please let us know.)

Angus

Who is online

Users browsing this forum: No registered users and 247 guests