Closed bxparks closed 2 years ago
Hi @bxparks I'm very surprised but you are right execute bit is missing and don't know why as it was tested when released. Thanks for the report.
OK. after some investigation I've understood the issue. Using git to check the file permission, it is ok
$ git ls-files --stage hid-flash
100755 324cc30272e76018a3d00aeeaa528cce4b8f865e 0 hid-flash
On a Linux the file permissions in the local copy of the repo is correct but on Windows with git bash the file permissions is not correct and I don't know why. Only the hid_flash files are impacted (Linux and Mac). As I've made the package under windows the file permission is not correct.
(Sorry, I did not know that there was a separate repo for the tools.)
It looks like the upload-reset
binary in that directory is also affected:
$ ls -l upload-reset
-rw-r--r-- 1 brian brian 7946 Sep 28 15:00 upload-reset
$ git ls-files -s upload-reset
100755 26985b857674d0c8d4999d53999a80f988591b96 0 upload-reset
You are right, I am not sure why the shell scripts are not affected.
Yes, I saw for upload-reset. I have to find why git bash do that. Probably, I will open an issue on git bash side.
I close this issue as it will be fixed with 2.1.1 release. https://github.com/stm32duino/Arduino_Tools/releases/tag/2.1.1
Describe the bug Execute bit is not set on the
hid-flash
binary. This causes flash upload to fail when using HID bootloader.The permission mode for this file is currently:
To Reproduce
Result:
Expected behavior
Compiled binary should upload properly.
Desktop (please complete the following information):
Board (please complete the following information):
Additional context
The same binary in 2.0.0 has the execute bit set:
The problem is fixed if I manually set the execute-bit: