This Is 100% How You Should Be Debugging | How to Use OpenOCD to Debug Embedded Software with GDB

preview_player
Показать описание
Finding bugs in your embedded code is hard. Without print statements and minimal LED's to show signs of life, finding out why your embedded code is crashing is never easy. In this video, we use OpenOCD to debug our embedded code and watch the system as it runs. OpenOCD provides a seamless interface via Telnet and GDB to allow an embedded developer to watch their system as it runs.

🏫 COURSES 🏫

Рекомендации по теме
Комментарии
Автор

When you talk about debuggers please don't forget The Black Magic probe.... so cheap, so easy, so cheap! I debug my Blue Pill with... well.... another Blue Pill!!!

edgeeffect
Автор

Thanks so much, you would not believe how few, straight forward explanations of how to do this there are out there.

andybrown-maw
Автор

This is great, I’ve always wanted to get into embedded systems programming and it seems as your channel is where I’ll start 😁🙏🏽

Kid
Автор

I think I learned more in the last 7 and a half minute than I had expected. Wow! Well done!

gideonzb
Автор

I wasn't aware you could toggle the display format while inside gdb... I normally just run with --tui when I start.
Will have to give that a go next time!

paulvohs
Автор

Really informative video. Thanks a lot. For me personally you hit the nail on the head with this video. It was exactly what I was looking for.

eyalgerber
Автор

Thank you so much! It's really hard to find working up-to-date examples like this. So many old examples don't work anymore. I was able to get SWO working. And I also got debugging of the nRF using the st-link working.

chrisidema
Автор

Wow, this is really cool! I didn't know gdb could do that

magnoelmagnifico
Автор

Almost every embedded system I have worked with, one of the engineers has dedicated a UART for a serial debugging console.

burningglory
Автор

Perfect! I've done something similar with two rpi picos. Now I know also what openOCD actually does! Thanks.

benarcher
Автор

FYI, in Fedora, the st-link package is stlink, not st-link.

Also, there is no gdb-multiarch on Fedora. Use regular gdb but set arch once you start it.

Great video.

SomeTechGuy
Автор

Thank you so much, it is really hard to find simple, relevant information regarding debugging on embedded

jorgelinares
Автор

Not to be that guy but is there a GUI for it? I’ve used the STM32CubeIDE and it has a debug mode that has all the functionality of this and probably more, like having a live view of global variables as the program runs and being able to see the disassembly, and it seems it would be easier just to scroll through your code whilst it running and just click to create a breakpoint wherever you want it, the interface in the IDE seems a lot easier to use with more functionality than this, so is there a non STM GUI version of this for other chips?

conorstewart
Автор

Jesus Christ, I've wasted a week being stuck with debugging because I forgot to add the "target extended-remote" step to my damn notes! Thanks for the video though, the instructions hold up for other boards too.

jakehallam
Автор

Oscilloscope helps with debugging very much. Sometimes I can make all the job using only one or two pins to out either logical states through them or use them as a clock/data pair to see bytes on the oscilloscope directly.

Ma_X
Автор

that's why I love my little Arduino Zero, since it has an EDBG included. (I also have a jlink for my other boards)

minirop
Автор

I think it might be easier to just code correct the first time 😁🤓😂 ..just kidding, really nice, did not know this could be done command line like this! Good content! 💪👌👍🤓

TheStuartstardust
Автор

Hello, LLL, may i humbly request a dive into GD32VF103 MCU. It's a 32-bit RISC-V chip. It is rather basic at the moment, but something tells me that as time goes on this architecture will become more and more mainstream. And a lot of folks would like to watch series on RISC-V assembly as well as corresponding GCC stack. Cheers.

ikefir
Автор

great video! never debugged a microcontroller, but it doesn't seems too difficult.

diegopinilla
Автор

Thank you sooo much for this tutorial!

jbvalle