[En-Nut-Discussion] Nut/OS Initialization
PragmaLab
info at pragmalab.nl
Wed Sep 17 19:52:49 CEST 2008
Hi Alain,
> The reason is not only phylosophical, it makes simple
> debugging become possible nightmares. As you apen a nut
> system in Eclipse it goes straight to main() and you cannot
> debug anything before that. I had to do it with Nut, and it
> took me 2 days to find a simple error in one initialization ... :(
what about getting the address of the reset vector and start debugging from
there? Just look in the map-file. I'm not familiar with Eclipse but at least
it must be possible to set breakpoints on (HW)addresses.
But let us stay focussed on the interesting discussion of how the HW
initialisation can be improved in NutOS. Calling code before main: nothing
wrong about that IMHO. Cannot think of another way to get your int i=5; done
runtime. In NutOS quite a lot of initialisation is done before calling
main(). Debugging has never been a problem (for me).
Best regards,
Rob van Lieshout
More information about the En-Nut-Discussion
mailing list