![]() Beneath the Nucleo board is the SD card socket. Overview of the breakout board with USB connector. You can also use the FATFS to access the SD card. That is, if you connect a USB flash drive, you can access its contents using the FATFS library. The code also works as a HOST for Mass Storage Devices. If after 3 seconds don’t happen nothing, remove the usb cable of your NUCLEO from the PC, wait 3 seconds and reconnect it to the PC. From the new page that appear select: Device Connect (see below). Second open STLINK-UTILITY and select: ST-LINK -> Firmware update (see below). That is, in DEVICE mode, your Nucleo will become a generic USB storage device when connected to the USB port of your computer. First you must install on your PC the STLINK-UTILITY. So, this post is about of programming a Nucleo-F401RE board to use the STM32F401RE USB peripheral as a DEVICE Mass Storage Class with SDCARD (connected with 4bit SDIO interface) as the media. Most of the codes you will find spread in other examples and libraries. I believe that (at least these days) you will not find another internet site with all the stuff I'm posting here in one place. This post is a result of several hours of hard work, thinking, planning, trial-and-error, debugging, and searching the internet for working code in order to make the USB peripheral of a STM32 act as an USB device (mass storage) and HOST (mass storage too). Comparison of NUCLEO board with Arduino UNO and Arduino TWO. The demo code is hosted at my GitHub account: Finally we have an RTC with integrated calendar and full-speed USB 2.0 port that can operate not only in the traditional device mode, but also in host mode (OTG), or allowing the micro to communicate with USB devices such as mice, keyboards, storage devices and other. Proceed with the default binary settings on the first page: On then next page select the ARM toolchain. ![]() Serial used is USART2 that is connected in STLINK V2-1 and becomes a Virtual Serial Com port when STLINK is connected. Select File->New->Project and select the Embedded Project Wizard from the VisualGDB wizards. ![]() Using a mutex to avoid conflicts with two tasks sharing the serial. When the user press the button a string is printed in serial. NUCLEO-F401RE - STM32 Nucleo development board for STM32F4 series - with STM32F401RE MCU, TQFP64 package, it includes an ST-LINK/V2 embedded debug tool. The second task is used to handle the user button switch press event. One of them flashes the LED and prints a string with a counter in serial every second. I creaded a small demo for testing the BRTOS (Brazilian Real-Time Operating System) in my Nucleo board with Coocox COIDE and ARM GCC.īRTOS is a lightweight preemptive real time operating system designed for low end microcontrollers.Ĭheck more info about clock config for NucleoF401 in this post.įlash Prefetch enabled and 2 wait states (minimum for 84MHz and 3.3V).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |