goule Posted September 22, 2005 Report Share Posted September 22, 2005 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 Quote Link to comment Share on other sites More sharing options...
pay_c Posted September 23, 2005 Report Share Posted September 23, 2005 What about reburning the bootstrap loader? This way, you delete everything else on there... Quote Link to comment Share on other sites More sharing options...
goule Posted September 23, 2005 Author Report Share Posted September 23, 2005 unfortunately I don't have anything here to do that (no pic programmer) :(I hope there is an other way to solve this !! :oFor 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. :-\ Quote Link to comment Share on other sites More sharing options...
Synapsys Posted September 23, 2005 Report Share Posted September 23, 2005 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 Quote Link to comment Share on other sites More sharing options...
goule Posted September 23, 2005 Author Report Share Posted September 23, 2005 Waow great reply, thanx buddy ! :DOkay 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 Quote Link to comment Share on other sites More sharing options...
raphael Posted September 23, 2005 Report Share Posted September 23, 2005 Is it possible to get a corrupted bootstrap by a bad application ?Yes, If the application overwrites the bootstraploader in flash. Or if you write something to 0x0000. Quote Link to comment Share on other sites More sharing options...
goule Posted September 23, 2005 Author Report Share Posted September 23, 2005 Thanx all for your help : it occurs that my optocoupler was dead. I replaced it and everything went fine again !Goule Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.