duff2013 / ulptool

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

Unsuccessful compiling #6

Closed yankobogdan closed 6 years ago

yankobogdan commented 6 years ago

Arduino: 1.8.5 (Windows 7), Плата:"TTGO LoRa32-OLED V1, 80MHz, 921600, None" Traceback (most recent call last): File "C:\Users\bogdan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0/tools/sdk/include/ulp/esp32ulp_build_recipe.py", line 440, in main(sys.argv[1:]) File "C:\Users\bogdan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0/tools/sdk/include/ulp/esp32ulp_build_recipe.py", line 139, in main build_ulp(options.bpath, options.ppath, ulp_files, board_options) File "C:\Users\bogdan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0/tools/sdk/include/ulp/esp32ulp_build_recipe.py", line 153, in build_ulp proc = subprocess.Popen(cmd[1],stdout=subprocess.PIPE,stderr=subprocess.STDOUT,shell=False) File "C:\Python27\lib\subprocess.py", line 394, in init errread, errwrite) File "C:\Python27\lib\subprocess.py", line 644, in _execute_child startupinfo) WindowsError: [Error 2] exit status 1

yankobogdan commented 6 years ago

And still compiling issue on Win 10 and Mac OS High Sierra

duff2013 commented 6 years ago

Can we start with Windows 7 first? Turn on verbose compile in Arduino IDE preferences and copy and past the error using the example program from my README.md. I need to see the build process along with the python error.

duff2013 commented 6 years ago

Also what version of python do you have?

yankobogdan commented 6 years ago

Thanks for fast reply. Python ver. 2.7.15

Error code: Arduino: 1.8.5 (Windows 7), Board: "TTGO LoRa32-OLED V1, 80MHz, 921600, None" Archiving built core (caching) in: C:\Users\bogdan\AppData\Local\Temp\arduino_cache_206580\core\core_esp32_esp32_ttgo-lora32-v1_FlashFreq_80,UploadSpeed_921600,DebugLevel_none_0dd32befce4daf6467bf62049c4fab56.a Traceback (most recent call last): File "C:\Users\bogdan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0/tools/sdk/include/ulp/esp32ulp_build_recipe.py", line 440, in main(sys.argv[1:]) File "C:\Users\bogdan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0/tools/sdk/include/ulp/esp32ulp_build_recipe.py", line 139, in main build_ulp(options.bpath, options.ppath, ulp_files, board_options) File "C:\Users\bogdan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0/tools/sdk/include/ulp/esp32ulp_build_recipe.py", line 153, in build_ulp proc = subprocess.Popen(cmd[1],stdout=subprocess.PIPE,stderr=subprocess.STDOUT,shell=False) File "C:\Python27\lib\subprocess.py", line 394, in init errread, errwrite) File "C:\Python27\lib\subprocess.py", line 644, in _execute_child startupinfo) WindowsError: [Error 2] exit status 1 Error compiling for board TTGO LoRa32-OLED V1. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

duff2013 commented 6 years ago

Can you make sure this is checked, thanks. arduino_pref

yankobogdan commented 6 years ago

Deleated

duff2013 commented 6 years ago

Can you compile a blank sketch?

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}
duff2013 commented 6 years ago

Couple of things to check:

Make sure you have binutils toolchain installed: ~\Documents\Arduino\Hardware\espressif\esp32\tools\esp32ulp-elf-binutils

Is the esptool.exe located here? ~\Documents\Arduino\Hardware\espressif\esp32\tools\esptool If so then change the Platform.txt file line #6 to: tools.esptool.path={runtime.platform.path}/tools/esptool/

yankobogdan commented 6 years ago

My path to hardware folder looks like: C:\Users\bogdan\AppData\Local\Arduino15\packages\esp32\hardware

yankobogdan commented 6 years ago

binutils toolchain is installed Mb you can archive your Arduino ide files to one folder and share?

duff2013 commented 6 years ago

How did you install esp32 into Arduino, through the Arduino Package Manager?

duff2013 commented 6 years ago

This video show how installed esp32 into Arduino, can you try to reinstall Arduino and esp32 this way? https://www.youtube.com/watch?v=QBjiuOcJics

yankobogdan commented 6 years ago

Solved!!! The problem was that linker looking for esptool.exe in ...esp32/tools/ but it was inside esptool folder os I've just copy esptool.exe to tools folder and its compiled. My goal to try read i2c si7021 sensor, save the data and sometimes wakeup main CPU. Anyway thanks!

duff2013 commented 6 years ago

Great, so I think espressif moved the esptool into it's own folder recently breaking my script, I'll update the script to reflect that change.