cancel
Showing results for 
Search instead for 
Did you mean: 

usbd_dfu_if.c

VictorPr
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
VictorPr
Associate II

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

View solution in original post

1 REPLY 1
VictorPr
Associate II

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