Hello Team,
I am using a RA6M3 custom board with MCU R7FA6M3AF3CFB, working with e2 studio IDE and FSP version 4.2.0.
I am new to implementing firmware updates using the MCUBoot bootloader over USB (not over-the-air). I referred to the example project ra_mcuboot_ra6m3 and added the PCDC USB stack in the FSP configuration. I also updated the device number and pin configurations according to my custom board.
ra_mcuboot_ra6m3
I’m not sure if I am proceeding in the correct direction. From the resources and AI tools I’ve consulted, I’ve learned that:
Renesas does not officially support USB DFU by default.
However, it is possible to use the MCUBoot example and integrate the PCDC stack manually to enable USB-based firmware updates.
In this case, the firmware update logic must be implemented manually to handle USB data reception and flash programming.
I would appreciate it if you could confirm if this approach is valid, and what additional steps or best practices I should follow to complete the implementation.
r_usb_pcdc
usb_event_callback()
r_flash_hp
r_flash_lp
bootutil
The above information was suggested by an AI tool while I was researching how to implement a working firmware update process.
Thank you,
Manthan
Hello,
USBX Device Firmware Update (DFU) driver is supported in FSP by Azure RTOS. There is no USB DFU support by FSP for FreeRTOS or baremetal applications. Here is an example of USBX DFU on EK-RA6M3:
github.com/.../USBX_dfu_ek_ra6m3_ep
Hello AZ,
Thank you for your suggestion. I have gone through the USBX DFU sample code and I understand the implementation better now.
I wanted to check if there is any video tutorial available for this example. A video walkthrough would be really helpful in making the setup process easier.
Thank you again for your support.
Best regards,Manthan
There is not a video to my knowledge, but it is a good idea for us to make one video on DFU stack.
Thanks