abort in _Heap_Initialize on lpc2148(Only32K RAM)

Joel Sherrill joel.sherrill at oarcorp.com
Tue Oct 30 16:10:36 UTC 2007


Ray wrote:
> 32K is a small foot print. For a normal hello.exe, it need at least 28k SRAM.
> I think you may need remove libc and fs(You can still use the thread-API after this). And you can not use libc's style of printf, instead, use printk. Make the default thread stack size from 4K(default) to 1K (or maybe smaller).
> You can refer my old patch for how to remove fs and libc overhead.
> And you need to
> (1) remove bsp_libc_init in pre-task hook
> (2) Enable no_libc.c in libcspport
> Some of this patch already in the CVS, so this patch is just a reference.
> Have fun!
>
>   
When on a tight memory platform, using RTEMS from CVS
is important.  We have been pushing size down slowly
and incrementally.  Each time something is identified that
could help reduce size that makes sense, we try to do it.

For example, I just committed a couple of changes last week
that would improve code size.

--joel
> ------------------
> Thanks & Best Regards!
> Ray
> 2007-10-30
>
> -------------------------------------------------------------
> From: invent-lwj
> Date: 2007-10-30 22:00:41
> To:   rtemsÓʼþ×é
> CC:   x ray
> Sub:  abort in _Heap_Initialize on lpc2148(Only32K RAM)
>
>   
>> Dear!
>>     I debug 4.7.99.2 on lpc2148.The work_space_start Address is 0x40002020 and the work_space_size is 0x8e80.But lpc2148 RAM size is 0x40000000-0x40007fff.I track to _Heap_Initialize.It enter abort mode.I think it already overstep address range.What should i do!
>>     How to reduce heap size?
>>                                                   Thanks&Best Regards!
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.com
>> http://rtems.rtems.org/mailman/listinfo/rtems-users
>>
>>     
> begin 600 no-fs-stub.diff.tgz
> M'XL(`/[+;D8``^U9ZW/:2!+/5_-7='DKM6"0D(00#Z]SP3:)J>7ALLE=I6ZO
> M5$(,MF*]5C-R[-W:__UZ1@\08(R3R]X73X@>,]V_[NGI[NF1_4!:4(FR>";/
> MG<7BS8]H"C9#U]]H:K/9:*GXKNFZH8I^15$-16V^416CT6CJ35U7WBAJ0T<R
> M4'Z(-FLMILR*`-X\Q-%..N_N)@KB4'*E^=^AUM_5^**#U)]]/8WB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]\/9?
> (["9]V@`H```
> `
> end
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   




More information about the users mailing list