I received the same error message as gerardpalk in issue #36. I am running Python 2.7.18 on ubuntu 20.4. The board selected is DOIT DEVKIT V1.0:
Arduino: 1.8.13 (Linux), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None"
I fixed it by adding one 'b' to esp32ulp_build_recipe.py:line 233:
line 233: with open(file_names_constant['sym'],"wb") as fsym:
In addition I had to add brackets to 2 print commands:
line 305: print (e)
line 316: print (cmd[0])
With this, it compiles. Whether the object code works, i.e. runs on the DevKit, I am yet to try.
I received the same error message as gerardpalk in issue #36. I am running Python 2.7.18 on ubuntu 20.4. The board selected is DOIT DEVKIT V1.0: Arduino: 1.8.13 (Linux), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None"
I fixed it by adding one 'b' to esp32ulp_build_recipe.py:line 233: line 233: with open(file_names_constant['sym'],"wb") as fsym:
In addition I had to add brackets to 2 print commands: line 305: print (e) line 316: print (cmd[0])
With this, it compiles. Whether the object code works, i.e. runs on the DevKit, I am yet to try.
esp32ulp_build_recipe.py.gz
Originally posted by @tilman1 in https://github.com/duff2013/ulptool/issues/36#issuecomment-774763214