duff2013 / ulptool

Program the esp32 ULP coprocessor in Arduino
275 stars 69 forks source link

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

Open unixbigot opened 5 years ago

unixbigot commented 5 years ago

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.

duff2013 commented 5 years ago

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?

unixbigot commented 5 years ago

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.

MartinLocher commented 5 years ago

Cool any update on this ?

s60sc commented 5 years ago

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

nsollars commented 5 years ago

Is this fix good for 1.0.2?

duff2013 commented 5 years ago

1.0.2 should work fine now.

nsollars commented 5 years ago

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

usmanshahid001 commented 4 years ago

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.

Vincent-Stragier commented 3 years ago

@usmanshahid001,

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

Vincent

yankobogdan commented 3 years ago

@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