Hi,
I have got a problem with the use of external RAM. If I debug my code with the JTAG mkII everything (including ext. RAM access) works fine.
But feeding a programmer with the resulting hex file fails. AVR studio says "The contents of teh HEX file does not fit in the selected device".
A analysis of the hex file shows that the external RAM is filled up with 0x00 in it. Why does the RAM appear in the hex file?
Makefile extract (generated by AVRStudio 4.16 SP1):
LDFLAGS += -Wl,-section-start=.extram=0x804000
typical variable declaration:
static uint8_t flash_buf[BUFSIZE_MUX_TX] __attribute__ ((section (".extram")));
Does anyone has an idea what I am doing wrong?
(BTW: I am using an ATXMEGA128A1 with WinAVR-20090313)