2021-01-02 12:13 AM
Hi all,
An LED is connected as below.
PA1 --- Resistor --- LED --- 3.3V
Build test.bin from source code shown below using STM32CubeIDE.
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_1);
HAL_Delay(200);
}
Create test.dfu from the test.bin.
Connect a board to PC via USB, and "STM Device in DFU Mode" appears in Device Manager.
Try to upgrade the test.dfu into the board using DfuSeDemo.
A message "Your device was plugged in DFU mode. So it is impossible to make sure this file is correct for this device." pops up.
Click "YES."
A message "Upgrade successful !" is shown.
Disconnect USB from the PC, connect BOOT0 to GND and re-connect USB to the PC.
An LED blinks with an interval of 2sec. Which maybe a demo exe pre-installed. So, it seems to fail to install my program.
Could anybody tell me solution?
Thank you.
Solved! Go to Solution.
2021-01-02 04:47 AM
Thank you.
It works well with *.dfu created from *.hex.
And, *.hex can be created under settings as below.
2021-01-02 02:01 AM
Create your dfu from hex, not from bin.
2021-01-02 04:47 AM
Thank you.
It works well with *.dfu created from *.hex.
And, *.hex can be created under settings as below.