At 12:02 PM 4/9/05 +0000, ed_hage wrote: >I also posted the question on the gnuarm group and there I got a good >tip. Apparently my startup code was not good; the globally defined >variables were defined but not properly initialised. So I initialised >it in main and then it worked!! Hmm, you need a new startup, the startup should initialize all globals for you (either to zero if unspecified or whatever is assigned to them) >I try to get some info on startup-files, if anyone can point me in the >good direction your ore than welcome (web-links, books etc.) There are examples in the files section and there is an example in the newlib-lpc collection at http://www.aeolusdevelopment.com That one certainly initializes the globals. BTW, that is required behaviour for ANSI compliant code. Robert " 'Freedom' has no meaning of itself. There are always restrictions, be they legal, genetic, or physical. If you don't believe me, try to chew a radio signal. " -- Kelvin Throop, III http://www.aeolusdevelopment.com/
Message
Re: [lpc2000] Re: float in interrupt function?
2005-04-09 by Robert Adsett
Attachments
- No local attachments were found for this message.