Re: Small memory configuration
Xavier IZARD <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Robert Muchsel a écrit : >>I use C with keil, and I need network (so task scheduler, ... and >>possibly netboot). I can see in datasheet that DS80C400 requires 64kB >>SRAM at address 0h in order to use the ROM firmware. >> >>Does all this memory really necessary and why ? If so, this means I >>can't declare any variable into this 64kB memory ? Any mean to reduce >>the memory used ? > > > You might get away with 48 KB of memory. > > >>The init_rom() function takes 2 parameters, RAM_START and RAM_END. This >>zone is for dynamic memory allocation, right ? is there anything else >>inside ? In other words, If I didn't use malloc / free, could it be >>reduced to 0 ? > > > No, the network stack itself needs a limited amount of heap memory > (inside the 48 KB). > Thanks for your answer. I am not sure to understand correctly the second part of your answer. Do you mean I could have this memory map for example : 0x4000 -> 0xBFFF for init_rom() function parameters and heap memory 0xC000 -> 0xFFFF possibly for keil xdata variables. or instead : 0xC000 -> 0xFFFF for init_rom() function parameters and heap memory Regards, Xavier _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini