Hello once more guys,
After some time struggling and realising I can't debug with WinAVR (avarice code not compiled sucks so bad for jtag3 or atmel-ice) neither get a reliable executable via IAR, I tried Atmel Studio 7.
My original code have been developed (originally the code is not mine) by a way gcc compiles it pretty good, although WinAVR debug issues. After trying to migrate to AS7, the code is compiling / linking, without any error and debug is a reality.
The problem is: when I program ATmega128RFA1 flash and run without debug, my device seems crazy and nothing works. In my particular case a led blinks pretty fast, while it was supposed to do it at about 1 Hz. After compiling again with gcc and reprogram the chip, everything run well again.
It is not clear for me how to migrate, so far I just tried to make it compile, what was supposed to be enough.
Is it possible use gcc compiler under Atmel Studio?
I tried to copy all libraries from WinAvr to AS project, could it cause critical problems? Maybe I missed supress any library reference.
That's my last try to develop in Windows environment. Unfortunatelly my time is time is getting short to finish my job.