Setting up toolchain

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm a complete newbe in this line of business.
I just set up part of the toolchain following the instructions at http://interactive-matter.eu/how...
Under "Creating your first AVR project" I find these lines:
"After this is done you can select the Target Hardware options and select your target hardware here. In this dialogue you can either pick it from the drop down list or read it from the target hardware itself. I suggest connecting your programmer with the target hardware and read out the value. So you do not have to search the correct value and you test your whole setup, the programmer and the target hardware. If you can read out the target hardware, you will be able to program it."

Just wondering what this means. 
Do I have to connect my Arduino board at this time?

Even before I programmed one line of code?

Can/will anyone enlighten me please, or point to an appropriate tutorial (there are just so many, you know).
 

 

 

 

People rather die than think; and that will happen.

Last Edited: Sun. Apr 26, 2015 - 11:26 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That paragraph is talking about a setup involving a PC, a board with AVR on it and some kind of programmer that sits in between. That programmer is able to interrogate the ID of the AVR. 

 

If you have an Arduino board you don't have the same setup as there is intervening programmer does not exist.  The programming is done by code running in the AVR itself, but it doesn't have the capability to interrogate the ID in the same way. 

 

To be honest, if you are a beginner and you have an Arduino board why on earth aren't you simply using the board with the Arduino IDE software? Get some mileage under your belt with that setup then later you'll easily be able to change to using standalone GCC and some other IDE. 

 

EDIT: oh and I moved this thread, the Tutorial forum was completely the wrong place to post. 

Last Edited: Sun. Apr 26, 2015 - 11:35 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Clawson,
Thanks for the reply.
So I need "some kind of programmer" between my Mac and the Arduino in order to program the Arduino.
Any suggestions?

I've been using the Arduino IDE, on the Mac the readability with my 78 years old eyes is rather low; to say the least.
The Arduino IDE hides almost anything so there is not enough to learn for me.
 

 

 

People rather die than think; and that will happen.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No you don't. 

 

As I say Arduino avoids the need for you to have such a programmer because it can program itself (bootloader). What I'm saying is that,  because of this, it does not behave quite the same so you cannot follow their suggested procedure. 

 

But they are simply suggesting you read the target to automate the process of setting which AVR to build for. You can do this manually. 

 

The "trick" to using an Arduino with something like Eclipse is to setup avrdude to program the chip/board in the same way it does from within the Arduino IDE. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you!
So, the Arduino is programmed trough it's bootloader directly with avrdude.
The only thing I have to do is to find (on internet) a way to setup avrdude to program the Arduino.

People rather die than think; and that will happen.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You don't have to look very far,  there are thousands of posts about this on this site. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, there is a trilion of them.
I found my favorite here: https://typeunsafe.wordpress.com...
Attached is shorter version

 

 

Attachment(s): 

People rather die than think; and that will happen.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There are some instructions around for modifying the arduino IDE to have larger and more readable fonts.
basically, you can edit preferences.txt to change fonts, smoothing, and sizes, and theme.txt (buried in the app) for colors.  (And there are some much nicer fonts out there.)

Here's a side-by-side of my current Arduino setup and Energia (which has the "original" values.)

customized fonts (Arduino) vs original settings (Energia)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Westfw,
Thank you, I've found the font size; but the rest is new to me.
I share your thoughts on this: RTFM, if there is one.

 

 

People rather die than think; and that will happen.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

RTFM, if there is one.

Arduino is usually pretty good for documentation. They have an extensive website: www.arduino.cc

 

On this occasion I fear they could have said a little more about what is in preferences.txt:

 

http://www.arduino.cc/en/Hacking...

 

I suppose the thing is that the contents are subject to change (expansion) and if they documented it on a web page it would need constant maintenance? At least the comments in the file itself seem to make it close to self-documenting anyway.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Clawson,
Thanks. I saw that but "

  • /Users/<USERNAME>/Library/Arduino/preferences.txt (Mac)
    is not on my machine. The Library is empty!
    I have to use TextWrangler to find the preferences.txt file.

 

People rather die than think; and that will happen.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

On my machine...

~/windows/Program Files/arduino-1.6.3$ find . -name pref\*.txt
./lib/preferences.txt