StartUSB based on PIC18f2550, how do go to USB HID Bootloader from firmware ?

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
cpservicespb
Posts: 35
Joined: 18 Oct 2022 21:43

StartUSB based on PIC18f2550, how do go to USB HID Bootloader from firmware ?

#1 Post by cpservicespb » 28 Apr 2024 07:06

I have StartUSB based on PIC18f2550 with MIkroE default USB HID Bootloader and MicroC PRO 7.6.

I deмeloped some firmware (not bootloader, user' s one) with its control software.

I can reset the device, that is reboot from my firmware programmaticaly by sending appropriate command from my control software to the firmware.
But also I need to go to the bootloader from my firmware programmaticaly, without rebooting the device in such way by sending appropriate command from my control software to the firmware.
To make in a future ability of flashing of a firmware ...

Now the way to go to Bootloader mode:
1. launch MikroE microBootloader Windows GUI application;
2. send my device to rebooting by button or from my firmware;
3. have 5 seconds to press "Connect" button at GUI MikroE microBootloader application.
4. to return to "User" it is necessary to press "Disconnect" button at GUI MikroE microBootloader application

I tried to do:
either

Code: Select all

     _asm { goto 0x001C };
or

Code: Select all

     ADCON1 = 0x0F;
     LATB.RB4 = 1;
from my firmware.
But it didn't success.

How can I reach such scenario ?

Post Reply

Return to “mikroC PRO for PIC General”