Skip to main content
Visitor II
September 18, 2020
Solved

usbd_dfu_if.c

  • September 18, 2020
  • 1 reply
  • 998 views

Hi, I'm trying to implement my own DFU bootloader interface, since I'm using a custom STM32F446RET board.

Been looking into STM32F446ZE-Nucleo DFU_Standalone project to get some ideas, but seems to be quite different to my new custom CubeMX created project.

Eg:

  • STM32F446ZE-Nucleo DFU_Standalone project has a usbd_dfu_flash.c file which contains some Flash read and write functions (Flash_If_Write, Flash_If_Read).
  • Custom CubeMX STM32F446RET board project has a usbd_dfu_if.c file, with some function prototypes like MEM_If_Write_FS, MEM_If_Read_FS

Am I supposed to write my Flash read/write code into usbd_dfu_if.c function skeletons? Makes sense, but unfortunately there is a big lack of documentation on STM32 APIs, so I better ask.

Thanks in advance

    This topic has been closed for replies.
    Best answer by VictorPr

    Solved. Had to migrate old "Flash_If_xxxx" functions into "MEM_If_xxxx" function skeletons and is working now.

    1 reply

    VictorPrAuthorAnswer
    Visitor II
    September 18, 2020

    Solved. Had to migrate old "Flash_If_xxxx" functions into "MEM_If_xxxx" function skeletons and is working now.