Programming the Adafruit Feather STM32F405 Express with STM32CubeIDE - Maker.io

preview_player
Показать описание
Adafruit released a new Feather Express board based on the STM32F405 microcontroller. Adafruit will focus on CircuitPython with the new board, but with all the time we spent using STM32CubeIDE, we just had to try programming it with C!
In this tutorial, we’ll create a quick blinking LED example and upload it to the board using the built-in DFU bootloader. That will require using the dfu-util tool, and if you’re on Windows, you’ll need to install the WinUSB driver via Zadig.
From there, we’ll create a simple temperature logger. The Feather STM32F405 Express has a built-in SD card and STEMMA-QT connector, so we’ll take a reading from a PCT2075 sensor over I2C, print it out over the virtual serial port (USB), and log it to a file on the SD card.
Finally, we’ll use the test points on the back of the board to break out the SWD debug port. That will allow us to perform step-through debugging operations on the board.

WRITTEN TUTORIAL
If you would like to see the steps performed in this video in written form along with the code, please see the tutorial here:

ADDITIONAL RESOURCES

Рекомендации по теме
Комментарии
Автор

Man, these are just fabulous. Shawn puts a LOT of work into these. I love the speed he works at. You can kind of soak it all in at a high level, then go back and drill down where you need to,
Thanks, Shawn! (And DigiKey)

saustin
Автор

As others have commented, tremendous amount of information clearly and articulately presented. I love the pace and style, thank you!

leestephens
Автор

Excellent video. Why can't everyone have such a clear and precise presentation manner. Awesome. Keep it up.

Graham
Автор

Thanks Shawn for covering debugging with the ST_Link V2 - I needed help with that. Keep up the STM32 videos, they are awesome!!

scottybites
Автор

Very clear and detailed information. 👍👍👍👍👍

lucvanhove
Автор

Great Video- another reason I'm glad I buy all my parts from D-K. I initially found ST32CUBE IDE hard to understand and moved to Mbed on-line IDE, which is very easy to use. However, once you get into more complex programs, it looks like all of the firmware available in ST32Cube will come in handy. These videos help a lot.

bmillier
Автор

I ordered the board from Digi-Key! Thanks Shawn for your great tutorial!

kaypope
Автор

Awesome, I can't wait for these to be released. Thanks Shawn!

spacewolfjr
Автор

Wow, so much information to absorb in such a short video....

Graham
Автор

3:13 DON'T forget to select DEBUG in SERIAL WIRE, If you leave it like that, it will desconfigure the microcontroller and have to erase the micro with STM32CubeProgrammer

alexcesarpalma
Автор

Excellent video. Keep up the good work.

Graham
Автор

Thanks for the video! A ton of useful info in here :)

ciseli
Автор

St Provides a Direct Bootloader Utility. Which just works.

naasikhendricks
Автор

ST has the 'StM32 Cube Programmer' that gives you a GUI to upload code via DFU instead of CLI.

LOLWUT
Автор

Wouldnt it be easier to just buy an esp32 or esp8266? Arduino is so easy to program.

greyhnd
Автор

Unfortunately, I couldn't get mine to work at all. I followed almost all of your steps except for: (1) I am debugging using STLink, (2) my maximum and minimum sector sizes were set to 1024, because that's the lowest setting I can format my SD card to. The problems I'm seeing are: (1a) my system doesn't recognize the mcu as virtual com port after loading the software, (2a) SD card functionality did not work i.e. it did not create a file in the directory at all... Any help troubleshooting this would be very much appreciated! I tried replying to your tutorial on digikey, but the site would let me leave a comment...

broccolee
Автор

Awesome I just bought this feather and I need C plus I have code for the Waveshare RGB OLED that I have..Thank you Shawn. I don't want to use circuit python for my project

kevinwaite