Jump to content

App_Init() at power cycle


EsotericLabs
 Share

Recommended Posts

Hello midbox friends

 

I have something strange (i think) with my midio128 based application..I added a code module, with its own Init() and several MIOS32_MIDI_SendDebugMessage() in the initialization code.

Strangely, these are fired into MIOS Studio when the code starts after upload.  They do not, however, appear when I power cycle the core (switch off and on).

 

I then added debug messages to the App_Init() of midio128 itself with the same effect. Isn't that strange? I would expect App_Init to run whenever the program starts?  Or is it a timing issue, that only after some running time, messages are sent to MIOS Studio?

 

I'd be grateful for any clues,

 

Thank you.

 

 

Link to comment
Share on other sites

Hi,

 

APP_Init() is always called after power-on, but the USB connection could be delayed (depends on the operating system you are using).

Therefore it can happen, that debug messages, which are print directly after power-on, get lost.

 

Best Regards, Thorsten.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
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.

Loading...
 Share

×
×
  • Create New...