Skip to main content
Graduate
April 19, 2024
Question

Bootloader choice

  • April 19, 2024
  • 2 replies
  • 1125 views

I have a STM32F405RGTG MCU and want to load a bootloader on it. I am using UART and I2C and want to program it via USB-C. How do I chose the right bootloader? Does ST have original bootloaders I can use?

 

Thank you.

    This topic has been closed for replies.

    2 replies

    Graduate II
    April 19, 2024

    You can put anything you want on there, with what ever features you deem important. With freedom comes responsibility..

    The F4 should support USB DFU out of the box. There should also be USB DFU Device examples in the CubeF4 trees if you have external memory to support/update.

    Also examples pulling of USB Flash Sticks or MSC

    Graduate
    April 19, 2024

    I see, I tried doing it with the STM32CubeProgrammer and been following this guide: 

     

    https://docs.nanoframework.net/content/stm32/flash-cube-programmer.html

     

    I have erased the full chip since I have a custom PCB and was thinking of using this bootloader: 

    https://cloudsmith.io/~net-nanoframework/repos/nanoframework-images/packages/detail/raw/ST_STM32F429I_DISCOVERY/latest/#files

     

    Do you recommand to downloading the CubeF4 and looking at examples there?

     

     

     

    Super User
    April 19, 2024

    DotNet nano-framework. There were the days. So much effort has been wasted. And now Microsoft does it again, with Rust.

     

    Graduate
    April 20, 2024

    So what do you recommend then @Pavel A.?

     

    Super User
    April 20, 2024

    Depends on your goal? For real life projects on STM32F4, C or C++ is the natural choice. 

    Bootloader (updater, actually?) - again depends on your requirements. STM32F4 is mature MCU family, there's no secure boot, Trustzone and so on, just do whatever you find suitable.  As Tesla D. wrote, the built-in USB DFU bootloader is one of options.

    Do you recommand to downloading the CubeF4 and looking at examples there?

    Only if you wish to learn from ground and have a lot of free time. Else look for a consultant.