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 };
Code: Select all
ADCON1 = 0x0F;
LATB.RB4 = 1;
But it didn't success.
How can I reach such scenario ?