SparkFun Forums 

Where electronics enthusiasts find answers.

Tips, tricks, & best best practices using Artemis with your board designs.
User avatar
By vinthewrench
#218371
well this might be a bit center, but I am sure others have a similar question.

I am trying to use something better than the standard Arduino IDE . As an editor it's pretty horrible and on MAcOS it's doesnt track changes in files from other text editors.

So here I am with Xcode and makefiles .. and arduino-cli (which is sort of a front end to arm-none-eabi-g++ etc
I actually have some major success with the standard Arduino boards and even the Redboards.

but I really want to use the Artemis Redboard. So here is your standard blink app.
if you install ardunio-cli from https://arduino.github.io/arduino-cli/installation/
and run the enclode makefile (or even oep the xcode project). It does compile
and you can even do

make compile
make flash

and it will flash it..

BUT -- it fails to start, and the best I can tell is that the Example1_Blink.ino that is created by ardunio-cli is different from the Example1_Blink.ino that is created by the Arduino app.. hmm did I miss something from the command line or setup for the Arduino Board Manager??

I tried even addind the additional URL

arduino-cli compile -v --additional-urls https://raw.githubusercontent.com/spark ... index.json --fqbn SparkFun:apollo3:artemis ./Example1_Blink

and still the flashed code wont start>

for example assuming the proper paths,

arduino-cli compile --additional-urls https://raw.githubusercontent.com/spark ... index.json --fqbn SparkFun:apollo3:artemis ./Example1_Blink
Sketch uses 8484 bytes (0%) of program storage space. Maximum is 960000 bytes.
Global variables use 17340 bytes of dynamic memory.

artemis_svl /dev/cu.usbserial-1410 -f ./build/SparkFun.apollo3.artemis/Example1_Blink.ino.bin -b 460800 -v

Artemis SVL Bootloader
Script version 1.7

Phase: Setup
Cleared startup blip
Got SVL Bootloader Version: 5
Sending 'enter bootloader' command

Phase: Bootload
have 8528 bytes to send in 5 frames
Sending frame #1, length: 2048
Sending frame #2, length: 2048
Sending frame #3, length: 2048
Sending frame #4, length: 2048
Sending frame #5, length: 336

Upload complete

Nominal bootload bps: 27329.76


but If I artemis_svl the product of the arduino app -- it does start?

any idea what i am missing.. It sure would be nice to use a makefile

many thanks
You do not have the required permissions to view the files attached to this post.
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum