Skip to main content
DHinge
Associate
August 19, 2020
Solved

STM32F411EDISCO - USB Device example

  • August 19, 2020
  • 5 replies
  • 2202 views

Hi

I bought STM32F411E DISCO board for project and want to develop a custom USB Device for communication with PC

I need some information on following

  1. How to use STM32CUBE software (IDE, Complier) with this board
  2. Where is Embedded software and libraries for this board
This topic has been closed for replies.
Best answer by EJOHA

Please read the new STM32CubeIDE user manual to learn about IDE, Compiler, projects etc. It is available here:

https://www.st.com/resource/en/user_manual/dm00629856-description-of-the-integrated-development-environment-for-stm32-products-stmicroelectronics.pdf

The Information Center in the product includes most other manuals and links to product information.

You can download the firmware from ST web site or if you have created a project for STM32F411 in STM32CubeIDE you will find the fw downloaded in the Firmware installation repository. Look into 

Preferences -> STM32Cube -> Firmware updater in STM32CubeIDE to find the repository location. 

I found this USB example in the fw. 

C:\Users\name\STM32Cube\Repository\STM32Cube_FW_F4_V1.25.0\Projects\STM32F411E-Discovery\Applications\FatFs\FatFs_USBDisk

5 replies

EJOHA
EJOHABest answer
Associate
August 20, 2020

Please read the new STM32CubeIDE user manual to learn about IDE, Compiler, projects etc. It is available here:

https://www.st.com/resource/en/user_manual/dm00629856-description-of-the-integrated-development-environment-for-stm32-products-stmicroelectronics.pdf

The Information Center in the product includes most other manuals and links to product information.

You can download the firmware from ST web site or if you have created a project for STM32F411 in STM32CubeIDE you will find the fw downloaded in the Firmware installation repository. Look into 

Preferences -> STM32Cube -> Firmware updater in STM32CubeIDE to find the repository location. 

I found this USB example in the fw. 

C:\Users\name\STM32Cube\Repository\STM32Cube_FW_F4_V1.25.0\Projects\STM32F411E-Discovery\Applications\FatFs\FatFs_USBDisk

DHinge
DHingeAuthor
Associate
August 21, 2020

Thanks, it helps a lot.

Just wondering is there any sample example for STM32F411E - DISCO board with debug print and ST-LINK debuger or something similar

EJOHA
Associate
August 25, 2020

I do not have any specific examples with the STM32F411E-DISCO board displaying debug using printf.

However the UM contains common info on how to use printf redirected to ITM. It works with ST-LINK GDB server.

Another way that can be used with OpenOCD and ST-LINK is based on semihosting. In that case the rdimon library needs to be included in the project and initialise_monitor_handles() needs to be called. There is no STM32 example based on this but there are several description on internet on how to use it with OpenOCD.

DHinge
DHingeAuthor
Associate
August 25, 2020

Thanks EJOHA, I am using ITM for now, it is not reliable but suffice for my work.

Secondly, I am searching for Secure DFU and Secure Boot loader for STM32F411 for my products that may get deploy in fields

Requesting you please share any information releated to Secure DFU and Secure Bootloader. Appreciate you help!

EJOHA
Associate
August 25, 2020

Information regarding STM32 Secure DFU and Bootloader is available on ST web site. Please open new forum question if needed.