Skip to main content
alireza nazem
Associate II
May 7, 2018
Question

Need information about Bootloader via USB-COM (virtual com port) for STM32F103

  • May 7, 2018
  • 1 reply
  • 1345 views
Posted on May 07, 2018 at 11:31

Hello everyone, 

Does anybody know any available bootloader via usb-com (virtual com port) for STM32F103 series? or any written codes for it? or if not please instruct me how to start writing my own codes. frankly i am new here and just made my very first codes. I used UART1 to upload my codes to MCU but I need to use USB-COM for firmware update. Thank you   

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    May 7, 2018
    Posted on May 07, 2018 at 15:39

    Should be some IAP examples for the EVAL boards that should be portable to the board you are using.

    For USB connectivity, direct to the part, consider DFU

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    alireza nazem
    Associate II
    May 7, 2018
    Posted on May 07, 2018 at 15:52

    Hi, Thanks replying. actually I am asked to develop via USB virtual COM and not DFU for some reasons. am I on the right path if I learn how to read and write to the flash? what else do i need to know ? Thanks in advance   

    Tesla DeLorean
    Guru
    May 7, 2018
    Posted on May 07, 2018 at 17:43

    I would likely buffer data provided in the USB interrupt, and then flash in a separate task/thread. Writing and erasing flash can stall the processor, and you'd want to avoid doing that in an interrupt, and on a device will real-time expectations.

    The IAP implementation uses Y-Modem to manage blocks of data sent from a Terminal application running on a PC.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..