-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing sam.h file while compiling #6
Comments
UPDATE:
At this point I think the whole "ATMEL" files might be missing from your openbionic package...? here is my latest error message when I try to compile: In file included from C:\Users\Catherine\AppData\Local\Arduino15\packages\openbionics\hardware\samd\1.2.12\cores\arduino/sam.h:581:0,
C:\Users\Catherine\AppData\Local\Arduino15\packages\openbionics\hardware\samd\1.2.12\cores\arduino/samd.h:91:35: fatal error: samd21/include/samd21.h: No such file or directory #include "samd21/include/samd21.h"
compilation terminated. exit status 1 |
We had the same issue. We fixed it by installing the following board package in the board manager: Arduino SAMD Boards (32-bits ARM Cortex-M0+) by Arduino If you copied and pasted the samd and other files you will need to uninstall and reinstall the openbionics board packages. If this works for you I think they need to add a section to their Quick Start guide. |
Thanks MinIBCI, it works fine with the SAMD package installed. |
What package versions are you using for SAMD and Open Bionics? I've gone so far as to reinstall arduino, install package Open Bionics, install package SAMD, and it still doesn't work. I've then repeated the process on a Windows and Linux machine, all give the same errors after rechecking my work. |
Just managed to find this screenshot, shows the one I installed to fix it
[image: SAMD.PNG]
…On Wed, Jul 17, 2019 at 8:34 PM DanielArnett ***@***.***> wrote:
What package versions are you using for SAMD and Open Bionics? I've gone
so far as to reinstall arduino, install package Open Bionics, install
package SAMD, and it still doesn't work. I've then repeated the process on
a Windows and Linux machine, all give the same errors after rechecking my
work.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6?email_source=notifications&email_token=AID43U7T4XLNOBONBPU76LTP75Q3DA5CNFSM4ED33J72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2GF7ZQ#issuecomment-512516070>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AID43UY4RKIIG5VLNKNROFLP75Q3DANCNFSM4ED33J7Q>
.
|
I'm having the same problem, I've installed and reinstalled the all the suggested packages (including the SMAD boards, which is now in the start-up guide) and the IDE on multiple machines on Linux and Windows and I cannot for the life of me get anything to compile. Any suggestions would be greatly appreciated? |
Go back to Arduino IDE 1.8.9, reinstall all the packages (SAMD, etc...) and it should compile correctly. |
Thanks for that, I managed to get past the missing sam.h file by rolling back to 1.8.7. 1.8.9 and 1.8.8 didn't work for me. |
Tell a lie, still receiving the same error I had just forgotten to change the board. |
I am encountering the same error:
compilation terminated. Versions: I have also tried uninstalling and reinstalling the SAMD and Open Bionics packages to no avail. Recommendations on how to proceed? |
Enabling verbose output was a big help -- discovered that the include path to the Atmel CMSIS is incorrect. Arduino: 1.8.10 (Linux), Board: "Chestnut" /home/aaron/Projects/brunelHand2.0/arduino-1.8.10-linux64/arduino-1.8.10/arduino-builder -dump-prefs -logger=machine -hardware /home/aaron/Projects/brunelHand2.0/arduino-1.8.10-linux64/arduino-1.8.10/hardware -hardware /home/aaron/.arduino15/packages -tools /home/aaron/Projects/brunelHand2.0/arduino-1.8.10-linux64/arduino-1.8.10/tools-builder -tools /home/aaron/Projects/brunelHand2.0/arduino-1.8.10-linux64/arduino-1.8.10/hardware/tools/avr -tools /home/aaron/.arduino15/packages -built-in-libraries /home/aaron/Projects/brunelHand2.0/arduino-1.8.10-linux64/arduino-1.8.10/libraries -libraries /home/aaron/Arduino/libraries -fqbn=openbionics:samd:ob_chestnut -ide-version=10810 -build-path /tmp/arduino_build_834318 -warnings=none -build-cache /tmp/arduino_cache_928624 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/aaron/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=/home/aaron/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.CMSIS.path=/home/aaron/.arduino15/packages/arduino/tools/CMSIS/4.0.0-atmel -prefs=runtime.tools.CMSIS-4.0.0-atmel.path=/home/aaron/.arduino15/packages/arduino/tools/CMSIS/4.0.0-atmel -prefs=runtime.tools.openocd.path=/home/aaron/.arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=/home/aaron/.arduino15/packages/arduino/tools/openocd/0.9.0-arduino -prefs=runtime.tools.bossac.path=/home/aaron/.arduino15/packages/arduino/tools/bossac/1.6.1-arduino -prefs=runtime.tools.bossac-1.6.1-arduino.path=/home/aaron/.arduino15/packages/arduino/tools/bossac/1.6.1-arduino -verbose /home/aaron/Projects/brunelHand2.0/Beetroot/OpenBionics_Beetroot/OpenBionics_Beetroot/OpenBionics_Beetroot.ino
compilation terminated. Discovered that at least on my system (with versions per my previous comment), I had sam.h files at the following locations: After noticing that the include paths specified during compilation DO NOT point to any of the sam.h files on my system I tried updating the path. I am able to successfully compile by updating the include path, editing the following file: Replacing the following: with This seems to work. Is this the proper fix or should something else be done to fix this permanently / correctly? |
Thanks @aaronwoodcox ! That led me to the next error, one about |
This issue may now have been fixed within 'Open Bionics Boards V1.2.22'. The Arduino Boards Manager file 'package_openbionics_index.json' uses the tool dependencies installed by the Samd boards (as the Board Manager does not allow us to automatically run the 'post_install.bat' script as we are not a signed distributor). The directory structure of the Samd tool dependencies appears to have changed. The 'package_openbionics_index.json' has now been updated to reflect this and appears to have fixed the issue. |
For anyone still facing this issue with Brunel Hand V1.0 after trying previously described solutions: Resolved by downgrading SAMD to 1.6.21. Arduino IDE 1.8.5 |
Hi! I operate the Brunel hand through the Arduino Serial monitor interface without problem. However I fail to compile either Beetroot or the MyoWare_Sensor_Test due to a missing file. The error message is copied below.
I tried the following debug steps:
-Tried without sucess to find the missing "sam.h"
-Tried to comment out the line "include sam.h" in the file mentioned in the error message. But then it gives me the same error for another related file
thanks for your help!
Cath
ERROR MESSAGE AFTER TRYING TO COMPILE IN ARDUINO:
Arduino: 1.8.3 (Windows 10), Board: "Chestnut"
In file included from sketch\MyoWare_Sensor_Test_V1.1.ino.cpp:1:0:
C:\Users\Catherine\AppData\Local\Arduino15\packages\openbionics\hardware\samd\1.2.12\cores\arduino/Arduino.h:48:17: fatal error: sam.h: No such file or directory
#include "sam.h"
compilation terminated.
exit status 1
Error compiling for board Chestnut.
The text was updated successfully, but these errors were encountered: