Re: [libopenstm32-devel] Reset Handler
Status: Inactive
Brought to you by:
uh1763
From: Uwe H. <uw...@he...> - 2010-10-17 22:46:02
|
Hi, On Fri, Oct 15, 2010 at 07:28:00PM +1300, Gareth McMullin wrote: > I've just started working on libopenstm32, and noticed that the C runtime > isn't initialized correctly (there is garbage in the data and bss sections). > The attached patch includes a reset_handler which initializes these section > before calling the application's main() function. > The initial stack pointer is also defined in the linker script, allowing the > application to override with a linker command line option > "-Wl,--defsym,_stack=0x20005000". > > Is posting patches to this list the preferred way of contributing? Yes. The patch looks good, just a small question: does this require changes to any of the example linker scripts or Makefiles or READMEs in examples/*? If yes, could you also provide a patch to update those? Thanks, Uwe. -- http://hermann-uwe.de | http://sigrok.org http://randomprojects.org | http://unmaintained-free-software.org |