The 5 min is powered. I
can't say, that all of the variables are initialized. But I'll fine
coumb throu it. The compiler does not produce any warnings.
The
components:
4 X RS232 modules. Each on separate USART. If the
system works all work.
1 X RS486 module on USART
1 X USB to
USART (Com port emulation)
A few leds and buttons and usual stuff,
programing port, step down, 2X voltage regulator, ...
(The full
code fills 40% of xmega, but lowering the amount doesn’t seem to
solve the problem. Most of that are some rather large tables,
accessed with pgm_readword method. Could that be the problem?)
But the problem started after ading the part I expected the least problems from. Buttons...
All
RS232 use interrupts. But the peripherals are not connected, so they
shouldn’t happen. And interrupt for TCE0.
Even if I comment out the interrupts the problem remains. (I use #if in code, could that somehow mess it up?)
The uninitialized
variables seem the best explanation right now. So I'll focus on
those. Or something overriding TCE0 somehow.
Cheers.
> avr-xboot+unsubscribe@googlegroups.com.
Are you reusing one of the USARTS for XBoot programming? I had issues with that at one point, where latent register settings from XBoot messed with the main program.
Also - are you using the interrupts option in XBoot? I haven't looked at recent releases of XBoot, but if interrupts aren't being set from boot interrupt vectors back to main interrupt vectors, you could see similar issues.
Just throwing ideas in the mix - good luck.
Brad
To view this discussion on the web visit https://groups.google.com/d/msg/avr-xboot/-/F8xpTT13pmMJ.
To post to this group, send email to avr-...@googlegroups.com.
To unsubscribe from this group, send email to avr-xboot+...@googlegroups.com.