Menu

#175 Bootloader for Arduino

none
invalid
nobody
None
2023-08-08
2023-08-05
No

I have a USB board with STM32F072C8T6 and I want to flash it with a bootloader so that it can work with Arduino IDE.

When I connect the BOOT0 pin to HIGH, the device enumerated in Windows Device Manager under "Universal Serial Bus devices" and shows up as "STM32 Bootloader"

Now, i can proceed from here how to flash a bootloader that can make the USB works with Arduino IDE.

I tried to use this open-source
https://github.com/Jana-Marie/OtterPill/tree/main

and built the dfu-util on Linux Ubuntu machine..... but I have several problems:

1- I cannot find the firmware.bin file that the above URL uses
2- how to use the dfu utility on Windows Machine ?
3- is there any other open-source free Arduino bootloader I can easily flash to my USB board and use it through the USB port to work with Arduino IDE

Any help or guidance is appreciated?

Thanks
Hossam Fattah

Discussion

  • Tormod Volden

    Tormod Volden - 2023-08-06
    • status: open --> invalid
     
  • Tormod Volden

    Tormod Volden - 2023-08-06

    This is not a place for Arduino support, but briefly:

    • The firmware.bin will be generated by the "make" invocation if you have all the necessary build tools installed
    • On Windows, you can use the dfu-util 0.11 binaries provided at this site, use Zadig to set the driver to WinUSB and Device Manager should display it as a WinUSB device.
    • For other bootloaders, look at https://github.com/stm32duino/Arduino_Core_STM32 or ask there
     
  • Hossam Fattah

    Hossam Fattah - 2023-08-06

    Hello Tormod,

    Thanks for your reply.

    As for the firmware.bin, I am not sure what you mean all necessary build tool installed ?. I run "make" and the binaries for the dfu-utils are generated but can not find the firmware.bin

    Thanks

     
  • Tormod Volden

    Tormod Volden - 2023-08-07

    If you run "make" in the dfu-util source folder you will build dfu-util, to run on your computer.

    firmware.bin is the Otter Pill binary that should run on your microcontroller, and it is build when you run "make" in the Otter Pill source folder.

     
  • Hossam Fattah

    Hossam Fattah - 2023-08-08

    Hello Tormod,

    Thanks ... I was able to solve this problem by using CubeProgrammer and binary from stnduino32.

    Thanks for you r help.

    Best

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB