Strange event using USB HID bootloader on PIC32MX795F512l
Posted: 15 Oct 2019 22:54
I have encountered a strange event 3 times (out of hundreds) when using the USB HID bootloader app. I program the chip using the programmer with the USB HID bootload code. Then I connect a micro b USB plug to the onboard socket and attempt to load the application code. Here is what happened on the 3 events in question .
Normally, the first step is that the USB HID app erases the chip. This is shown by a green status bar on the bottom of the app. Normally, the green bar goes approx. 1/10 of the way across its range, then pauses for a fraction of a second and then the green bar rapidly extends further to the left completing the erasure. Then the green progress bar starts indicating the loading of the application code with a sort of jerky progress as it progresses. Then the chip resets and the display lights up and all is good.
On the 3 cases in question, the erase cycle acts differently. Instead of the initial spurt and hesitation and then completing, the green bar simply very rapidly (can hardly detect with the eye) completes the trip from left to right Then when the app code is being loaded, the progress is more rapid than normal without the jerky progress- but otherwise seems to complete. However, the code loaded to the chip will not run.
Now if I take the chip and use the programmer to load the same app code directly, the chip and code works fine.
Does anyone have a clue as to what the problem might be. I can use load the bootload code to a different PIC32MX795F512L and everything works fine. At a lost.
Thanks
Normally, the first step is that the USB HID app erases the chip. This is shown by a green status bar on the bottom of the app. Normally, the green bar goes approx. 1/10 of the way across its range, then pauses for a fraction of a second and then the green bar rapidly extends further to the left completing the erasure. Then the green progress bar starts indicating the loading of the application code with a sort of jerky progress as it progresses. Then the chip resets and the display lights up and all is good.
On the 3 cases in question, the erase cycle acts differently. Instead of the initial spurt and hesitation and then completing, the green bar simply very rapidly (can hardly detect with the eye) completes the trip from left to right Then when the app code is being loaded, the progress is more rapid than normal without the jerky progress- but otherwise seems to complete. However, the code loaded to the chip will not run.
Now if I take the chip and use the programmer to load the same app code directly, the chip and code works fine.
Does anyone have a clue as to what the problem might be. I can use load the bootload code to a different PIC32MX795F512L and everything works fine. At a lost.
Thanks