Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 4 months ago.
The "Unknown Device"
Hi, My board is STM32F407VET6 black board. The mbed program runs on the MCU correctly, but a message "Unknown Device" appears in the "Device Manager". I can not "drag and run" the .bin to the board because of the "Unkonwn Device" problem, I have to use the software "STM32 Flasher" to burn the .bin file to STM32F407.
Is there any way to fix this problem?
P.S. My OS is Win7-64bit. The simple test code is:
/////////
- include "mbed.h"
DigitalOut led1(PA_6);
extern serial_t stdio_uart;
extern int stdio_uart_inited;
int main() {
serial_init(&stdio_uart, PA_9, PA_10);
stdio_uart_inited = 1;
int i=0;
while(true)
{
printf("%d\n",i++);
wait(1);
led1 = !led1;
}
}
1 Answer
5 years, 4 months ago.
Hello Wang,
Chapter "Programming the STM32F407VET6 board" at https://os.mbed.com/users/hudakz/code/STM32F407VET6_Hello/ shows how to connect a "NUCLEO ST-LINK/V2-1" programmer to your board which then allows to utilize the "drag & drop" method. It works for me fine on Windows 7 and Linux (Ubuntu 18.04).
NOTE: To get your code formatted in the question above try to enclose it with tags as below (each on separate line)
<<code>> source code of your program <</code>>
Hi, Hudak, thank you for replying. My stlink is v2, not v2-1, according to the description you kindly provided, only v2-1 generates visual disk, so the way to burn bin file is that using stm32 flasher if v2 on hand. And it is very kind of you for telling me how to format the code. Best regard.
posted by 04 Apr 2019