ulptool icon indicating copy to clipboard operation
ulptool copied to clipboard

Installation not working under ESP32 1.0.1 (I'm fixing it)

Open unixbigot opened this issue 6 years ago • 10 comments

If you are relying on ULP, don't accept the ESP32 1.0.1 upgrade, it's not compatible with arduino_ulp.

I'll have a PR for 101 compatibility hopefully tomorrow. And a semi-automated installation script.

unixbigot avatar Jan 13 '19 08:01 unixbigot

This is fine as long as it doesn't break the stable release from working (v1.0.0). Will this script work for any OS?

duff2013 avatar Jan 13 '19 19:01 duff2013

Mac and linux are quite similar. Windows will need a separate script. Avoiding 'just copy over platform.txt and break any other modifications' will reduce breakage at version changes.

BTW 1.0.1 is the stable release now, it went gold last week.

unixbigot avatar Jan 13 '19 22:01 unixbigot

Cool any update on this ?

MartinLocher avatar Jan 14 '19 20:01 MartinLocher

I installed this library on my Windows 10, Python 3.7, Arduino 1.8.8, ESP 1.0.1 environment and it was straightforward to get working. esp32ulp_build_recipe.py needed a few minor syntax changes The changes to platform.txt for ULP to work need to be copied into the 1.0.1 version of platform.txt

platform.txt esp32ulp_build_recipe.py.txt

Thanks for a useful library

s60sc avatar Feb 03 '19 17:02 s60sc

Is this fix good for 1.0.2?

nsollars avatar Jun 23 '19 16:06 nsollars

1.0.2 should work fine now.

duff2013 avatar Jun 23 '19 16:06 duff2013

Ok, il undo everything thats there and rrapply everything from a fresh download and see what happens.

nsollars avatar Jun 23 '19 17:06 nsollars

hi i am using 1.0.4-rc2 .i followed all the steps of manual installation but problem is that when i compile the given examples it produce error that Traceback (most recent call last):

File "C:\Users\usman\AppData\Local\Arduino15\packages\esp32\tools\ulptool\src/esp32ulp_build_recipe.py", line 560, in

main(sys.argv[1:])

File "C:\Users\usman\AppData\Local\Arduino15\packages\esp32\tools\ulptool\src/esp32ulp_build_recipe.py", line 103, in main

build_ulp(PATHS, ulp_files, board_options, False)

File "C:\Users\usman\AppData\Local\Arduino15\packages\esp32\tools\ulptool\src/esp32ulp_build_recipe.py", line 234, in build_ulp

fsym.write(out)

TypeError: write() argument must be str, not bytes

exit status 1 Error compiling for board ESP32 Dev Module.

usmanshahid001 avatar Dec 19 '19 14:12 usmanshahid001

@usmanshahid001,

You were using Python 3, but this project only runs on Python 2 for the moment.

Vincent

Vincent-Stragier avatar Nov 13 '20 22:11 Vincent-Stragier

@usmanshahid001,

You were using Python 3, but this project only runs on Python 2 for the moment.

Vincent

Thanks, for your reply. Mb somebody can advise how I can choose Python 2 for compilation ulp connected stuff under Mac OS? I have the same errors as @usmanshahid001

yankobogdan avatar Mar 22 '21 13:03 yankobogdan