Jump to content
Sign in to follow this  

Startup-Procedure For Boostc

Recommended Posts


would'nt it be possible to create a Startup-Procedure to be executed before any of your _startup is executed ??

This will help init some stuff at "real" startup

Bernd Schüler

Share this post

Link to post
Share on other sites

The best option is to use the -rb option, this allows offseting of all the BoostC generated code.

All the interrupt and reset code areas can then be use to intercept restarts and interrupts before the BoostC code is called.

Once your own code is done call the BoostC code at its new offset address.


I'm not sure I've made that very clear, but I hope that helps.




Share this post

Link to post
Share on other sites



It would be nice to have BoostC recognize a special function for this purpose.

The same way we have...

void Interrupt(void) and void interrupt_low(void)

we could also have...

void startup(void)


Of course, this only a "nice to have" not exactly a urgent need.



Best regards



Share this post

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...