Assert on a Microcontroller | Embedded System Project Series #14

Artful Bytes
Artful Bytes
2.5 هزار بار بازدید - 2 سال پیش - I create an assert implementation
I create an assert implementation for my microcontroller. It stops the motors, logs to a terminal, triggers a breakpoint, and blinks an LED.

0:00 Assert
1:00 This video
1:20 My implementation
2:26 Custom assert function
3:53 Software breakpoint
4:55 With TI compiler
6:05 With GCC compiler
7:08 Add breakpoint to assert function
9:05 LED driver
11:27 Two new IO functions
13:47 Test the LED driver
14:35 Test asserts
15:37 Recursive assert problem!
17:09 Busy wait macro
18:05 Commit 1
19:00 Static assert
20:55 Commit 2
21:30 Replace todos (I forgot!)
22:20 Last words

#embeddedsystems  #cprogramming #electronics

Code: https://github.com/artfulbytes/nsumo_...

🌍 Useful links
https://interrupt.memfault.com/blog/a...

⌨️ My development environment
https://www.artfulbytes.com/devenv

🌍 Links
GitHub - https://github.com/artfulbytes
Website - https://www.artfulbytes.com

👨‍💻 About me
Hi and welcome. I'm Niklas, an embedded systems engineer from Sweden. On this channel, I make practical videos about embedded systems or, in general terms, about building and programming hardware.
2 سال پیش در تاریخ 1401/10/26 منتشر شده است.
2,521 بـار بازدید شده
... بیشتر