Go Down

Topic: Xmega (Read 1 time) previous topic - next topic

westfw

Quote
Maybe you can understand & help me go through http://code.google.com/p/arduino/wiki/BuildingArduino where it talk about XCode so does this mean I could generate myself an Arduino IDE & slightly modifiy it, add a button to launch my own java application, add submenu to interact with my partner's Xmega board,... via java programming ?

Yep.  I was successful in adding a button to the serial monitor to make the text being sent "sticky" and easy to send over and over, for example, without really knowing Java.  The Arduino Source for Mac is already an XCode project, and compiled pretty cleanly last time I tried...

I'm not sure why you'd want to use Arduino instead of "your favorite editor" in conjunction with avr-gcc, avr-g++, and avrdude, which are the tools that Arduino IDE uses to do most of the work.  (I suppose to make it easier for others to use it, eh?)  You could take a look at the style and complexity of the modifications done for Sanguino as a starting point.  The most likely roadblock is to find to you need a new version of avr-gcc/etc tools that have other problems withthe rest of the arduino environment.

selfonlypath

Quote
The Arduino Source for Mac is already an XCode project, and compiled pretty cleanly last time I tried...
Could you give precise link & instructions on how I dowload teh ful XCode project from arduino web server ?

Right now, I've developped a specific java GUI (jar application generated by XCode & ant) which communicate both ways with my Mega board using RXTXcomm.jar for USB management. When I modify my sketch, I compile then download. After, i run from Mac OS the GUI jar application hence outside of IDE context. Do you think it would be easy to slightly modify the arduino IDE so I can from same shell compile & download my sketch but also run my specific GUI ?

Quote
I'm not sure why you'd want to use Arduino instead of "your favorite editor" in conjunction with avr-gcc, avr-g++, and avrdude, which are the tools that Arduino IDE uses to do most of the work.  (I suppose to make it easier for others to use it, eh?)
My actual strategy is not clear because i'm in steep learning curve, discovering java, XCode, arduino sketch development being the only part i'm more confident but I don't have any experience with AVR studio or other SDK in general even outside of arduino context. I'm really more plug & play in the Mac spirit.

Quote
The most likely roadblock is to find to you need a new version of avr-gcc/etc tools that have other problems withthe rest of the arduino environment.
Do you mean i'll run into many problems & issues in trying to get  running on my Mac the ATXmega128A3 board being developped by my friend in another country?

westfw

Quote
Quote
The most likely roadblock is to find to you need a new version of avr-gcc/etc tools that have other problems withthe rest of the arduino environment.

Do you mean i'll run into many problems & issues in trying to get  running on my Mac the ATXmega128A3 board being developped by my friend in another country?

I mean that you might run into a situation where "atXMega support was added to gcc version 4.5, but gcc versions higher than 4.3 have a bug in the C++ compiler that prevents the Arduino xxx feature from working."  For example, the 4.3.2 compiler currently used in arduino seems to have a C++ specific bug in PROGMEM datatypes.  In that case, there is an easy workaround and PROGMEM isn't widely used anyway, but it's not hard to imagine a more serious issues (there WAS one that cause some version scrambling; I don't remember the details.  I don't think you can currently use gcc 4.4.x with arduino...)

westfw

Quote
Could you give precise link & instructions on how I dowload teh ful XCode project from arduino web server ?

That part is easy.

Turns out I no longer know how to modify Arduino with XCode.  Older versions included an "Arduino.xcodeproj" that you could doubleclick and get everything loaded for you, but the latest source doesn't have that (it uses a standard CLI-based makefile.)  :-(

selfonlypath

Quote
I mean that you might run into a situation where "atXMega support was added to gcc version 4.5, but gcc versions higher than 4.3 have a bug in the C++ compiler that prevents the Arduino xxx feature from working."  For example, the 4.3.2 compiler currently used in arduino seems to have a C++ specific bug in PROGMEM datatypes.  In that case, there is an easy workaround and PROGMEM isn't widely used anyway, but it's not hard to imagine a more serious issues (there WAS one that cause some version scrambling; I don't remember the details.  I don't think you can currently use gcc 4.4.x with arduino...)
Do you then recommend I stick for the moment with my mega board + arduino IDE and wait a while before engaging into ATXmega board & associated SDK ?
P.S. Merry Christmas ;)

Go Up