HelTecAutomation / CubeCell-Arduino

Heltec CubeCell Series (based on ASR6501, ASR6502 chip) Arduino support.
255 stars 140 forks source link

Sketch is not compiles and CubeCell.ino.hex not found #116

Open Buzda opened 4 years ago

Buzda commented 4 years ago

Hi there!

I tried your library on my mac and it works fine. When I tried it on my windows 10 laptop, it throws the error below. I found some workarounds for this by disabling the McAfee antivirus as it seems to be the reason. I tried doing this but I am still getting the same error. Has anyone been able to solve this issue? Thanks!

Arduino: 1.8.13 (Windows Store 1.8.39.0) (Windows 10), Board: "CubeCell-Board(HTCC-AB01), REGION_AS923, CLASS_A, OTAA, ON, CONFIRMED, OFF, ON, ACTIVE, None"

THE ERROR:

'C:\Users\X' is not recognized as an internal or external command,

operable program or batch file.

[9576] Failed to execute script CubeCellelftool

Traceback (most recent call last):

File "CubeCellelftool.py", line 3, in

File "elftool.py", line 26, in elftool.main

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\X~1\AppData\Local\Temp\arduino_build_151539/CubeCell.ino.hex'

exit status -1

Error compiling for board CubeCell-Board(HTCC-AB01).

Invalid version 'Internal RTC2.0' for library in: C:\Users\X X X\Documents\Arduino\libraries\ESP32_LoRaWAN-master

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

Heltec-Aaron-Lee commented 4 years ago

It seems the "\~" in username "X\~1" can't be recognized

Buzda commented 4 years ago

I abandoned arduino and worked on platformIO on VScode and it is working fine now. It is just the combination of CubeCell and Arduino that was the problem.

wasn-eu commented 4 years ago

Do you have a space in your username? Spaces and special characters are making problems

alexcorvis84 commented 4 years ago

Do you have a space in your username? Spaces and special characters are making problems

I can confirm this Issue is happening. Today I was trying to compile some of the examples without luck and getting the same error 😭

4 hours after trying different configs (i thought It was related to libraries at first glance...) I checked this Issue 🤔🤨

Then I tried to config Arduino IDE and framework with a new Windows user (without spaces) and It worked like a charm!

So, can this 'error' be fixed somehow? Probably more users out there have usernames with spaces and its frustrating lost a lot of time debugging until you find out whats really happening 😔

Would be appreciated if It can be fixed 😉