migrate from mega to xmega

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

hello.thanks for your answer.i have learning board.i have some questions about choose the compiler for XMEGA.a little i know AVR(mega) and bascom and i want to migrate from bascom to IAR.
1-is it good to come form AVR to xmega?(i thinks its good because if i learn XMEGA then i will know how to work with avr(mega) )does my opinion true???
2- is it good to migrate form bascom to IAR
3- if number 2 is not good which compiler is good?
4-i think gcc is free and whats the different between IAR and gcc?
5-Can i conver gcc's library to IAR library?
thanks. :o :o :o

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

1) one is a superset of the other so - yes. (but note that C access to the SFrs is done differently for X)

2) Don't see the point if you are happy with Bascom? Why add to the burden of learning a new language as well as a new machine architecture?

3) It's not about the C compiler (apart from MikroC they are all good) it's changing from BASIC to C

4) all C compilers have their merits. The only way to decide which is best for you is to download the eval/full versions of each and decide for yourself which you like best.

5) no. (but there's more library support for GCC than IAR anyway)

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

ok.thanks for your reply.
about number 1 can i get result from your idea that its good for me to migrate from it?
about number 4 and 5
i read one note that said we can convert iar library to gcc library and gcc library to iar.
is it true????
is gcc free?
can i use gcc more easier and better than IAR?
thanks for your replies.

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

If I tell you compiler A is better than compiler B we'll get 10 replies saying no Bis better than A or C is better than both A nd B. So I'm not going to tell you which is "best" only that you should download ALL of them, try them for yourself and find out which one you get on better with. Your choices include:

IAR
GCC
Codevision
Imagecraft
Rowley
MikroC

But I'm still puzzled, if you have been using Bascom, why you feel the need to change to C anyway?

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

yes i want to use C because i'm not master in bascom and ithink bascom did not please me.
i ask two question:
1-is gcc free?
2-can we convert gcc libraray to IAR and reverse.
an onother thing:
Do you have link for download GCC?

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

1) Yes

2) yes but I'm not sure why you'd want to do this except for the fact that a lot of the early Atmel application notes only used IAR and not GCC.

To download GCC (for Windows) simply Google "WinAVR". For Linux (assuming it can use .deb's) visit my website at www.wrightflyer.co.uk/avr-gcc/

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

i want a compiler that give me a lot of library and i can programming very well (easier and faster).
THANKS

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

Quote:

i want a compiler that give me a lot of library

In that case have you actually considered Arduino. I don't think there's an AVR development system that comes with so much library code support. The downside of library code is that it can often be slow/bloated as it's trying to be all things to all people and, because you didn't write it, you don't understand/learn the operation of the underlying peripherals which can make moving from that library supported environment quite tricky. Arduino is, in fact, just a variant usage of avr-gcc (the C++ compiler) anyway. If you went with plain C in avr-gcc you always have library code from the likes of Stang, Fleury, Chan and Thomas anyway.

(note all these library things are for original AVR, not Xmega - Arduino quite specifically for mega8, mega88, mega168, mega328 and mega1280)

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

i'm confused.what should i do???

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

any one who has another ideas?

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

Get an Arduino and start learning C. Leave the C++ until you have a handle on C. The Arduino will protect you from a lot of crap until you are more experienced.

______
Rob

Scattered showers my arse -- Noah, 2348BC.
Rob Gray, old fart, nature photographer, embedded hardware/software designer, and serial motorhome builder, www.robgray.com