STM32 Dual Core #1. Getting started with STM32 Dual Core CPUs || STM32H745 || How to DEBUG

  Рет қаралды 41,452

ControllersTech

ControllersTech

Күн бұрын

Пікірлер: 101
@grg183
@grg183 Жыл бұрын
I've wasted hours trying to get the dual core configuration and debug to work through official ST documentation unsuccessfully. With your video I've been able to get it working in just a few minutes! Here's a small donation to show my gratitude. Thanks!
@ernestosola-thomas9928
@ernestosola-thomas9928 3 жыл бұрын
You have no clue of how many times you have saved me after I have been tucked for hours, your videos are the best. Every single of them
@nhinguyenvan-6279
@nhinguyenvan-6279 2 жыл бұрын
Hello, thanks for everything you share, very useful for me, I've been following you for a long time. I hope you release more videos in this multi-core programming series
@dragonboss7995
@dragonboss7995 5 ай бұрын
Thank you so much for your video! You saved me another day of looking over forums and such. Thank you so much!
@alimesutince5624
@alimesutince5624 11 ай бұрын
Hello, thank you this video. I have just working dual core debugging. This video is so useful
@wdm_frwrd
@wdm_frwrd 3 жыл бұрын
A very useful video for beginners. I remember when I was looking for information about debugging for this board. Now I figured out the LTDC + FMC SDRAM without BSP and everything works fine, but with eMMC so far I've only worked with an example from ST. Waiting for a tutorial on onboard eMMC 🙂
@ControllersTech
@ControllersTech 3 жыл бұрын
Nice. Were you able to port the touchgfx or stemwin ?
@wdm_frwrd
@wdm_frwrd 3 жыл бұрын
@@ControllersTech An example from ST with stemwin started without any problems, but in my opinion it only works with one core. I also experimented with the Embedded Wizard. But even there, only one core is used.
@ControllersTech
@ControllersTech 3 жыл бұрын
What i mean to ask was whether you did port the stemwin after initialising the hardware through the CubeMX ? I tried that and couldn't succeed, so in the end I had to use the LTDC.
@wdm_frwrd
@wdm_frwrd 3 жыл бұрын
@@ControllersTech Unfortunately I have the same situation. I haven't figured it out completely yet. It might be easier to write my own GUI version. Not for the first time haha
@wdm_frwrd
@wdm_frwrd 3 жыл бұрын
@@ControllersTech By the way, if you are going to try an example for working with eMMC, make sure that all dividers are set correctly. In the example from ST, there is an error there. I spent a lot of time to understand why it doesn’t work for me lol.
@tejaschaudhari3439
@tejaschaudhari3439 6 күн бұрын
Great Video man...Thanks and Keep it Up👍
@adnansayder2148
@adnansayder2148 3 жыл бұрын
Thanks for al videos greetings from Turkey
@ezadeen5837
@ezadeen5837 2 жыл бұрын
you are very very very very good , thank you for this videos ,and your course is easy and simple, I hope that you give us a lot of this videos (((((((thank you controllers Tech))))))))
@clemenseder4090
@clemenseder4090 Жыл бұрын
Thank you for this video. I have tried to replicate your first steps on an STM32H747 and the results are utterly bizarre. I can run both LEDs but only if I start both debuggers, pause them and then resume. However, once I disconnect and press the rest button then they won't flash any longer. It seems that the program is stored in RAM and the debugger did not touch the flash memory. Furthermore, the debugger stumbles across the cache, which I have consequently disabled. Do you have any ideas about what went wrong? I am aware that this is not the forum for asking questions, but that STM32H7 series is really killing me.
@linassturys7746
@linassturys7746 Жыл бұрын
Perfect video, thanks. You set clock as a crystal, but according a schematic it's not a crystal
@ControllersTech
@ControllersTech 11 ай бұрын
It has 25M external oscillator. Check the schematics properly.
@linassturys7746
@linassturys7746 11 ай бұрын
@@ControllersTech Sorry, I forgot to check a BOM file of this board. I've just started to study electronic and a symbol of this crystal doesn't looks like standard crystal. :)
@incxxxx
@incxxxx 3 ай бұрын
Dziękujemy.
@alexbarrett6656
@alexbarrett6656 2 жыл бұрын
I was doing OK until I started debug on the M4. Running stand alone both leds are blinking merrily, but the M4 debug session fails to open after entering the M7 debug session. So far I think I've followed your steps exactly.
@AldoRamo
@AldoRamo 9 ай бұрын
Your video is useful for me, I'm having 1. STM32H747I-DISCO development board, I am usual of ST3M32 ic's and STM32CUBEIDE, but it's my first experienc with dual Core. I think,Ifolow carrefully your LED example. The M7 debug session is going well but the M4 debug session fails to open after entering the M7 debug session. Message Error is Error in final launch sequence: Failed to start GDB server Failed to start GDB server Error in initializing ST-LINK device. Reason: (0) Unknown. Please check power and cabling to target.
@AldoRamo
@AldoRamo 9 ай бұрын
Thanks a lot. I did a mistake. I didn't change the port number for CM4. Very usefull video to start dual core
@pabllolins
@pabllolins 7 ай бұрын
Very helpful video. Thanks a lot for sharing this content.
@yahyaaouledamer1466
@yahyaaouledamer1466 2 жыл бұрын
amazing man
@incxxxx
@incxxxx 3 ай бұрын
May be you know how to reset this STM32H745 to fabric settings? I have made silly thing. I have tried option (RM0399, page 144) - BCM7=0, BCM4=1. In result lost connection with mcu.
@manisrinivas_hyd
@manisrinivas_hyd 3 жыл бұрын
Nice video but bit confusion.No issues will watch again.Thank you brother
@harveynorman8787
@harveynorman8787 2 жыл бұрын
Fantastic tutorial. Subscribing
@johannesholzer1624
@johannesholzer1624 2 жыл бұрын
you are somehow confusing the main.c files for the cores M7 / M4. On the beginning, M7 is on the left side, later you are referring to M4 on the left side and to M7 on the right side, although you didn't swap the IDE's tabs, at least I didn't see that. No idea whether it's a problem but for stepping into this topic it's really confusing
@shettymalnad1978
@shettymalnad1978 Жыл бұрын
i have a STM32H745i dico board in this while linking a ADC with DMA i am stuck here any guidence from your side ??
@chrislinyh
@chrislinyh Ай бұрын
謝謝!
@shettymalnad1978
@shettymalnad1978 Жыл бұрын
Hello i have some doubts please clarify . 1.In data sheet they mentioned 6 SPI's are there all of SPI pins are allocated to some other pheripheral only SPI2 is termninated to use right ? or any other SPI's there to use ???? 2.I want receive DATA contineously from SPI2 Rx to DMA while configuring "no available dma request for this pheripheral " whats the issue i didn't understand please guide me to understand .
@ControllersTech
@ControllersTech Жыл бұрын
1. Same pins can be used by different peripherals, But only one peripheral at a time. So if you do select SPI1, the respective pins will be configured to be used as the SPI pins. 2. Maybe the DMA is not available for the peripheral you are using. Try using another instance, SPI1 or 3. Also I guess you are creating the project with default configuration. you have to clear the pinouts and only enable the things you need.
@pdeepakjayan5515
@pdeepakjayan5515 Жыл бұрын
Can you please explain how to perform aes encryption of the data in stm32f407 which doesn't have a crypto peripheral?
@alexbarkov5304
@alexbarkov5304 2 жыл бұрын
thanks a lot!
@blcouz
@blcouz Жыл бұрын
I don't understand why they no longer manufacture this product.
@ThanhNguyen-xEngineer
@ThanhNguyen-xEngineer Ай бұрын
4:00 Why we need to enable I-cache and D-cache for M7 core ? What is it used for ?
@ControllersTech
@ControllersTech Ай бұрын
For faster processing, Better efficiency.
@ThanhNguyen-xEngineer
@ThanhNguyen-xEngineer Ай бұрын
@@ControllersTech Do we need to consider anything if we enable Icache and Dcache? Such as any risks ?
@ControllersTech
@ControllersTech Ай бұрын
No, but you need to consider the cache coherency while working with cache.
@DownhillAllTheWay
@DownhillAllTheWay 2 жыл бұрын
Where is your FIRST video in this series? I thought this was the first, as the title is "getting started", but I get the impression that just to flash a couple of built-in LEDs, the programming is horrendously complicated, so maybe I need to start at the beginning. What is "Cube?"
@ControllersTech
@ControllersTech 2 жыл бұрын
This video is specific to dual core CPUs, not as a general STM32 Device. If you are just getting started with STM32, cortex M7 is not a good device, as you will not find a lot of resources for it. Better start with F4 series..
@DownhillAllTheWay
@DownhillAllTheWay 2 жыл бұрын
@@ControllersTech Thanks for the advice, but a lot of maths went into the decision to buy this one. The STM32H743 was almost fast enough for my application, and I felt that over-clocking by about 2% would do it. I couldn't find any other pocessor/controller at that time that would do it - though that was 5 years ago, so there may be faster ones now. I haven't looked again. Apart from that, its available memory, and shift register outputs were well suited, though it has a lot more I/O capability than I would need. Since making that comment, I have done some more digging, and I feel that I can tackle it - though I'd be the first to agree that I'm going to spend a long time wrestling with unknowns before they become knowns. I see that there are a lot more videos on the subject since I looked before, so after looking at several, showing several different approaches by different people, I'm feeling more encouraged.
@NRelectronics
@NRelectronics 3 жыл бұрын
Hello. Are your videos compatible with the Discovery kit with STM32H747XI MCU?
@ControllersTech
@ControllersTech 3 жыл бұрын
Read other comments first, then comment if u have doubt.
@NRelectronics
@NRelectronics 3 жыл бұрын
@@ControllersTech thank you very much. Is your main debug stm32h745-discovery?
@ControllersTech
@ControllersTech 3 жыл бұрын
For h7 series, yes.
@23foundation
@23foundation 2 жыл бұрын
What about compatibility stm32h7 mcu and some external usb hs phy chip? Does mcu support usb3300?
@incxxxx
@incxxxx 3 ай бұрын
It works in normal mode forCM7 and CM4. But in debug mode CM4 does not work, it means LED for CM7 works but other LED for CM4 not. What can be the reason?
@ControllersTech
@ControllersTech 3 ай бұрын
Follow the video properly. Specially after building the project.
@incxxxx
@incxxxx 3 ай бұрын
@@ControllersTech Your explanation about debug sessions is extremely unclear and confusing. There's only one person who could understand this, and that's you. Anyway, thank you for your effort. In any case, I would like to express my thanks with a modest donation.
@ShamaSayed-g1f
@ShamaSayed-g1f 7 ай бұрын
Sir could you please help me with STM32 H747I-DISCO Board as how to start with the LCD, how to start the configuration. Please
@ControllersTech
@ControllersTech 7 ай бұрын
Use toucgfx.. easiest way to get it working.
@ShamaSayed-g1f
@ShamaSayed-g1f 7 ай бұрын
Okay Sir, I was trying with Embedded Wizard Studio but couldn't get it@@ControllersTech
@theintjengineer
@theintjengineer Жыл бұрын
Could you please make a video on how to use the STMod+ that comes with this board? I am trying to select of of the pins as PWM output, to control a BLDC Motor, but I am finding it hard to understand what PIN maps to what. For example, it says that PA3 is a PWM signal on the STMod+. How could I use that to control the motor? Thank you.
@ControllersTech
@ControllersTech Жыл бұрын
With this board in particular ? You mean h745 discovery board right ?
@theintjengineer
@theintjengineer Жыл бұрын
@@ControllersTech yes
@ControllersTech
@ControllersTech Жыл бұрын
The pin PA3 is connected to STmod#14. It is mentioned as the PWM pin on the fanout board. You can use that pin.
@bigcatdairy
@bigcatdairy Жыл бұрын
recently I found that h7 series nucleo board's adc is not working with cubeide(for keil either), do u have time to investigate then share the result? many thanks
@ControllersTech
@ControllersTech Жыл бұрын
It works fine. No issues here
@bigcatdairy
@bigcatdairy Жыл бұрын
thank you, let me double check my side@@ControllersTech
@dnyaneshvarsalve2984
@dnyaneshvarsalve2984 Жыл бұрын
Hi, Please mak videos on STM32MP1 DK1 microprocessor development board
@ControllersTech
@ControllersTech 11 ай бұрын
It's very expensive :(
@tiennguyenminh6454
@tiennguyenminh6454 8 ай бұрын
Thank for your sharing!! I use nucleo stm32h745zi-q board. When i followed your tutorial, i encountered an error that i can't debug CM4 after debug CM7. After check video tutorial of ST dual-core, i found that Port number in debugger in CM4 need to be 3 higher than port number in debugger in CM7. Hope you update soon !
@ControllersTech
@ControllersTech 8 ай бұрын
Its already mentioned in the video @10:25
@tiennguyenminh6454
@tiennguyenminh6454 8 ай бұрын
@@ControllersTech oh, sorry for missing that
@nithinraj703
@nithinraj703 Жыл бұрын
Hello. Is it possible to disable the M7 core and deploy code only on the M4? If so, how does the clock config work in this case as the SysClock config is run from the M7 core?
@ControllersTech
@ControllersTech Жыл бұрын
You can disable it after the initialisation is over
@nithinraj703
@nithinraj703 Жыл бұрын
So, M7 has to run SystemClock_Config() and only then can it be disabled? I ran an LED blink example on the M4, keeping the M7 disabled. It was blinking at the expected rate. How did this happen? The SystemClock_Config() didn't get executed even because the M7 core was turned off. Is this because the M4 core was running at 64MHz by default due to the HSI clock?
@nithinraj703
@nithinraj703 Жыл бұрын
So, I configured TIM1 to generate PWM output in the M4 core. M7 core is disabled. I ran the SysClockConfig() call in the M4 core. I did get the expected output frequency. The clock settings are the same as that in this video.
@arunc5429
@arunc5429 2 жыл бұрын
sir, can you tell me from where we can get the schematics for the nucleo-144 board
@ControllersTech
@ControllersTech 2 жыл бұрын
On the ST's website, under the CAD Resources Tab
@arunc5429
@arunc5429 2 жыл бұрын
@@ControllersTech thank you so much, sir
@kumarm1780
@kumarm1780 2 жыл бұрын
St- link V2 will it work for STM32H7 series as debugger?
@ControllersTech
@ControllersTech 2 жыл бұрын
I don't know for sure. As the board i am using have V3. But i think it should be able to work
@avusaa
@avusaa Жыл бұрын
hi, thank you for this explanation, its helped me a lot. Can dual core in stm32h745i-disco communicate each other? and can you make tutorial about it? ive struggled so much with that, thank you :D
@ControllersTech
@ControllersTech Жыл бұрын
Yes i will make a tutorial on it. I keep forgetting that, but i will make it soon this time..
@anujbansal8156
@anujbansal8156 3 жыл бұрын
Your videos are very useful for me, I'm having STM32H745i-disco development board, I need to port toughGFX, please share some videos to configure for touchGFX in cube MX.
@ControllersTech
@ControllersTech 3 жыл бұрын
Wait for ST yo release the support for h745. Or spam them about it.. they already are supporting another dual core board, but not 745 for some reason. In the mean time you could use lvgl though. If you want i can upload it on my github..
@shettymalnad1978
@shettymalnad1978 Жыл бұрын
Hello,i am also having the same board i am facing the problem linking DMA to ADC if have any idea to guide me ??
@SuperBiggestking
@SuperBiggestking 3 жыл бұрын
Would this work for the stm32h747 disco board (a very similar board)? I will try it out now
@ControllersTech
@ControllersTech 3 жыл бұрын
Yes ofcourse it will.
@SuperBiggestking
@SuperBiggestking 3 жыл бұрын
@@ControllersTech It did! thanks
@Saranbabu05
@Saranbabu05 3 жыл бұрын
Your videos are very useful for me, I'm having STM32H747 development board, I need to port toughGFX, please share some videos to configure for touchGFX in cube MX. Please explain, how to configure the external flash to store the touchGFX program.
@ControllersTech
@ControllersTech 3 жыл бұрын
download the new touchgfx (4.17). It supports H747
@Saranbabu05
@Saranbabu05 3 жыл бұрын
@@ControllersTech Thank you will check, but I'm expecting your video regarding touchgfx because it will help me to understand quickly.
@ShamaSayed-g1f
@ShamaSayed-g1f 8 ай бұрын
Same method applies to STM32H747 board too
@ControllersTech
@ControllersTech 8 ай бұрын
Yes
@ShamaSayed-g1f
@ShamaSayed-g1f 7 ай бұрын
Okay Sir, Thank You@@ControllersTech
@maivananh1431
@maivananh1431 3 жыл бұрын
can you do project about stm32f1 read .bmp or jpeg file from sd card with spi and display it on lcd tft. How to read data from image file and display it. thanks bro.
@sergiocruzgonzalez4217
@sergiocruzgonzalez4217 3 жыл бұрын
Hello many congratulations on your videos, I am your biggest fan, greetings from Mexico, your tutorials are the best I understand them perfectly for my projects, I see that you are using a Discovery, I hope that in the future there will be a video where you use free software TouchGFX I would like to see how you use it and programs in that Discovery, by the way, I really loved your tutorial on the NRF24L01 module, could you research something about the XBEE module? I currently use those but I still have a long way to go, there are communication modes in them, the famous transparent mode and the API, hopefully, in the future, you can also do a tutorial of them since it is difficult to find a good one on KZbin, greetings and I send you a big hug, you are cool!
@ControllersTech
@ControllersTech 3 жыл бұрын
As per the current scenario, touchgfx doesn't support the dual core processors. So I have to wait until they release a support for these boards. Although i will publish another video making use of LTDC for the LCD. Xbee is costly, and to be honest, I won't be buying them. So no videos on Xbee. Atleast not in the near future.
@glubschproductions9236
@glubschproductions9236 3 жыл бұрын
@@ControllersTech Thanks for this very useful video. I just switched from ATMEL to STM and there's a steep learning curve, so your video was quite helpful. It appears there is a way to get touchGFX up and running on the STM32H745 DISCO board. If you search for "touchgfx on stm32h745" in google, you'll find a couple of working examples.
@navaneethkumargatla2750
@navaneethkumargatla2750 2 жыл бұрын
Please help me out from how to flash or program and run two cores in stm32h745zi using keil
@ControllersTech
@ControllersTech 2 жыл бұрын
No idea about keil. ST don't provide details regarding that ( atleast i couldn't find it )
@navaneethkumargatla2750
@navaneethkumargatla2750 2 жыл бұрын
Thanks for your reply and if you get any further information please post the videos @@ControllersTech
@xairan_7836
@xairan_7836 Жыл бұрын
English is not my native language, please make sure to change your voice bot, the "ooo" specific to it at the end of words (like at 16:27) annoys me It seems like it wanted to say "call", but I have heard "cooo"
@ControllersTech
@ControllersTech Жыл бұрын
It says 'core', that's British and sorry I can't change itt. Also there are subtitles. Google can literally generate it in any laguage you want.
@xairan_7836
@xairan_7836 Жыл бұрын
@@ControllersTech , Thanks
STM32 Guide #2: Registers + HAL (Blink example)
30:02
Mitch Davis
Рет қаралды 207 М.
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 69 МЛН
amazing#devil #lilith #funny #shorts
00:15
Devil Lilith
Рет қаралды 18 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 39 МЛН
“Hello, world” from scratch on a 6502 - Part 1
27:25
Ben Eater
Рет қаралды 4,8 МЛН
STM32CubeIDE Programming, Debugging, and Running
15:20
Sean Kennedy
Рет қаралды 39 М.
КАК УСТРОЕН TCP/IP?
31:32
Alek OS
Рет қаралды 208 М.
КАК НАЧАТЬ ПОНИМАТЬ LINUX (2024)
21:10
PLAFON - Канал о линуксе
Рет қаралды 211 М.
How to Select the Best STM32 Microcontroller for Your Project
21:37
Predictable Designs
Рет қаралды 13 М.
Using I2C for any device on STM32 with HAL | VIDEO 26
37:51
Matej Blagšič
Рет қаралды 79 М.
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 69 МЛН