Re: Small memory configuration

Robert Muchsel <robert.muchsel-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
> > 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.



Exactly. Use:

#include <rom400_init.h>

#if ROM400_INIT_VERSION < 14
extern void HEAP_START(void);
#define DEFAULT_HEAP_START ((((long)&HEAP_START)&0x7fffffL)-0x10000L)
#endif

init_rom(DEFAULT_HEAP_START, 0xbfffL) 

This will use the default heap start and your specified end of the heap.


> 
> or instead :
> 0xC000 -> 0xFFFF for init_rom() function parameters and heap memory
> 
> Regards,
> 				Xavier
-- 
  Robert Muchsel - Dallas Semiconductor - http://www.maxim-ic.com/TINI/

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.