Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

malloc/heap issues?

2004-10-05 by James Russo

Hello,

    Ok, I give up. Spent the last 4 hours on this problem. I have a ~12k 
application trying to go into a atmega128. I seem to have this problem 
when this one module is loaded in, malloc starts returning large values 
greater then the size of ram. Its like it almost thinks that I have 65k 
of memory installed. Removing the one module seems to solve the 
problem?  I am using a JTAG-ICE to debug the problem.

Here is the avr-size output.

   text       data        bss        dec        hex    filename
  12426        192        846      13464       3498    main.elf

The first address returned should be 192 + 846 + 2 (malloc size).

can someone give me a hint?

Thanks,

-James

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.