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.
10 years, 9 months ago.
If I use this board,do I need to install some usb driver on my computer?
As the topic~ If not, how can I use my own develop(designed by myself ) board to download my program?
Question relating to:
2 Answers
10 years, 9 months ago.
Yes, you need to install the ST-Link driver
The debugger on the board can be connected to you application SWD port (CN4) after removing the jumpers on CN2.
The debugger can be separated from the target part of the nucleo board (breakable slit)
For programming, just drag and drop the binary to the detected usb drive...
I've read the illustration of mbed ,I think I need the "DAP" program of ST for IAP,but I didn't find it ,I only found that of LPC.
posted by 03 Mar 2014I am not sure I understand what you need.
st-link driver allows connection to debuggers and programmers on the PC.
many ST and third party software (programmers, IDE, debuggers) are supporting stlink provided that this driver is installed. Some of them are free to use.
The one on the nucleo boards also implement a virtual com port for debugging during mbed development, this driver is installed at the same time.
The one on the nucleo boards also implement mass storage implementation that allows programming with a drag and drop: for this one no driver is needed.
there is no DAP program for st-link that I know about...what would you need that for?
posted by 04 Mar 2014Actually, I want to download program to my own board via a usb line.drag and drop is a good choice ,but I need to design anadditional ST-Link circuit . The circuit use a onboard interface to connect usb line to swd and uart ,it cost more~ But if I use LPC serial chip ,I don't need to build that circuit ,because the circuit is built in the chip . But saddly I am more familiar with ST micro controler ...
posted by 04 Mar 2014then what you need is not a debugger but the bootloader:
The document shows that the feature is available for STM32L152 on the nucleo-L152RE supports it from the RM0368, reference manual for the STM32F401 we can see it is available for the 401 too:
Quote:
RM0368
Embedded bootloader
The embedded bootloader mode is used to reprogram the Flash memory using one of the following serial interfaces: USART1 (PA9/PA10)
USART2 (PD5/PD6)
I2C1 (PB6/PB7)
I2C2 (PB10/PB3)
I2C3 (PA8/PB4)
SPI1 (PA4/PA5/PA6/PA7)
SPI2 (PB12/PB13/PB14/PB15)
SPI3 (PA15/PC10/PC11/PC12)
USB OTG FS (PA11/12) in Device mode (DFU: device firmware upgrade).
The USART peripherals operate at the internal 16 MHz oscillator (HSI) frequency, while the USB OTG FS require an external clock (HSE) multiple of 1 MHz (ranging from 4 to 26 MHz). The embedded bootloader code is located in system memory. It is programmed by ST during production. For additional information, refer to application note AN2606.
keep in mind that there is no debugging feature in the bootloader. I would recommend to connect your nucleo stlink to the swd of your application to simplify your life. you don't need an stlink in your application only 5 or 6 pins (depending if you use trace or not) UART is not needed, it's for debug using a terminal on the PC.
posted by 04 Mar 201410 years, 9 months ago.
Yes and no. If you use mbed only, then you can use the mass storage drive for drag & drop, that doesn't require any driver (native ones being used)
If you want to go beyond and use virtual com port or STLink debug part, you'll need to install the drivers, as said by Maxime above