This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to modify startup.a51 to execute codes before main() ?

Hi,

I have couple of lines of codes to insert into startup.a51. However, placing them at different places of startup.a51, either cause memory overlap (this disable my interrupts) or not to be executed at all.

Hope someone can shine some light, where usually should codes to be executed before main() be placed at ?

In addition, should I change the optimization options etc ?

Thanks

0