straga / scrivo_project

Scrivo - Helper for development for -Micropython/Python
12 stars 2 forks source link

fix(boot-cfg): keep additional syspath on failed partition init #3

Closed harduino closed 3 months ago

harduino commented 3 months ago

On my ESP32 partition-module is not working correctly (maybe kind of cloned non-original chip) but other modules work fine, except boot_cfg module. So on exception it ignores block right after partition init which prevents from normal modules importing (paths were not added to syspath, so some dynamic python-files were not able to be included):

image

My suggestion is to move partition-init block into try/catch block, so even after exception code after partition-init block will be executed anyway. In such case all works fine except Partition-feature which I guess used for advanced OTA.

harduino commented 3 months ago

Hey @straga and other contributors, Just forgot to thank you for such awesome project.

straga commented 3 months ago

I use custom partition. That need for OTA update firmware. I thinks that was some problem.

harduino commented 3 months ago

I use custom partition. That need for OTA update firmware. I thinks that was some problem.

Got it, thank you. Configure custom partition is more advanced level, so I used more simple "out-of-the-box" ESP32 installation.