Debugging STM32 on Linux (with Sytem Workbench) | pt.2
This is a part 2 or a version two of my first video on how to develop STM32 on Linux. This can be also a replacement for the first video if debugging is what you are after. Please refer to my older videos for all topics.
In this video I show you 4 ways to flash firmware onto STM32 using 3 different interfaces. Demonstration is on Fedora 34 but all tools are available on all platforms.
Timestamps:
0:00 Introduction
1:56 Project introduction
3:13 ST-LINK: STM32CubeProgrammer (gui)
5:39 ST-LINK: ST-Flash (terminal)
11:16 JLINK (terminal)
14:50 JLINK automated download using Make
20:18 JLINK launch in vscode
21:06 ST-LINK: ST-Flash using Make launched with vscode
22:38 UART using STM32 built in bootloader
33:59 UART configuration using Make
36:19 UART launch with vscode
Links:
STM32CubeProgrammer: https://www.st.com/en/development-tools/stm32cubeprog.html
ST-FLASH: https://github.com/stlink-org/stlink
ST-LINK convert to JLINk: https://www.segger.com/products/debug-probes/j-link/models/other-j-links/st-link-on-board/
JLINK software: https://www.segger.com/downloads/jlink/
UART flasher: https://sourceforge.net/p/stm32flash/wiki/Home/
...
https://www.youtube.com/watch?v=1cleO3mHjWw
In this video I show you how to change your Eclipse / Eclipse based Ide theme by using DevStyle Theme manager from Eclipse marketplace along with additional syntax highlighting theme. My syntax theme can be found on github:
https://github.com/SausageCode/Embedded_videos/tree/master/Eclise%20Theme
Eclipse syntax theme store:
http://www.eclipsecolorthemes.org/?list=downloads&filter=dark&q=
...
https://www.youtube.com/watch?v=yRe0WZzqUfE
In this video I show you how to use your STM32 USB peripheral as serial interface to your computer. Please check the link for code used in the video.
https://github.com/SausageCode/STM32videos/tree/master/video20_usb_Serial/code
...
https://www.youtube.com/watch?v=Z8I4UGWcFUM
If you want to skip to hardware initialization:
If you want to skip to code:
In this video I explain the workings of ADC along with all the settings and code to make use of this peripheral. All the code is available in the Github link below:
https://github.com/SausageCode/Embedded_videos/tree/master/024_ADC-HAL
...
https://www.youtube.com/watch?v=k-clmvClDG8
In this video I give you a brief introduction to C/C++ building by hand and with Make using terminal. At the end I demonstrate how to build STM32 projects with Make generated by CubeMX. I suggest you to read and watch videos on C/C++ building and Make.
Timecodes:
0:00 Intro
2:29 Manual build process
5:27 Using Make
13:24 C++ version demonstration
14:07 STM32 Makefile project with CubeMX
15:09 Build tools for arm
16:42 Generated Makefile walkthrough
21:04 Summary
21:40 Makefile differences between processor architectures
23:10 Closing remarks
Video sources:
https://github.com/SausageCode/Embedded_videos/tree/master/042_BUILDING-PT1
...
https://www.youtube.com/watch?v=FkqQpBqkSns
In this video I show you my first working prototype of a diy dc electronic load that I'm developing. The aim is to create good stable and easy to work with user and code interface as to provide as much flexibility for everyone.
In this video I go over some basic CC load circuits and my current version and highlight some important parts and demonstrate it on a video.
Code for the project will be released in the future video once I'm happy with it.
Schematic: 8:28
Demonstration: 18:16
...
https://www.youtube.com/watch?v=dq85pJYQUHc
In this video I show you some tools that I have to develop new projects for embedded. These tools are not expensive and are the core of what you will need to create project with your microcontroller. I present both cheaper and more expensive alternatives and name pros and cons of each.
For electronics development I will make a second video.
...
https://www.youtube.com/watch?v=YccyStRsy48
RTC Functions: 16:18
Demo Cube configuration: 19:01
Demo Code demonstration: 20:50
In this video I talk about Real Time Clock time keeping in hardware and software and implementation in STM32 with built in RTC peripheral.
Example code can be found on github:
https://github.com/SausageCode/Embedded_videos/tree/master/040_HAL_RTC
Video series repository:
https://github.com/SausageCode/Embedded_videos
...
https://www.youtube.com/watch?v=IO0HZ6IRKrA
In this video I show you how to use GPIO and RCC libraries to manipulate GPIOs and blink LEDs on the development board.
Previous video: https://www.youtube.com/watch?v=pHyz2-wbDw4&index=2&list=PLEg2mgYz66IOkLc0hID_RQRVExP2K0Ih2&t=3s
Project code: https://github.com/SausageCode/STM32videos
...
https://www.youtube.com/watch?v=IE2PpYzsa9M