[En-Nut-Discussion] Ethernut Microchip PIC port
Ake Hedman
akhe at eurosource.se
Tue Apr 12 16:11:15 CEST 2005
Henrik
The stack can be larger on 18F PICS. I have a 512 byte deep stack in my
current project. But never mind. I found the uIP
(http://www.sics.se/~adam/uip/) and that will be perfect for my/our needs.
Regards
/Ake
Henrik Maier wrote:
> Ake Hedman wrote:
>
>> is there a port (or something on the way) of EtherNut to the
>> Microchip PIC platform.
>
>
> From my point of view the PIC18 architecture is too limited to be used
> for an advanced OS as Nut/OS is. The PIC18 supports only up to 4 KB of
> RAM and this RAM can't even be used continuously, it has to be used in
> banks of a maximum of 256 bytes (16 banks max.), at least when you
> allocate statically. The other limitation is the program counter
> stack. PC stack cannot be allocated in RAM but must be in a special
> stack space of only 32 stack locations. Nut/OS is using dynamic memory
> to allocate stack space for the threads it's running and is using
> stack plentifully and deep. With interrupts and context switching I am
> sure a 32 location deep stack will overrun quickly.
>
> Cheers,
>
> Henrik
>
--
---
Ake Hedman (YAP - Yet Another Programmer)
eurosource, Brattbergavägen 17, 820 50 LOS, Sweden
Phone: (46) 657 413430 Cellular: (46) 73 84 84 102
Company home: http://www.eurosource.se
Kryddor/Te/Kaffe: http://www.brattberg.com
Personal homepage: http://www.eurosource.se/akhe
Automated home: http://www.vscp.org
More information about the En-Nut-Discussion
mailing list