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

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024

ความคิดเห็น • 50

  • @NewGuardHacker
    @NewGuardHacker 11 หลายเดือนก่อน +1

    Great tutorial! Thank you for making this.

  • @danielsolis5444
    @danielsolis5444 10 หลายเดือนก่อน +1

    thank you for this, great tutorial

  • @muhammadzaid308
    @muhammadzaid308 7 หลายเดือนก่อน

    Made life so much easier

  • @arunbennett9248
    @arunbennett9248 2 หลายเดือนก่อน

    Just wanted to know how exactly he gave the config files for the json (@24.00). Is there any tutorial / document to understand that?

  • @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  ปีที่แล้ว +1

      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 ☮️

  • @RadioTexnik
    @RadioTexnik ปีที่แล้ว

    Great manual! Thank you!

    • @ekasusilo
      @ekasusilo  ปีที่แล้ว +1

      Glad it was helpful!

  • @mohinderkaur6671
    @mohinderkaur6671 ปีที่แล้ว

    Great tutorial! very helpful! Thanks!

    • @ekasusilo
      @ekasusilo  ปีที่แล้ว

      Glad it was helpful!

  • @matt_0f_all_steams435
    @matt_0f_all_steams435 22 วันที่ผ่านมา

    Is there a reason you chose the zip file instead of running the executable for the GNU ARM Toolchain?

    • @ekasusilo
      @ekasusilo  22 วันที่ผ่านมา

      You could keep multiple compiler version and modify only the toolchain path when needed

  • @s.h7124
    @s.h7124 11 หลายเดือนก่อน

    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 🙏

  • @badwolf4469
    @badwolf4469 4 หลายเดือนก่อน

    Man... Do you know powershell or wsl ??? What is the point to use windows if you preferd Linux shell ?

  • @djoonkdjoonk7431
    @djoonkdjoonk7431 4 หลายเดือนก่อน

    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

  • @mojtaba.zamani
    @mojtaba.zamani 6 หลายเดือนก่อน

    Great Tutorial. Thank you, man. what if we add Google test to that? It would be great if you make a tutorial for that! :)

  • @jawadbrayer9906
    @jawadbrayer9906 7 หลายเดือนก่อน

    thank you a lot

  • @AjayKumar-du2uu
    @AjayKumar-du2uu 6 หลายเดือนก่อน

    Hi,
    Does this cortex-debug extension work for cortex R connections as well?

  • @ausandroid2782
    @ausandroid2782 ปีที่แล้ว

    ,very helpful. Please give a tutorial about the difference between using vsc and stm32ide. Or other ide tools.thanks.

    • @ekasusilo
      @ekasusilo  ปีที่แล้ว +1

      Sure I will, please check back to my channel next week!

    • @s.h7124
      @s.h7124 11 หลายเดือนก่อน

      Awesome thank you can’t wait

  • @user-po8jg3lz3m
    @user-po8jg3lz3m ปีที่แล้ว

    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?

    • @user-po8jg3lz3m
      @user-po8jg3lz3m ปีที่แล้ว

      @@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  ปีที่แล้ว

      ​@@user-po8jg3lz3m 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.

    • @user-po8jg3lz3m
      @user-po8jg3lz3m ปีที่แล้ว

      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  ปีที่แล้ว

      @@user-po8jg3lz3m You're very welcome! Take care!

  • @keen2461
    @keen2461 10 หลายเดือนก่อน

    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  10 หลายเดือนก่อน

      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 10 หลายเดือนก่อน

      @@ekasusilo Thank you for clarifiying my doubt. Now I understand your point. Great video by the way. Cheers.

    • @seankayll9017
      @seankayll9017 7 หลายเดือนก่อน

      STMCubeIDE is based on Eclipse. A lot of people, including me, hate it.

    • @mojtaba.zamani
      @mojtaba.zamani 6 หลายเดือนก่อน

      @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!

  • @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.

  • @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"

  • @user-wo5pj5kn6t
    @user-wo5pj5kn6t ปีที่แล้ว

    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.