STM32ProgrammerCLI + External Loader + USB DFU problem
Hi,
I have a project with an external loader. When programming using ST-LinkV2 (SWD) it works perfectly with CubeIDE or the STM32Programmer CLI.
When trying programming the same ELF file using USB DFU connection, I get the following message, and the program exits:
"c:\program files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" --connect port=usb1 --extload "C:\Repos\External Loader\N25Q128A_STM32F7.stldr" --download "Controller.elf" --skipErase -vb 3
-------------------------------------------------------------------
STM32CubeProgrammer v2.9.0
-------------------------------------------------------------------
Device Descriptor:
|_bLength : 0x12
|_bDescriptorType : 0x01
|_bcdUSB : 0x0100
|_bDeviceClass : 0x00
|_bDeviceSubClass : 0x00
|_bDeviceProtocol : 0x00
|_bMaxPacketSize : 0x40
|_idVendor : 0x0483
|_idProduct : 0xdf11
|_bcdDevice : 0x2200
|_iManufacturer : 0x01
|_iProduct : 0x02
|_iSerialNumber : 0x03
|_bNumConfigurations : 0x01
Configuration Descriptor:
|_bLength : 0x09
|_bDescriptorType : 0x02
|_wTotalLength : 0x36
|_bNumInterfaces : 0x01
|_bConfigurationValue : 0x01
|_iConfiguration : 0x00
|_bmAttributes : 0xc0
|_bMaxPower : 0x32
Interface Descriptor Alternate Settings: 0x00
|_bLength : 0x09
|_bDescriptorType : 0x04
|_bInterfaceNumber : 0x00
|_bAlternateSetting : 0x00
|_bNumEndpoints : 0x00
|_bInterfaceClass : 0xfe
|_bInterfaceSubClass : 0x01
|_bInterfaceProtocol : 0x02
|_iInterface : 0x04
Interface Descriptor Alternate Settings: 0x01
|_bLength : 0x09
|_bDescriptorType : 0x04
|_bInterfaceNumber : 0x00
|_bAlternateSetting : 0x01
|_bNumEndpoints : 0x00
|_bInterfaceClass : 0xfe
|_bInterfaceSubClass : 0x01
|_bInterfaceProtocol : 0x02
|_iInterface : 0x05
Interface Descriptor Alternate Settings: 0x02
|_bLength : 0x09
|_bDescriptorType : 0x04
|_bInterfaceNumber : 0x00
|_bAlternateSetting : 0x02
|_bNumEndpoints : 0x00
|_bInterfaceClass : 0xfe
|_bInterfaceSubClass : 0x01
|_bInterfaceProtocol : 0x02
|_iInterface : 0x06
Interface Descriptor Alternate Settings: 0x03
|_bLength : 0x09
|_bDescriptorType : 0x04
|_bInterfaceNumber : 0x00
|_bAlternateSetting : 0x03
|_bNumEndpoints : 0x00
|_bInterfaceClass : 0xfe
|_bInterfaceSubClass : 0x01
|_bInterfaceProtocol : 0x02
|_iInterface : 0x07
Functional Descriptor :
|_bLength : 0x09
|_bDescriptorType : 0x21
|_bmAttributes : 0x0b
|_wDetachTimeOut : 0xff
|_wTransferSize : 0x0800
|_bcdDFUVersion : 0x011a
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : STM32 BOOTLOADER
SN : 00000008FFFF
FW version : 0x011a
Board : --
Device ID : 0x0449
DFU status = 0
DFU State = 9
Status: 0, State: 9
sending an abort request
DFU status = 0
DFU State = 2
setting the address pointer to address: 0x08000000
data: 2100000008
DFU status = 0
DFU State = 4
DFU status = 0
DFU State = 5
data: 2100000008
Loading Secondary Boot Loader into RAM
Loading Secondary Boot Loader into RAM ...Does someone have any idea what went wrong? It looks like the external loader fails to load over USB DFU connection, but no error message is shown.
Any help will be appreciated,
Roy
