Jump to content

Keeps on rebooting, update impossible


goule
 Share

Recommended Posts

Hi,

It seems like my midibox became buggy after some program update : it keeps on rebooting and does not seem to respond to new updates of the program ... any idea ?

I'm using MidiOx / C language, and already made quite many versions of this program that's been working already ... Reuploading the MIOS seems to be impossible as well ...

Thancks for help  :P

Link to comment
Share on other sites

unfortunately I don't have anything here to do that (no pic programmer)  :(

I hope there is an other way to solve this !!  :o

For more information : just before it crashed, the new modifications of the program where dealing about SpecialChars etc. I was trying to get my own character on the screen.

:-\

Link to comment
Share on other sites

Hi,

One thing to keep in mind here is that in the MIOS software the PIC watchdog timer is active. If the timer is allowed to expire the system will reboot. This will happen if any routine goes into a loop that takes longer than the watchdog timer timeout. This was done by design to allow the bootlstrap loader to become activated if such a condition occurs thus giving the opportunity to upload a fixed (maybe older) version of the application.

Unless the bootstrap loader has become corrupted, you should be able to upload a fresh version of MIOS immediately after a reboot (within 2 seconds). Once the fresh copy of MIOS is uploaded the application is no longer linked so the reboot should stop. At this point you can decide to upload an older (working) version of your applicaition to be sure that it still works. Then look at the changes you made to find the problem.

BTW, it is this type of problem that points out how valuable an in-circuit debugger is. I struggled with some difficult to find bugs in my code and finally purchased the ICD2 debugger from Microchip. It is significantly easier to find bugs now and I believe that if you are doing extensive software work on the PIC the debugger is well worth the cost.

Hope this helps,

Synapsys

Link to comment
Share on other sites

Waow great reply, thanx buddy !  :D

Okay so when I'll manage to load the MIOS again, my bad application should no more been taken into account.

Is it possible to get a corrupted bootstrap by a bad application ?

I've already tried to reupload MIOS but it did not seem to work ... I'll try again tonight.

Thanx anyway !!

Goule

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