STM32H7 ADC + DMA + Timer Firmware Tutorial - Phil's Lab #138

preview_player
Показать описание

[SUPPORT]

[GIT]

[SOCIAL]

[LINKS]

[TIMESTAMPS]
00:00 Introduction

02:34 PCBWay

03:05 Hardware Overview
05:36 ADC Considerations

07:54 ADC Config
14:06 DMA Config
15:28 Timer & Clock Config

19:35 Firmware Implementation
22:41 ADC Callback

25:19 Demo

27:07 H7 Caches, MPU, Linker Script

32:34 U5 DMA, Power Domains

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

As is often the case with stm32 materials, one must read hundreds of pages of datasheets and application notes to understand what yo have covered in 14:21 mins. Brilliant tutorial, thank you!

duke_of_oz
Автор

I've been looking for a tutorial on H7 ADCs for a while now, perfect timing with a new project!!
your content is a literal goldmine and is getting so many of my friends into the embedded world

mylo_calibre
Автор

Funny, I was ripping my hair apart the past week trying to figure this out for a school project. Just when I thought all hope was lost, our lord and savior Phil descends from the heavens.

I truly can't thank you enough Phil, your videos make my life so much easier!!!

ericmin
Автор

Loved the MPU wenthrough. Really nice and clear explanation. Tweaks in mpu really handy when you play around with dma and peripherals!
Thanks!

pantelisEVs
Автор

Fantastic and concise explanation of how to implement the MPU and ADC. Thanks very much.

JohnCrombie-eqxj
Автор

This video was the best stm32 tutorial for a stm32 beginner like me. I followed your instruction with my stm32f103 and it worked like a charm and for the first time with stm32, I didn't face any issues while programming. huge thanks for making such a content.

samanmoghanloo
Автор

Good stuff! The H7x5/H7x3 series of this chip is a monster at 520MHz (550Mhz if you're willing to disable ECC). Though with that comes some nutty power domain complexity... Much more involved than the G4 series.

DrTimmay
Автор

The section about H7 caches, MPU, and linker scripts helped me overcome a horrible DMA bug at work today - thank you for the excellent worked example Phil. Super helpful.

nicktyler
Автор

This video is something I needed!!
I'm developing a VA synthesizer. I started development on Disco-F407 where I was able to run 4 voices, 16bit 44.1kHz. Then I moved to Nucleo-H723, cause I don't need a dual core uC for it. And there mayhem started...
It did not matter how well I would optimise code, it barely handled 5 voices. Then I saw yesterday that on this ARM core I have to enable caches to get a full speed of this core. I did it for I-cache as D-cache broke my DMA transfer to DAC. But thanks to your video I was able to enable and properly configure MPU to have D-cache enabled too. With I-cache lone it ran 7 voices (decent), but now it runs at least 12 voices (maybe more, did not test yet and I would like to have some spare cycles for FXes and modulation buses), so I'm pretty satisfied :)

Your channel kickstarted my interest in embedded DSP along with some books about writing softsynths. Now I have the power!!! :D

Krzychu-bhrl
Автор

Can't thank you enough for your content Phil! With your series of videos, one like myself can work on a complete DSP design based on a H7 core. Appreciate your work mate!!

rigolab
Автор

I have just done the same things but a with an STM32F4; ADC + timer + DMA to sample ultrasonic sounds from bats, up to 115Khz, so a sample rate of about 240KHz. Then in real time do the FFT to identify the peak frequencies, draw an spectrogram, etc. I was just fighting with each and every of those settings in the cubeide 🙂, but it works very well.

gosdeCarrer
Автор

Hahah I was already trying to design a stm32h7 board, and you upload this, perfect timing <3

andy-bandy
Автор

24:00 I always like to reinforce the idea of using the slope intercept formula to convert the ADC to pretty much any value you need. I haven't done any graphing whether the output is exactly linear, but I feel it is a good approximation. Your explanation is perfect and thoroughly enjoyed the video.

PatrickHoodDaniel
Автор

My bro, u have knowledgw then even AI can't compete. Take this W

brunoandre
Автор

Amazing video as usual, also looked at your previous DSP videos to learn more about dsp algos and DMA, as I recently got an project related to DSP so started to get more involved into it. Keep uploading videos like these really help full.

EmbeddedEnigma
Автор

Great example, I've been following your videos for some time. So far I've been able to set up and program my custom board to interact with an I2C sensor and send data through USB com port!

bubbasplants
Автор

Thank you for the content. Please never stop doing videos!

severingetzner
Автор

Man, I reallt could've used this in some previous projects. Thanks a million as always.

markhofmeister
Автор

Thx for another great video. I am working with AVR stuff(SAM) but i want to use DMA in the future. This gave me a better understanding on how the concept of DMA basically works. Have a nice weekend! <3

blackxiivexil
Автор

That cap in the potentiometer circuit is more than just a low pass filter. These converters are capacitive ladder and draw a spike of current / charge when they sample. The cap is a cheap easy way to provide this charge and eliminate a strange error you will see otherwise, as long as you can live with your chosen cutoff frequency.

ChiefBridgeFuser
visit shbcf.ru