RTEMS port to Lattice Mico32 (lm32)

Jukka Pietarinen jukka.pietarinen at mrf.fi
Thu Nov 6 16:10:06 UTC 2008


Hi,

I have started to work towards a RTEMS port to the Lattice Mico32 
softcore CPU (lm32). I have built the tools starting with sources from 
Lattice which are based on binutils-2.18 and gcc-3.4.4, and replaced the 
supplied newlib with newlib-1.16 and RTEMS patches (yes, I know this gcc 
version is outdated but unfortunately the lm32 target is not in the FSF 
source tree).

The current status is that I am able to run the "hello" application with 
a polling console. The RTEMS version I'm working is from CVS, early October.

I ran into a problem with the allocation of workspace and heap. If I use 
the shared bootcard.c heap_start is always defined as NULL. Just to get 
forward I hard-coded the addresses and sizes for both the workspace and 
heap in bootcard.c, but how should the start of heap be really defined? 
There seems to be an option of using a unified work area for both 
workspace and heap, too.

I'm targeting custom hardware with a ECP2M-20 FPGA, 32 Mbytes of DDR2 
memory and 10/100 ethernet.

Thanks,
Jukka



More information about the users mailing list