Closed kd8bxp closed 5 years ago
Hi @kd8bxp, thanks for the issue!
This is good stuff for us to know - so far we've been only developing the core on Windows. In Windows we cannot be positive that users will have Python3 installed (which we would use to perform actions that are described below), and if they do we probably won't be able to guess where to find it. To get us started as quickly as possible we avoided dealing with a board manager package like the Arduino SAMD core uses, which might allow us to direct installation of additional software. So as a stop-gap solution we have simply converted the Python3 scripts that we use into executable (.exe) files that Arduino can call from the command line.
So you are right, at the moment Linux is not fully supported. However we want to change that!
It sounds like you are able to compile your example into a binary file - is that right? Or perhaps the check that failed occurs before compilation... If that is the case then I'm just assuming that you'll be able to compile since we've had Linux users successfully using the Ambiq SDK and because Arduino supports Linux with the SAMD core.
If that's all true then that means that the main problem on Linux is that we are not running the necessary post-compilation code that performs these steps:
What needs to happen is for Arduino to switch its behavior depending on the operating system that it is running on. This kind of feature is described in the Arduino 1.5 3rd Party Hardware Specification.
{runtime.os} - the running OS ("linux", "windows", "macosx")
is a variable that we can access within the platform.txt
file to determine the current operating system. Similarly we can automatically provide "variants" of the tool definitions that respond to the operating system in use. For example (from SAMD core):
tools.bossac.cmd=bossac
tools.bossac.cmd.windows=bossac.exe
So we should definitely re-write the tools section of platform.txt
to be OS-dependent. I'll take a stab at this very soon. After that we have a decision to make about how to support Mac/Linux
@kd8bxp Do you have a preference for which option to take in the near-term? I'd lean toward the first, with plans to ultimately pursue option 3.
If you are curious and want to take a shot at any of these methods yourself that would be awesome as well, and we'd welcome the pull request.
@oclyke Thank you for the update, and all the information -
So is the SDK required for use? I didn't install it.
And I do get a compile error when using the Ambiq Apollo3 Evaluation Board
In file included from sketch/example0_compilation.ino.cpp:1:0: /home/lfmiller/Arduino/hardware/SparkFun/apollo3/cores/arduino/ard_sup/Arduino.h:42:10: fatal error: am_bsp.h: No such file or directory #include "am_bsp.h" ^~~~~~~~~~ compilation terminated. exit status 1 Error compiling for board Ambiq Apollo3 Evaluation Board.
The other boards in the package appear to at least compile, but give the error with the exe file.
I think at least in my case python and python3 are both already in the path when I installed them. (I believe they are both in /usr/bin/) I don't have a problem with option 1, and ultimately moving to option 3. Option 2 seems like it might end up causing problems in the long term. Option 1 seems like a good short term plan.
As far as me trying to make a board core work that would be a yikes! While I'm pretty good with making sketches, how the board cores work is still a little (or a lot) outside my range.
I know, and understand the Apollo3 board and this project are new, and I'm good at waiting - I just wasn't sure if I had installed the core wrong, or if I missed something, or if Linux was just not supported.
I'm quite happy at helping with error checking and other issues that might come about. I know this is a lot of work, and I thank you and the Sparkfun team for working on this, and look forward to when it will work on a Linux box - mean while I'll use a Windows box - yikes! (did I just say that).....
@kd8bxp As far as your compile error goes you should just pull the latest from this repository. We recently trimmed up our variants a little bit and no longer plan on including an Apollo3 Evaluation Board variant (at least until someone needs it... are you using and Edge or an AP3 EVB?) so chances are good that that variant is just malformed. In case you don't already I highly recommend using GitHub Desktop so that you can use the Open in Desktop
button on repos. This makes it extra easy to stay current on repos, which is particularly useful when you're on the bleeding edge of development. (Read: lots of changes in this repo, good to stay in-sync with the latest and greatest :) )
I just got out my laptop (Mac) and I will start testing out option 1. I could definitely use your help to test it out on Linux. I'll give you a shout out when I have something to test. Thanks!
With commit a5f3e21 you should have access to a proper upload script that works on Mac and Linux. Since this is option 1 that we discussed above you may need to modify the path to Python3 on your machine.
Do this in 'platform.txt'
for me it is tools.ap3Loader.pgm=/usr/local/bin/python3
but for user X it might be tools.ap3Loader.pgm=~/stuff/python3
Anyone reading along for a unix-like OS could try which python3
(or related commands) to get the needed path
Although the script runs, and on my Windows computer the upload is successful, it was unsuccessful on my Mac. I think this is related to these problems: SparkFun Edge failing on "make bootload" - SFE Forums SparkFun Edge bootloader problems - StackOverflow
@kd8bxp Can you try this out and let me know how it goes?
@kd8bxp Have you gotten a chance to try again with the v1.0.0 release in the Arduino boards manager?
If you don't already have it add this link (below) to your Arduino preferences 'additional boards manager URLs:' field https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json
Then open the board manager and search for Apollo3.
Here's some more data from TomWS on the SparkFun website (tutorial discussion page: https://learn.sparkfun.com/tutorials/artemis-development-with-arduino/discuss#comment-5d0d8b2e6f716d282877fc23 )
Yeah, thanks for the steps. Unfortunately the steps didn't work on my Ubuntu 16.04, Arduino IDE 1.8.5 configuration. After purging anything related to Sparkfun (in IDE preferences), restarting with a fresh copy of the above referenced JSON file, and selecting the Apollo3 install, I finally got to the message (paraphrasing) "Sorry, we don't have the tool chain for your installation"
Actually, the error message is: "Tool arm-none-eabi-gcc is not available for your operating system." Which is really curious since I've been using this tool chain for all my nrf52832 development.
UPDATE: I discovered one problem is that I had another Sparkfun entry in the preferences file, https://raw.githubusercontent.com/sparkfun/Arduino_Boards/nrf5/IDE_Board_Manager/package_sparkfun_index.json and this was overwriting the update with the Apollo3 boards (I didn't noticed that the target file had the same name). Also, I was able to install the tool chain on my Windows7 system, so it must be unique to Ubuntu (maybe a version issue?)
Second and final UPDATE: I spoke too soon about the installation, as soon as I selected the Artemis ATP board I got a slew of error messages: "Invalid library found in C:\Users*\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.0\libraries\CoreTesting: no headers files (.h) found in C:\Users***\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.0\libraries\CoreTesting" Then, when I built the basic Blink example (none of the Artemis specific examples show up) I got a bunch of errors related to files not found (this is most likely due to the fact that my user name has a space in it - I've seen this before with other build scripts).
My response from the same page:
Hi TomWS,
The errors about the invalid library are expected for now and should have no impact on performance.
The toolchain problem is good to hear about - thanks. With the Apollo3 core we are trying to transition from the 2014 arm-none-eabi-gcc tools (which are used in many Arduino cores such as SAMD21 and perhaps NRF) to the 2018 tools. I think there are a couple possible snagging points:
- Perhaps there is a path name conflict between the two versions of the tools since they both go under directories called 'arm-none-eabi-gcc' at some point. However the 2018 tools installed by SparkFun's package should be under 'packages/SparkFun' instead of 'packages/arduino'
- In the JSON file we've provided these tools for the host types "i386-apple-darwin11," "i686-linux-gnu," and "i686-mingw32." If Arduino detects your host type as something other than these options I would expect to see an error along the lines of what you presented ("Sorry, we don't have the tool chain for your installation"). We could add copies of the tools with different host names - but we would need verification that they work.
- The JSON link you were using is based on the 'nrf5' branch of the Arduino_Boards repo, which I don't think is maintained... Or at least I am not sure right now what it is used for. (I.e. can you get both BRF5 and Apollo3 packages from the master branch of the repo?)
- Can you provide more specifics about which files aren't found when you build 'Blink?'
Let's move this discussion to GitHub. https://github.com/sparkfun/Arduino_Apollo3/issues/4
I'm getting this "tool is not available for your os" error too. It won't let me install the board into the IDE, and it's preventing me from using my Artemis Nano board. I'm using the latest version of Arduino IDE (1.8.9) on the latest version of Ubuntu with the latest boards package (1.0.1).
I've just updated the boards manager JSON file in an attempt to fix this. See this commit from the SparkFun Arduino Boards repository.
I added two new host definitions for the "arm-none-eabi-gcc" tool for x86 architectures.
There may yet be more host definitions needed to get full coverage, and it also might be required to actually use binaries specific to those hosts. But let's give this a try as a band-aid solution. Now that the JSON file is updated you should be able to re-try the installation through Arduino boards manager.
Please let me know how it goes, good or bad. Thanks!
That allowed me to successfully install and compile a program. In order to get uploading to work, I had to move .arduino15/packages/SparkFun/hardware/apollo3/1.0.1/tools/artemis/linux/artemis_svl/artemis_svl
to .arduino15/packages/SparkFun/hardware/apollo3/1.0.1/tools/artemis/linux/artemis_svl/artemis_svl_noroot
and create a new file, artemis_svl
, with the contents:
#!/usr/bin/fish
pkexec ~/.arduino15/packages/SparkFun/hardware/apollo3/1.0.1/tools/artemis/linux/artemis_svl/artemis_svl_noroot $argv
Otherwise it would say that it couldn't run artemis_svl because "permission denied". Oddly enough, it also did this when Arduino IDE was run with sudo
.
But, I've run into a new problem, which I don't think is related to Linux support (but it could be). When I try to upload the code, I see this:
Sketch uses 7352 bytes (0%) of program storage space. Maximum is 960000 bytes.
[At this time the pkexec window opens, I type in my password and press enter]
Connecting over serial port /dev/ttyUSB0...
Unknown BL response
Never mind, turns out that I just had to reduce the baud rate down to 460800.
@Merlin04 - That's really good info to know. We designed the variable rate bootloader just for this situation. Some OSs combined with the CH340x drivers have a variety of max baud rates of adequate baud accuracy. Thanks for letting us know!
@Merlin04 Thanks for the notes! I just made a patch to the core (v1.0.2) that is intended to make the bootloader tools work out of the box. Can you do a fresh install of the core and try them out? I'd appreciate the results from out 'in the wild.'
I've installed 1.0.2, but I still get the error
java.io.IOException: Cannot run program "/home/me/.arduino15/packages/SparkFun/hardware/apollo3/1.0.2/tools/artemis/linux/artemis_svl": error=13, Permission denied
Thanks, I'm working on a permanent solution for that. In the meantime you can add executable permissions by navigating to /home/me/.arduino15/packages/SparkFun/hardware/apollo3/1.0.2/tools/artemis/linux/
and running chmod +x artemis_svl
@Merlin04 The permissions error should be resolved now. You will need to do a fresh installation of v1.0.2 (use the boards manager to remove the old installation and then re-install it). This was fixed by directing Arduino to download the release through the ".tar" archive instead of the ".zip."
@oclyke Including this here - I am also having issues using the SparkFun:apollo3 core on a linux machine and some of the fixes you provided above have helped me move forward. If I should move this somewhere else let me know and I can.
When attempting to program the SparkFun Thing Plus - Artemis using a Jetson Nano I am having trouble uploading to the board
I've tried to get the Thing Plus - Artemis working using the Board Manager. I am successfully able to get the program to compile but when I attempt to upload it returns the error message listed below.
Originally I was having issues compiling similar to the posters above. Using the fix above as guidance I manually updated the package_sparkfun_index.json file by adding (my custom version located here)
"host": "aarch64-linux-gnu",
"url": "http://downloads.arduino.cc/tools/gcc-arm-none-eabi-7-2018-q2-update-linuxarm64.tar.bz2",
"archiveFileName": "gcc-arm-none-eabi-7-2018-q2-update-linuxarm64.tar.bz2",
"checksum": "SHA-256:6fb5752fb4d11012bd0a1ceb93a19d0641ff7cf29d289b3e6b86b99768e66f76",
"size": "99558726"
After this I was able to get my code to compile. The aarch64-linux-gnu
is similar to the package_index.json from Arduino. When I run uname -m
it returns aarch64
which is why I tried this.
After the update to the package index, my example code it is able to compile but not upload. The returned error message is at the bottom of the post.
I expect the code to compile and upload.
The code compiles but does not upload.
My attempted fixes were mostly focused on dealing with the package index files to get the code to compile. The non-verbose error that is returned during my upload attempts is
/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/tools/artemis/linux/artemis_svl: 1: /home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/tools/artemis/linux/artemis_svl: An error occurred while uploading the sketch
Syntax error: "(" unexpected
which is pretty generic and googling hasn't yielded much good info. I've successfully tested the board and the cable using my main computer running macOS High Sierra 10.13.3 and didn't have any issues.
Arduino: 1.8.10 (Linux), Board: "SparkFun Artemis Thing Plus, 460800, SparkFun Variable Loader (Recommended)"
/home/rmcsqrd/Downloads/arduino-1.8.10-linuxaarch64/arduino-1.8.10/arduino-builder -dump-prefs -logger=machine -hardware /home/rmcsqrd/Downloads/arduino-1.8.10-linuxaarch64/arduino-1.8.10/hardware -hardware /home/rmcsqrd/.arduino15/packages -tools /home/rmcsqrd/Downloads/arduino-1.8.10-linuxaarch64/arduino-1.8.10/tools-builder -tools /home/rmcsqrd/Downloads/arduino-1.8.10-linuxaarch64/arduino-1.8.10/hardware/tools/avr -tools /home/rmcsqrd/.arduino15/packages -built-in-libraries /home/rmcsqrd/Downloads/arduino-1.8.10-linuxaarch64/arduino-1.8.10/libraries -libraries /home/rmcsqrd/Arduino/libraries -fqbn=SparkFun:apollo3:amap3thing:svl_baud=460800,loader=sparkfun_svl -vid-pid=1A86_7523 -ide-version=10810 -build-path /tmp/arduino_build_299348 -warnings=none -build-cache /tmp/arduino_cache_581571 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major -prefs=runtime.tools.arm-none-eabi-gcc-8-2018-q4-major.path=/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major -verbose /home/rmcsqrd/Arduino/sketch_jan03b/sketch_jan03b.ino
/home/rmcsqrd/Downloads/arduino-1.8.10-linuxaarch64/arduino-1.8.10/arduino-builder -compile -logger=machine -hardware /home/rmcsqrd/Downloads/arduino-1.8.10-linuxaarch64/arduino-1.8.10/hardware -hardware /home/rmcsqrd/.arduino15/packages -tools /home/rmcsqrd/Downloads/arduino-1.8.10-linuxaarch64/arduino-1.8.10/tools-builder -tools /home/rmcsqrd/Downloads/arduino-1.8.10-linuxaarch64/arduino-1.8.10/hardware/tools/avr -tools /home/rmcsqrd/.arduino15/packages -built-in-libraries /home/rmcsqrd/Downloads/arduino-1.8.10-linuxaarch64/arduino-1.8.10/libraries -libraries /home/rmcsqrd/Arduino/libraries -fqbn=SparkFun:apollo3:amap3thing:svl_baud=460800,loader=sparkfun_svl -vid-pid=1A86_7523 -ide-version=10810 -build-path /tmp/arduino_build_299348 -warnings=none -build-cache /tmp/arduino_cache_581571 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major -prefs=runtime.tools.arm-none-eabi-gcc-8-2018-q4-major.path=/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major -verbose /home/rmcsqrd/Arduino/sketch_jan03b/sketch_jan03b.ino
Using board 'amap3thing' from platform in folder: /home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23
Using core 'arduino' from platform in folder: /home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23
Detecting libraries used...
/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/arm-none-eabi-g++ -DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3 -c -g -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -fdata-sections -Os -ffunction-sections -std=gnu++11 -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=48000000L -DARDUINO=10810 -DARDUINO_AM_AP3_SFE_THING_PLUS -DARDUINO_ARCH_APOLLO3 -DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3 -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/variants/artemis_thing_plus/config -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/variants/artemis_thing_plus/bsp -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/ard_sup -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/ard_sup/ard_supers -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/variants/artemis_thing_plus -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/mcu/apollo3 -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/mcu/apollo3/hal -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/mcu/apollo3/regs -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/utils -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/devices -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/CMSIS/AmbiqMicro/Include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/CMSIS/ARM/Include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/uecc/micro-ecc -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/hci/ambiq -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/sw/wsf/ambiq -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/sw/wsf/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/stack/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/sw/util -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/hci/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/apps/app/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/stack/hci -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/stack/cfg -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/sec/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/services -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/sec/common -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/hci/ambiq/apollo3 -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/apps/app -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/profiles -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/profiles/gatt -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/profiles/gap /tmp/arduino_build_299348/sketch/sketch_jan03b.ino.cpp -o /dev/null
Generating function prototypes...
/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/arm-none-eabi-g++ -DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3 -c -g -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -fdata-sections -Os -ffunction-sections -std=gnu++11 -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=48000000L -DARDUINO=10810 -DARDUINO_AM_AP3_SFE_THING_PLUS -DARDUINO_ARCH_APOLLO3 -DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3 -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/variants/artemis_thing_plus/config -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/variants/artemis_thing_plus/bsp -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/ard_sup -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/ard_sup/ard_supers -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/variants/artemis_thing_plus -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/mcu/apollo3 -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/mcu/apollo3/hal -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/mcu/apollo3/regs -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/utils -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/devices -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/CMSIS/AmbiqMicro/Include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/CMSIS/ARM/Include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/uecc/micro-ecc -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/hci/ambiq -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/sw/wsf/ambiq -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/sw/wsf/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/stack/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/sw/util -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/hci/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/apps/app/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/stack/hci -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/stack/cfg -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/sec/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/services -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/sec/common -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/hci/ambiq/apollo3 -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/apps/app -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/profiles -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/profiles/gatt -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/profiles/gap /tmp/arduino_build_299348/sketch/sketch_jan03b.ino.cpp -o /tmp/arduino_build_299348/preproc/ctags_target_for_gcc_minus_e.cpp
/home/rmcsqrd/Downloads/arduino-1.8.10-linuxaarch64/arduino-1.8.10/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_299348/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/arm-none-eabi-g++ -DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3 -c -g -MMD -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -fdata-sections -Os -ffunction-sections -std=gnu++11 -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DF_CPU=48000000L -DARDUINO=10810 -DARDUINO_AM_AP3_SFE_THING_PLUS -DARDUINO_ARCH_APOLLO3 -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/variants/artemis_thing_plus/config -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/variants/artemis_thing_plus/bsp -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/ard_sup -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/ard_sup/ard_supers -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/variants/artemis_thing_plus -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/mcu/apollo3 -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/mcu/apollo3/hal -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/mcu/apollo3/regs -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/utils -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/devices -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/CMSIS/AmbiqMicro/Include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/CMSIS/ARM/Include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/uecc/micro-ecc -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/hci/ambiq -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/sw/wsf/ambiq -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/sw/wsf/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/stack/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/sw/util -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/ws-core/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/hci/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/apps/app/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/stack/hci -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/stack/cfg -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/sec/include -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/services -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/sec/common -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/hci/ambiq/apollo3 -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/apps/app -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/profiles -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/profiles/gatt -I/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/sw/profiles/gap /tmp/arduino_build_299348/sketch/sketch_jan03b.ino.cpp -o /tmp/arduino_build_299348/sketch/sketch_jan03b.ino.cpp.o
Compiling libraries...
Compiling core...
Using previously compiled file: /tmp/arduino_build_299348/core/bsp/am_bsp.c.o
Using previously compiled file: /tmp/arduino_build_299348/core/startup/startup_gcc.c.o
Using previously compiled file: /tmp/arduino_build_299348/core/bsp/am_bsp_pins.c.o
Using previously compiled file: /tmp/arduino_build_299348/core/config/variant.cpp.o
Using precompiled core: /tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a
Linking everything together...
/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/arm-none-eabi-gcc -T/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/variants/artemis_thing_plus/linker_scripts/gcc/artemis_sbl_svl_app.ld -Wl,-Map,/tmp/arduino_build_299348/sketch_jan03b.ino.map -o /tmp/arduino_build_299348/sketch_jan03b.ino.axf /tmp/arduino_build_299348/sketch/sketch_jan03b.ino.cpp.o /tmp/arduino_build_299348/core/bsp/am_bsp.c.o /tmp/arduino_build_299348/core/bsp/am_bsp_pins.c.o /tmp/arduino_build_299348/core/startup/startup_gcc.c.o /tmp/arduino_build_299348/core/config/variant.cpp.o /tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a /home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/uecc/gcc/bin/lib_uecc.a /home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/third_party/exactle/projects/generic/stacklib/gcc/bin-cortex-m4/libstacklib.a -L/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/cores/arduino/am_sdk_ap3/CMSIS/ARM/Lib/ARM -larm_cortexM4lf_math -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -static -Wl,--gc-sections,--entry,Reset_Handler -Wl,--start-group -lm -lc -lgcc -Wl,--end-group -fno-exceptions -nostdlib --specs=nano.specs -t -lstdc++ -lc -lnosys -lm
/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld: mode armelf
/tmp/arduino_build_299348/sketch/sketch_jan03b.ino.cpp.o
/tmp/arduino_build_299348/core/bsp/am_bsp.c.o
/tmp/arduino_build_299348/core/bsp/am_bsp_pins.c.o
/tmp/arduino_build_299348/core/startup/startup_gcc.c.o
/tmp/arduino_build_299348/core/config/variant.cpp.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_clkgen.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_flash.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_gpio.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_interrupt.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_itm.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_pwrctrl.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_reset.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_rtc.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_tpiu.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_uart.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_util_stdio.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)ap3_gpio.cpp.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)main.cpp.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)ap3_timing.cpp.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)ap3_uart.cpp.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_cachectrl.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_queue.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_hal_stimer.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)am_util_delay.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)ap3_analog_structures.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)ap3_gpio_structures.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)ap3_uart_structures.c.o
(/tmp/arduino_cache_581571/core/core_9db35931a5694ba2cd8fc87887de23fe.a)ap3_initialization.cpp.o
(/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard/libc_nano.a)lib_a-init.o
(/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard/libc_nano.a)lib_a-memset.o
(/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/thumb/v7e-m/fpv4-sp/hard/libgcc.a)_arm_truncdfsf2.o
(/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/thumb/v7e-m/fpv4-sp/hard/libgcc.a)_aeabi_uldivmod.o
(/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/thumb/v7e-m/fpv4-sp/hard/libgcc.a)_udivmoddi4.o
(/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/thumb/v7e-m/fpv4-sp/hard/libgcc.a)_dvmd_tls.o
/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/arm-none-eabi-objcopy -O binary /tmp/arduino_build_299348/sketch_jan03b.ino.axf /tmp/arduino_build_299348/sketch_jan03b.ino.bin
/home/rmcsqrd/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/arm-none-eabi-size -A /tmp/arduino_build_299348/sketch_jan03b.ino.axf
Sketch uses 8472 bytes (0%) of program storage space. Maximum is 960000 bytes.
/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/tools/artemis/linux/artemis_svl /dev/ttyUSB0 -f /tmp/arduino_build_299348/sketch_jan03b.ino.bin -b 460800 -v
/home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/tools/artemis/linux/artemis_svl: 1: /home/rmcsqrd/.arduino15/packages/SparkFun/hardware/apollo3/1.0.23/tools/artemis/linux/artemis_svl: An error occurred while uploading the sketch
Syntax error: "(" unexpected
@rmcsqrd Let's move this to Bootloader SVL aarch64 Support #105
Subject of the issue
My Apollo3 board is suppose to arrive in the mail today, so I decided to go ahead and setup the Arduino IDE. I followed the manual install for core. no examples show in the example list - but there is a space for "examples for Ambiq Apollo3 Evaluation board". I manually browsed to the ~/Arduino/hardward/SparkFun/apollo3/libraries directory, and selected the example0_compilation, and the example1_compilation The Ambiq Apollo3 Evaluation Board from my board choices. when I click on the verify button, I get a Error compiling for board Ambiq Apollo3 Evaluation Board
`In file included from sketch/example0_compilation.ino.cpp:1:0: /home/lfmiller/Arduino/hardware/SparkFun/apollo3/cores/arduino/ard_sup/Arduino.h:42:10: fatal error: am_bsp.h: No such file or directory
include "am_bsp.h"
compilation terminated. exit status 1 Error compiling for board Ambiq Apollo3 Evaluation Board. `
If I switch to any of the other boards in the package "SparkFun Edge" for example and click on the verify button I get this error.
Build options changed, rebuilding all fork/exec /home/lfmiller/Arduino/hardware/SparkFun/apollo3/tools/apollo3_scripts/artemis_bin_to_blob.exe: exec format error Error compiling for board SparkFun Edge.
.exe file is clearly a Windows thing - leading me to believe that Linux isn't supported yet - but when I goto the above directory, I see python scripts. So I changed the permissions of the scripts, and the exec files to allow for executing. And get the same error. Which lead me to believe (???) Did I miss a step in setup somewhere or is Linux not supported yet.
Your workbench
Steps to reproduce
Tell us how to reproduce this issue. Please post stripped down example code demonstrating your issue to a gist.
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead