Supercharging Printf with RTT-Viewer:

  Рет қаралды 1,894

PR TechTalk

PR TechTalk

8 ай бұрын

Want to get better printf tools with faster and more options then this video is for you.
i take a look at SEGGER´s software RTT-VIEWER and take you from donwload and installing to get it into a STM32 Project and making some basic demos on what you can do with this free of charge tool.
www.segger.com/downloads/jlink/
wiki.segger.com/RTT#SEGGER_RT...
wiki.segger.com/J-Link_RTT_Vi...
www.segger.com/products/debug...
webshop.nohau.se/product-cate...

Пікірлер: 13
@TriodeTetrode
@TriodeTetrode 3 ай бұрын
What are the benefits using J-Link debugger over printf or UART output? Can you look inside registers in real time and even change them? I don't understand why someone would need J-Link especially considering it's price.
@prtechtalk416
@prtechtalk416 3 ай бұрын
Hi, if you have a J-link and use this in your normal daily work you might want to continue to use what you are used to. J-Link is not limited to STM MCU´s. But my personal point to use J-Link instead of ST-Link is that i like the RTT-Viewer and that is not supported using ST-Link.
@jonasnicolaysen8019
@jonasnicolaysen8019 8 ай бұрын
i like this video. im trying to implement it in my project but having some truble. do you have any experience using the nrf_connect_sdk?
@prtechtalk416
@prtechtalk416 8 ай бұрын
Hi Jonas, glad you found it helpful. What are the issue you have ?
@jonasnicolaysen8019
@jonasnicolaysen8019 8 ай бұрын
@prtechtalk416 i now think i have most off the setup correct. had to set prj.conf config_uart_console=n config_rtt_console=y and a couple more I don't have on the top of my head. then I got logging to work from some included files. I just haven't made it print myself yet.
@prtechtalk416
@prtechtalk416 8 ай бұрын
Ok Some issues i have seen when i used it on a non STM32 MCU was that i needed to look in the .map file for witch memory address it was using and then enter this address in thYou can also look in a previous video i made on the topic then on Renesas MCU. Best of Luck /PR TechTalk
@prtechtalk416
@prtechtalk416 8 ай бұрын
kzfaq.info/get/bejne/Z9CDa9Od1bzTY4E.html
@prtechtalk416
@prtechtalk416 8 ай бұрын
kzfaq.info/get/bejne/n8dnf82htKeup5c.html
@windward2818
@windward2818 8 ай бұрын
The trend is not to use JTAG/SWD as a printf replacement. There are many reasons, the first is you would really want to reserve the JTAG/SWD connection used for development and debugging and not program status and console functions. Usually a UART is reserved for real-time reporting at both the bootloader (sometimes call console interface) level and the OS (sometimes called program monitor) level. The console function (traditionally called before C main) provides a two way link to the Bootloader (sometimes called the BIOS) with a command line interface (usually minimal features). The UART function is easily supported by using a UART to USB converter probe interface and the basic UART/USB driver shipped with Windows, Mac and Linux. Using a freeware terminal program application as the interface. So the basic field troubleshooting tool set is a $10.00 probe, a USB to Serial (Virtual COM Port) OS driver included with Windows and a freeware terminal program. (For field troubleshooting at the customer, sending them a J-Link is really not viable, for the obvious cost reasons, but also many times the customer will not know how to use the Segger GUI, but they will know how to use a command line interface used with a terminal program, and if not they can be easily told over the phone what to do. Many times the UART COM connection uses 4 pins, RxD, TxD, RTS, and CTS (Sometimes DTR, DSR in place of RTS and CTS, which are basic digital port I/O pins), with the important observation that the PC is the "Terminal" and the product board the "Device" or data set (like a MODEM), as in Data Set Ready (DSR). Upon reset if DTR is not asserted, meaning there is no computer connected, the serial port remains inactive and C main gets executed as normal. After boot while the application is running, if DTR is asserted, by connecting a computer, then the OS monitor interface is invoked. Here the monitor can be a full featured command line interface which is very useful in diagnosing bugs. You really want to keep the JTAG/SWD functionality separate from serial port diagnostics and debug. printf real-time debugging is not really used for well funded projects. The UART is used as part of the project to support specific features.
@prtechtalk416
@prtechtalk416 7 ай бұрын
Thanks WindWard2818 for your input and thoughts.
Supercharge Your STM32 Nucleo Projects with Segger J-Link
8:17
PR TechTalk
Рет қаралды 3,8 М.
Adobe: A Disgusting, Criminal Company
10:21
Bull Technology
Рет қаралды 185 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 9 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 60 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:26
CRAZY GREAPA
Рет қаралды 7 МЛН
Extracting and Modifying Firmware with JTAG
21:03
Matt Brown
Рет қаралды 36 М.
Tutorial On ADC MultiChannel Interrupt method.
28:15
PR TechTalk
Рет қаралды 1,6 М.
Debugging STM32 in VSCODE with stlink and jlink | VIDEO 45
17:33
Matej Blagšič
Рет қаралды 41 М.
How to Debug HardFaults on ARM Cortex-M MCUs
57:58
Memfault
Рет қаралды 11 М.
ThreadX on STM32 Made Easy: Step-by-Step Startup Tutorial
23:37
PR TechTalk
Рет қаралды 2,9 М.
How A Lawsuit Inspired Apple’s Most Iconic Sounds
4:37
CNBC Make It
Рет қаралды 3,4 МЛН
Zephyr 101 - Application Logging and Log Backends
22:45
Circuit Dojo
Рет қаралды 1,8 М.
Как правильно выключать звук на телефоне?
0:17
Люди.Идеи, общественная организация
Рет қаралды 1,8 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,4 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 141 М.