Step-by-Step: STM32 Development Environment with OpenOCD and Visual Studio Code (Windows)

  Рет қаралды 14,457

Eka Susilo

Eka Susilo

Күн бұрын

Пікірлер: 51
@NewGuardHacker
@NewGuardHacker Жыл бұрын
Great tutorial! Thank you for making this.
@danielsolis5444
@danielsolis5444 Жыл бұрын
thank you for this, great tutorial
@muhammadzaid308
@muhammadzaid308 9 ай бұрын
Made life so much easier
@s.h7124
@s.h7124 Жыл бұрын
Dannnnnng you the man what the hell I was looking for this Please make for window 11 step by step
@ekasusilo
@ekasusilo Жыл бұрын
Glad it helps! The steps are the same for Windows 11. At least I didn't see any issue when I tried it from my end.
@s.h7124
@s.h7124 Жыл бұрын
@@ekasusilo sorry i dint see in video how to download python3 , couldnt install it since doesnt exist pacman -S pythone3 file not found how do i download it and point it please let me know
@ekasusilo
@ekasusilo Жыл бұрын
@@s.h7124 I notice you wrote `pythone3` instead of `python3`? That might explain why it does not exist?
@s.h7124
@s.h7124 Жыл бұрын
@@ekasusilo you the man ! What an eye you have love you man if I see I’ll kiss you on your forehead peace ☮️
@mohinderkaur6671
@mohinderkaur6671 2 жыл бұрын
Great tutorial! very helpful! Thanks!
@ekasusilo
@ekasusilo 2 жыл бұрын
Glad it was helpful!
@arunbennett9248
@arunbennett9248 4 ай бұрын
Just wanted to know how exactly he gave the config files for the json (@24.00). Is there any tutorial / document to understand that?
@RadioTexnik
@RadioTexnik 2 жыл бұрын
Great manual! Thank you!
@ekasusilo
@ekasusilo 2 жыл бұрын
Glad it was helpful!
@djoonkdjoonk7431
@djoonkdjoonk7431 6 ай бұрын
Hi I have problems like "the editor could not be opened because the file was not found". How can this be solved? Thanks for the answer
@matt_0f_all_steams435
@matt_0f_all_steams435 2 ай бұрын
Is there a reason you chose the zip file instead of running the executable for the GNU ARM Toolchain?
@ekasusilo
@ekasusilo 2 ай бұрын
You could keep multiple compiler version and modify only the toolchain path when needed
@jawadbrayer9906
@jawadbrayer9906 9 ай бұрын
thank you a lot
@keen2461
@keen2461 11 ай бұрын
Excuse me if you find my question stupid, but I'm not quite familiar with the subject matter: Why going thru all this process of installation to debug the STM32s when you can use the readily available STM32Cubeide? Isn't it much simpler/faster....or there is any drawback with using that software?
@ekasusilo
@ekasusilo 11 ай бұрын
You could use STM32CubeIDE for sure. It really is a great tool to do everything in one place. But I find it intimidating to use with so many menu and options that I probably don't need. So, I find VSCode more suitable for my development environment with various extensions that I can install when I need it. It is just my preference, but I do use STM32CubeIDE as well sometimes, mostly for starting up new Makefile project generation.
@keen2461
@keen2461 11 ай бұрын
@@ekasusilo Thank you for clarifiying my doubt. Now I understand your point. Great video by the way. Cheers.
@seankayll9017
@seankayll9017 9 ай бұрын
STMCubeIDE is based on Eclipse. A lot of people, including me, hate it.
@mojtaba.zamani
@mojtaba.zamani 8 ай бұрын
@keen2461 It is useful when you want to run a test (Like a Google test) besides running your application. You can't do this with stmIDE!
@AjayKumar-du2uu
@AjayKumar-du2uu 8 ай бұрын
Hi, Does this cortex-debug extension work for cortex R connections as well?
@bennguyen1313
@bennguyen1313 Жыл бұрын
I understand the STM32 chips support SWD (in addition to JTAG), and that STM32CubeIde+StLinkv3 allows you to stream trace data via the optional SWV(TDO) pin... but can the same be done with a J-Link-Edu/Mini debugger and Visual Studio Code + Openocd? Or via Eclipse?
@ekasusilo
@ekasusilo Жыл бұрын
Hi Ben, I haven't gotten my hands on ST-Linkv3 just yet. Once it is arrived in the mail I can take a look on how to get it working with my setup. From the quick look at ST-Linkv3 spec sheet, it includes VCOM. It may not be the one you are looking for, but I know JLink uses VCOM as well. Anyway, I'll let you know my finding with SWV setup. Thank you for bringing this up.
@badwolf4469
@badwolf4469 6 ай бұрын
Man... Do you know powershell or wsl ??? What is the point to use windows if you preferd Linux shell ?
@ThomasHerron-f9u
@ThomasHerron-f9u Жыл бұрын
Thank you for this -- super helpful tutorial! Question: I noticed you installed the Makefile Tools extension, but it isn't able to invoke the MSYS2 make utility. Did I miss something?
@ekasusilo
@ekasusilo Жыл бұрын
MSYS2 sometimes may have trouble installing make. Have you installed it with pacman -S make?
@ThomasHerron-f9u
@ThomasHerron-f9u Жыл бұрын
@@ekasusilosorry, let me clarify. make installs in MSYS just fine using pacman, but the MS maketools extension isn't able to invoke it (that I've figured out) Instead, make has to be invoked from the MSYS terminal. It's not a big deal, just thought there might be a VS Code button or keystroke to invoke make.
@ekasusilo
@ekasusilo Жыл бұрын
​@@ThomasHerron-f9u That, unfortunately, is not something that can work with MSYS2. The solution that works, and I have been using it for some time instead of MSYS2, is setting up the development environment with WSL2. The Makefile Tools is tested to work with Ubuntu 20.04.5 LTS WSL2 on both Windows 10 and 11.
@ThomasHerron-f9u
@ThomasHerron-f9u Жыл бұрын
Okay. Thank for the confirmation. Building through MSYS2 is adequate. Again, I really appreciate you putting together this video. It was super helpful
@ekasusilo
@ekasusilo Жыл бұрын
@@ThomasHerron-f9u You're very welcome! Take care!
@AravindKumar-jw1pb
@AravindKumar-jw1pb Жыл бұрын
Hi, I changed the files and executed as shown in the video and its showing the error "Could not start GDB process, does the program exist in the filesystem? Error: spawn C/gcc-arm-none-eabi/bin/arm-none-eabi-gdb ENOENT" .Tried changing the armtoolchainpath in the cortex-debug but the error is still there.
@ekasusilo
@ekasusilo Жыл бұрын
Please make sure your toolchain is properly installed and is on the system path. This kind of error is mostly due to incorrect path, some typo in the path or something similar.
@AravindKumar-jw1pb
@AravindKumar-jw1pb Жыл бұрын
@@ekasusilo will try that. thank you
@dinobambino21
@dinobambino21 Жыл бұрын
@@ekasusilo I had the same issue, I fixed the path for the armtoolchain which seemed to work but now I'm getting an OpenOCD error. "Failed to launch OpenOCD GBD Server: Error: spawn openocd.exe ENOENT". The filepath is definitely correct, I checked. So do you know how I can fix this? Thanks EDIT- Extra info: "openocd.exe -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "C:\\libopencm3-examples" -f "c:/Users/PC/.vscode/extensions/marus25.cortex-debug-1.12.0/support/openocd-helpers.tcl" -f "interface stlink.cfg" -f "target stm32f4x.cfg" [2023-06-26T16:38:54.575Z] SERVER CONSOLE DEBUG: GDBServerConsole: onBackendConnect: gdb-server program client error Error: read ECONNRESET [2023-06-26T16:38:54.576Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed" The terminal says this: "SERVER CONSOLE DEBUG: GDBServerConsole: onBackendConnect: gdb-server program client error Error: read ECONNRESET"
@s.h7124
@s.h7124 Жыл бұрын
Every thing perfect and debug and compile no errors thank you so much again for the clear instructions, I’m facing a code problem not sure if any experience it or maybe I’m doing some wrong since I’m only used to the Arduino environment, I am try to change modify the blink code just to see if will change and there is no changes at all still debug the prior original code ! I even comment out every thing in while loop and still running the old code and I can see still stepping in the comment out code this is insane and never seen this ! I google it and watch other videos and I asked no hope , thought I’ll post here so please help on this or any one know let me know what I’m doing wrong , I even modified the code from the blink original file and still running the old code. Thank you 🙏
@mojtaba.zamani
@mojtaba.zamani 8 ай бұрын
Great Tutorial. Thank you, man. what if we add Google test to that? It would be great if you make a tutorial for that! :)
@ausandroid2782
@ausandroid2782 2 жыл бұрын
,very helpful. Please give a tutorial about the difference between using vsc and stm32ide. Or other ide tools.thanks.
@ekasusilo
@ekasusilo 2 жыл бұрын
Sure I will, please check back to my channel next week!
@s.h7124
@s.h7124 Жыл бұрын
Awesome thank you can’t wait
@dng88
@dng88 Ай бұрын
Not sure as no GitHub of the result. …
@PhạmVănTân-k9o
@PhạmVănTân-k9o Жыл бұрын
hi i have problems like "GDB executable "arm-none-eabi-gdb.exe" was not found. Please configure "cortex-debug.armToolchainPath" or "cortex-debug.gdbPath" correctly." please help me thank a ton
@ekasusilo
@ekasusilo Жыл бұрын
You need to make sure that the path is correct, which I believe you did. Another thing to emphasize, GNU ARM Toolchain is 10.3. Please let me know if this helps to troubleshoot your issue.
@tanphamvan9337
@tanphamvan9337 Жыл бұрын
hi i get a problem like this "File not found "executable": "C:/Users/hocla/libopencm3-examples/examples/stm32/f4/stm32-discovery/miniblink/miniblink.elf"" please help me. thanks a ton!
@ekasusilo
@ekasusilo Жыл бұрын
You gotta look if the miniblink.elf is in the path. It is either the path is incorrect, or it does not successfully build the binary.
@dinobambino21
@dinobambino21 Жыл бұрын
@@ekasusilo I have the same issue. Miniblink.elf was not built. What do I do? EDIT: I deleted the libopencm3 folder and re-did all the following steps, and for some reason only on the second attempt did the miniblink.elf get built. Success.
@ekasusilo
@ekasusilo Жыл бұрын
@@dinobambino21 Check the build log and see if there is meaningful error or warning that can be used to debug your issue
@dinobambino21
@dinobambino21 Жыл бұрын
@@ekasusilo Thank you. I was able to resolve that issue.
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 12 МЛН
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 13 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Debugging STM32 in VSCODE with stlink and jlink | VIDEO 45
17:33
Matej Blagšič
Рет қаралды 45 М.
11 Free Windows 11 Apps You Must Try in 2024!
8:28
Trakin Tech English
Рет қаралды 72 М.
CoPilot Review: My Thoughts After 6 Months
9:45
ThePrimeagen
Рет қаралды 553 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,2 МЛН
Прошивка и отладка STM32 в VSCode под Windows
25:20
Вячеслав Мезенцев
Рет қаралды 5 М.
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 12 МЛН