From: Tomaž Š. <tom...@ij...> - 2012-03-19 14:09:40
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/19/2012 08:18 AM, Piotr Esden-Tempski wrote: > I think there is a patch fixing this already in locm3. Can you confirm? Yes, this is fixed. Gareth McMullin commited my patch back in January (03e44e91e31a5c26b82a5d8be7de91d489bb7a87) Thanks Tomaž > On Jan 11, 2012, at 2:01 AM, Tomaž Šolc wrote: > >> Hi >> >> I'm attaching a patch I've been using that moves the stack to the top of >> available RAM, as defined in the user's linker script. >> >> Feel free to include it in libopencm3. >> >> Thanks >> Toma >> >> On 12/20/2011 03:05 PM, Toma olc wrote: >>> Hi everyone >>> >>> I see that stack top is always set to 0x20000800 in all linker scripts >>> that come with libopencm3, regardless of what the user-supplied linker >>> script sets for RAM and flash size/address. >>> >>> For instance, on the stm32f103 chip with 64 kB of RAM at 0x20000000 this >>> only gives you 2 kB of space for globals and stack, which just proved >>> too little for a basic Contiki OS + libopencm3 setup. >>> >>> Is there a reason why _stack isn't simply initialized to the top of the >>> available RAM with with something like this? >>> >>> PROVIDE(_stack = ORIGIN(ram) + LENGTH(ram)); >>> >>> Thanks >>> Toma >> - -- >> Toma olc, research assistant >> SensorLab, Joef Stefan Institute >> http://sensorlab.ijs.si >> mail: tom...@ij... >> blog: http://www.tablix.org/~avian/blog >> <0001-Set-_stack-to-the-top-of-ram-region.patch>------------------------------------------------------------------------------ >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >> infrastructure or vast IT resources to deliver seamless, secure access to >> virtual desktops. With this all-in-one solution, easily deploy virtual >> desktops for less than the cost of PCs and save 60% on VDI infrastructure >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox_______________________________________________ >> libopencm3-devel mailing list >> lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel > > > - ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > libopencm3-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libopencm3-devel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPZz4RAAoJED848b3tOBsIwDMIAIvVdaMKu6p237uucFsLlM+U 3PQQ5ylMu2cJbEr8YRpZO8VDbaIV8AV7hm04vq3v+NcYaI0Ko+ozF3cWjTTTkArQ chHUQDPK84jaUGd/VgOpKIrTNS5PGwDAumnsfr+N63y6M70IG69S60DXPDtvMVPU OzaDulgABf6Gjni0vyQ/xIPMpFy0YUF6RK6ewoncO0Dy/DwQbi0p9pgzrYwIQi8J iDFg56qSA+Qqn+Uw4N94XeTYRVITxyrBT8uMERUllAtraWD1R/IZxVgEnuFFqrhL +/5q0h+Cv9juN98h/vV8hUWyb+Qmc/upV+uJfosGNbJzX37zqulmmGvmWXY8lbM= =jfr+ -----END PGP SIGNATURE----- |