STM32 Board Bring-Up (Firmware and Test) - Phil's Lab #54

preview_player
Показать описание
Basic board firmware bring-up of the 'new' LittleBrain++ PCB featuring an STM32F4 microcontroller, sensors, and USB. How to write simple test firmware (I2C, USB), set-up STM32CubeIDE, and transfer data from a schematic to software.

[SUPPORT]

[LINKS]

[USB CDC CODE]
After include statements:
static uint8_t lineCoding[7] // 115200bps, 1stop, no parity, 8bit
= { 0x00, 0xC2, 0x01, 0x00, 0x00, 0x00, 0x08 };

in CDC_Control_FS:
case CDC_SET_LINE_CODING:
memcpy(lineCoding, pbuf, sizeof(lineCoding));
break;

case CDC_GET_LINE_CODING:
memcpy(pbuf, lineCoding, sizeof(lineCoding));
break;

[TIMESTAMPS]
00:00 Introduction
00:35 First Steps

01:40 Tag-Connect SWD Programming Header/Connector

02:24 JLCPCB and GitHub Repo
03:00 Altium Designer Free Trial

03:16 Hardware Overview
04:59 STM32CubeIDE Basics
05:59 Pinout
08:14 Clock Configuration
09:15 Programming and GPIO (LED) Test
12:08 I2C #1 (Inertial Measurement Unit)
16:58 I2C #2 (Pressure Sensor)
19:11 USB (Virtual COM Port)

23:14 Outro

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

Yes, yes, more little brain! I love how you get into the hardware and firmware without any fluff. Very direct and practical.

Eldon_Dice
Автор

Thank you so much. In 23 minutes you get idea about pcb and firmware.
Thank you for sharing.

havetechshreekrishna
Автор

As usual amazing content Phil!
Just an additional thing I would like to add if I was designing the board is the provision to toggle the BOOT0 pin so that I can use the internal USB DFU to update the firmware through the USB without opening the device enclosure.

sumantkhalate
Автор

Good work as usual, I follow your pcb and firmware guides and so far made a couple customs boards that work. Keep up the good work

rraheem_p
Автор

Just came across your video, and I thank you for this eloquent explanation of Board Bring-Up. Many thanks!! 👍👍👍

michaeljohnson
Автор

I like that tag connector, that 's cool as!

JamesEggleston
Автор

Very good video. Please upload more such videos ☺️

xrayonthemove
Автор

The first thing I do with a new board design straight from fab?
Power it up with a current limiting power supply and make sure all the LEDs light up.
Flash it with the head of master and run the entire feature set.
Done

KerbalLauncher
Автор

Cool vid. Still waiting for my STM chip to be available but lead times are a year plus because the events of the world, and just feeling too lazy to redesign around a new chip.

TheCoolest
Автор

Just came across this video. Great work, clear and practical as always. How did you find out how to get the USB Virtual COM Port working? I watched an older video I think for a previous version of the Little Brain and configured the USB Virtual COM Port for a board I just got from JLCPCB using the STM32F411re. It wasn't working and I thought I made a mistake in my board. But it was the software, with your tips, it's working just fine. Thanks.

CarlosVillegas-tq
Автор

Thanks for these great tutorials phil !
How can I program the stm32f4 of my custom board which has only one usb type c connector ? I do have an st-link v2 programmer but is there a way to connect the jtag on the st-link/v2 to usb c ?

mathssoso
Автор

hi @PhilsLab thank you very much for your clear and effective tutorials. So clear to convinced me to explore the feasibility of designing a basic STM32-based custom board. Unfortunately, before going to manufacturing, I'm still unsure about a few things, so I would like to submit you some questions about. How can I get in touch with you? Thanks!

ffxx
Автор

any plans on making a video regarding creating drivers for gyroscope which u are using in PCB ?

EmbeddedEnigma
Автор

Brings back memories... I was using CooCox IDE back in 2017 which was a pain in the ass. I discovered CubeIDE and it was much better workflow.

thekaduu
Автор

Nice video, thanks! How about putting the preliminary code, which you just wrote to bring up the board, into a self-test function?

christianmollenberg
Автор

I have designed a custom board using stm32f730 and I've enabled USB virtual COM port, and my computer recognizes the IC when I plug in the USB cable but says driver error...I tried every thing...doesn't work.

aravindsivasubramaniam
Автор

Truely Amazing Classes ! Is there any chance to export your design (schematic and PCB) to KICAD format ?

qbitsday
Автор

how much was your current consumption when powered up initially?

gunlee
Автор

Thanks for another great video. Where are you finding stm32f4 chips in stock?

Kyle-vqqt
Автор

Hi, Phil, how long took you to master PCB Embedded Programming because your the one(Videos) who inspire me in these fields.

karama