altzone wrote:
1) What is the best and simplest (Windows) C toolchain and environment to use?
I'm aware of GNU GCC and want to use it, but I really have no idea how to go about it. I tried it once for the 8bit AVR's and it was a horrible experience, I just wasn't software geeky enough to get it to compile anything.
I know that GCC is just a command line thing and you need a shell to go around that to use it.
I just want a toolchain environment I can download as a complete package, install, and write a simple hello world on my LCD and get going without having to muck around with anything technical, edit scripts, command line stuff etc. I'm a hardware guy who can program in plain vanilla C, not a computer science software guy who writes linux scripts in his sleep.
I kinda need to use GCC because I'll be releasing my code to the community and want them to develop upon it, so I figure that's the best solution.
A free solution is best of course.
there are several packages available based on gcc and eclipse, but from my point of view most of them are not really updated on a regular base.
a good starting point should be yagarto:
http://www.yagarto.dethere is also a tutorial available from James P. Lynch, which should be based on yagarto.
from my experiencies a commercial IDE (like IAR or Keil) is a better starting point.
altzone wrote:
2) What JTAG programmer hardware is best?
Presumably it would be tied into my first question, with some environments only supporting some JTAG programmers?
And does this JTAG programmer allow simple debugging?
The lower the cost the better, I'm used to my PICkit2 programmer doing everything for $30.
arm-usb-ocd (
http://www.olimex.com/dev/index.html) is a cheap solution (also supported by yagarto).
j-link (
http://www.segger.com) is faster and more reliable, but i'm not sure if it's supported by an open-source-toolchain.
altzone wrote:
3) Does the GCC or other compiler come with headers/libraries/examples etc for the AT91SAM7S256 device I'm interested in?
I don't want to spend a week figuring out how to write to an I/O port or register etc. I'm so used to just having my PIC GCC compiler automatically define every register as stated in the datasheet (e.g. PORTA=0;), I'd love to be able to do the same thing with the ARM without any hassles (e.g. for the clock register CKGR_MOR=0;).
take a look at the software packages provided from atmel. they are offering most of the examples also for gcc:
http://www.atmel.com/dyn/products/tools ... ol_id=4343regards
gerhard