Correct software unplug device
Posted: Mon Apr 11, 2011 11:41 am
Hi.
I have problem how to correct software unplug device from bus.
I have HId bootloader and HID device (my self program).
If plug device to USB then start bootloader and I can flash new program to MCU. if flash then jump to user program . then start my HID device and can send receive data from to USB , but I have special command to jump back to bootloader. there I have problem, I use easy function set watchdog and wait for watchdog reset MCU, it's work but still program for HID device show error so device is problem.
How can I correctly software unplug device from bus???
any idea??
regards
with special command I want jump from bootlaoder to user program and back
I have problem how to correct software unplug device from bus.
I have HId bootloader and HID device (my self program).
If plug device to USB then start bootloader and I can flash new program to MCU. if flash then jump to user program . then start my HID device and can send receive data from to USB , but I have special command to jump back to bootloader. there I have problem, I use easy function set watchdog and wait for watchdog reset MCU, it's work but still program for HID device show error so device is problem.
How can I correctly software unplug device from bus???
any idea??
regards
with special command I want jump from bootlaoder to user program and back