Other Parts Discussed in Thread: EK-TM4C1294XL
hello all
i need an option to jump from firmware to usb dfu bootloader without any reset.
and after the load is finish go back to the new firmware also without any reset.
need help
htanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hello all
i need an option to jump from firmware to usb dfu bootloader without any reset.
and after the load is finish go back to the new firmware also without any reset.
need help
htanks
Hi,
TivaWare bootloader can support USB DFU. The bootloader example in C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\boot_serial can support USB DFU by changing the bl_config.h to enable USB bootloading. The default of this example is for UART bootloading. You can reference this bl_config.h
There is also one change you must make in order for USB DFU to work due to an library issue. In bl_usbfuncs.c file you need to change on line 619
FROM:
HWREG(USB0_BASE + USB_O_CC) = (USB_CC_CLKEN | (7 << USB_CC_CLKDIV_S));
TO:
HWREG(USB0_BASE + USB_O_CC) = (USB_CC_CLKEN | (3 << USB_CC_CLKDIV_S));
With this change for bl_usbfuncs.c and bl_config.h, you can create a flash-based USB DFU bootloader.
TivaWare also supports a ROM-based bootloader. Please refer to C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\boot_demo_usb. boot_demo_usb is a USB application supporting a mouse via the HID class and also publishes runtime DFU capability. This example will call the ROM-base bootloader to start a firmware update.