Closed terrillmoore closed 6 years ago
Confirmed that this is a problem with v1.0.7 on Linux. Builds work (so the compiler is all right) but permissions for the download tools are wrong.
The quick workaround:
cd ~/.arduino15/packages/mcci/tools/STM32Tools/2017.9.22-mcci/tools/linux
find . -type f | xargs file | grep 'Bourne-Again' | cut -d: -f1 | xargs chmod +x
find . -type f | xargs file | grep 'ELF' | cut -d: -f1 | xargs chmod +x
Hi Terry,
I tried this and I am still getting an error:
Sketch uses 10456 bytes (5%) of program storage space. Maximum is 196608 bytes.
Global variables use 2512 bytes (12%) of dynamic memory, leaving 17968 bytes for local variables. Maximum is 20480 bytes.
/home/sjpark/.arduino15/packages/mcci/tools/STM32Tools/2017.9.22-mcci/tools/linux/stlink_upload: line 4: /home/sjpark/.arduino15/packages/mcci/tools/STM32Tools/2017.9.22-mcci/tools/linux/../linux64/stlink_upload: Permission denied
However, I changed the file format to tar.gz and tested on my linux VM. It is working fine now. Since the BSP package remains the same, I am not sure how you want to proceed this. Do we need to wait for the next BSP update?
Thank you,
Sungjoon
From: Terry Moore [mailto:notifications@github.com] Sent: Thursday, March 22, 2018 9:38 PM To: mcci-catena/arduino-boards Cc: sjpark-mcci; Assign Subject: Re: [mcci-catena/arduino-boards] Permissions are wrong on STM32 tools on macOS, Linux (#9)
Confirmed that this is a problem with the Linux port. Builds work (so the compiler is all right) but permissions for the download tools are wrong.
The quick workaround:
cd ~/.arduino15/packages/mcci/tools/STM32Tools/2017.9.22-mcci/tools/linux find . -type f | xargs file | grep 'Bourne-Again' | cut -d: -f1 | xargs chmod +x find . -type f | xargs file | grep 'ELF' | cut -d: -f1 | xargs chmod +x
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-boards/issues/9#issuecomment-375511709 , or mute the thread https://github.com/notifications/unsubscribe-auth/Abxvp5dA9g-HrbTH0HiBBLRElkABE48iks5thFICgaJpZM4Sy-Cf .Image removed by sender.
Ah, the reason the workaround didn’t work is that you’re using linux64, and my workaround was for 32-bit linux.
But if the problem is resolved, then we know how to do this. Please test installing on Windows with the .tgz format.
--Terry
From: Sungjoon Park sjpark@mcci.com Sent: Friday, March 23, 2018 14:18 To: 'mcci-catena/arduino-boards' reply@reply.github.com; 'mcci-catena/arduino-boards' arduino-boards@noreply.github.com Cc: 'Assign' assign@noreply.github.com; Terry Moore tmm@mcci.com Subject: RE: [mcci-catena/arduino-boards] Permissions are wrong on STM32 tools on macOS, Linux (#9)
Hi Terry,
I tried this and I am still getting an error:
Sketch uses 10456 bytes (5%) of program storage space. Maximum is 196608 bytes.
Global variables use 2512 bytes (12%) of dynamic memory, leaving 17968 bytes for local variables. Maximum is 20480 bytes.
/home/sjpark/.arduino15/packages/mcci/tools/STM32Tools/2017.9.22-mcci/tools/linux/stlink_upload: line 4: /home/sjpark/.arduino15/packages/mcci/tools/STM32Tools/2017.9.22-mcci/tools/linux/../linux64/stlink_upload: Permission denied
However, I changed the file format to tar.gz and tested on my linux VM. It is working fine now. Since the BSP package remains the same, I am not sure how you want to proceed this. Do we need to wait for the next BSP update?
Thank you,
Sungjoon
From: Terry Moore [mailto:notifications@github.com] Sent: Thursday, March 22, 2018 9:38 PM To: mcci-catena/arduino-boards Cc: sjpark-mcci; Assign Subject: Re: [mcci-catena/arduino-boards] Permissions are wrong on STM32 tools on macOS, Linux (#9)
Confirmed that this is a problem with the Linux port. Builds work (so the compiler is all right) but permissions for the download tools are wrong.
The quick workaround:
cd ~/.arduino15/packages/mcci/tools/STM32Tools/2017.9.22-mcci/tools/linux find . -type f | xargs file | grep 'Bourne-Again' | cut -d: -f1 | xargs chmod +x find . -type f | xargs file | grep 'ELF' | cut -d: -f1 | xargs chmod +x
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-boards/issues/9#issuecomment-375511709 , or mute the thread https://github.com/notifications/unsubscribe-auth/Abxvp5dA9g-HrbTH0HiBBLRElkABE48iks5thFICgaJpZM4Sy-Cf .
Also tested on Windows and it is working.
--Sungjoon
From: Terry Moore [mailto:tmm@mcci.com] Sent: Friday, March 23, 2018 2:56 PM To: 'Sungjoon Park'; 'mcci-catena/arduino-boards'; 'mcci-catena/arduino-boards' Cc: 'Assign' Subject: RE: [mcci-catena/arduino-boards] Permissions are wrong on STM32 tools on macOS, Linux (#9)
Ah, the reason the workaround didn’t work is that you’re using linux64, and my workaround was for 32-bit linux.
But if the problem is resolved, then we know how to do this. Please test installing on Windows with the .tgz format.
--Terry
From: Sungjoon Park sjpark@mcci.com Sent: Friday, March 23, 2018 14:18 To: 'mcci-catena/arduino-boards' reply@reply.github.com; 'mcci-catena/arduino-boards' arduino-boards@noreply.github.com Cc: 'Assign' assign@noreply.github.com; Terry Moore tmm@mcci.com Subject: RE: [mcci-catena/arduino-boards] Permissions are wrong on STM32 tools on macOS, Linux (#9)
Hi Terry,
I tried this and I am still getting an error:
Sketch uses 10456 bytes (5%) of program storage space. Maximum is 196608 bytes.
Global variables use 2512 bytes (12%) of dynamic memory, leaving 17968 bytes for local variables. Maximum is 20480 bytes.
/home/sjpark/.arduino15/packages/mcci/tools/STM32Tools/2017.9.22-mcci/tools/linux/stlink_upload: line 4: /home/sjpark/.arduino15/packages/mcci/tools/STM32Tools/2017.9.22-mcci/tools/linux/../linux64/stlink_upload: Permission denied
However, I changed the file format to tar.gz and tested on my linux VM. It is working fine now. Since the BSP package remains the same, I am not sure how you want to proceed this. Do we need to wait for the next BSP update?
Thank you,
Sungjoon
From: Terry Moore [mailto:notifications@github.com] Sent: Thursday, March 22, 2018 9:38 PM To: mcci-catena/arduino-boards Cc: sjpark-mcci; Assign Subject: Re: [mcci-catena/arduino-boards] Permissions are wrong on STM32 tools on macOS, Linux (#9)
Confirmed that this is a problem with the Linux port. Builds work (so the compiler is all right) but permissions for the download tools are wrong.
The quick workaround:
cd ~/.arduino15/packages/mcci/tools/STM32Tools/2017.9.22-mcci/tools/linux find . -type f | xargs file | grep 'Bourne-Again' | cut -d: -f1 | xargs chmod +x find . -type f | xargs file | grep 'ELF' | cut -d: -f1 | xargs chmod +x
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-boards/issues/9#issuecomment-375511709 , or mute the thread https://github.com/notifications/unsubscribe-auth/Abxvp5dA9g-HrbTH0HiBBLRElkABE48iks5thFICgaJpZM4Sy-Cf .Image removed by sender.
OK; moving this issue to https://github.com/mcci-catena/Arduino_Core_STM32/issues/16; we'll close this when we release 1.0.8.
Fixed in v1.0.8.
Up to and including 1.0.6 of the STM32 board package, the permissions in the release file were wrong when installing on macOS and Linux. It's possible that this is now fixed with the updated MCCI board support repo. But we should check 1.0.7, and if it's still broken, review permissions in the MCCI fork.