How to configure DFU from Cube MX
Hi to all,
I want to configure DFU to create a USB bootloader for STM32F401RE (I need to understand it on this hardware for future implementation on different MCU). I have some questions.
I configure CubeMX as the .ioc file attached.
The main settings are:
USBD_DFU_APP_DEFAULT_ADD = 0x08008000
USBD_DFU_MEDIA Interface = @Internal Flash /0x08000000/02*016Ka,02*016Kg,01*064Kg,03*128Kg
my main.c and usbd_dfu_if.c are attached.
I installed en.stsw-stm32080.
When I connect the STM32F401 to PC, Windows 10 recognize the device (enumerated as "STM32 DownLoad Firmware Update") but in DeFuSe Demo v3.0.6 I don't see any device available.
1) What can be the problem ?
Setting Application firmware.
First I compile th application after change th linker lik this
FLASH (rx) : ORIGIN = 0x8008000, LENGTH = 512K
Then I have to generate a .dfu file using "Dfu File manager":
VID and PID are ok, I get them from CubeMX, but
2) what do I put in Version and Target name?
After this, once "Multi BIN" has been opened,
3) what value should be entered in "Address 0x"?
I can't find any information about this questions, and watch example doesn't helped me.
Thanks for you answers.
