Embedded Rust

Nitroblue 1·2025년 8월 21일

Debugging

  • prefer using log or print line style messages over a full-blown debugger

  • if your code is trying to maintain communication with one or more connected devices, then hitting a breakpoint that halts the CPU can be massively disruptive(파괴적인) to the timing of those interfaces and ironically can make debugging more difficult by introducing new issues.

  • So, this brings us to our first debugging option realtime transfer or RTT.

  • for those unfamiliar it's basically a way to exchange data between your 'host computer' and your 'target microcontroller' using its debug interface.

  • For example, if you wanna fire out print line messages to the host, you're basically just writing to an 'in-memory ring buffer' that gets read by the debugger which means it's very fast.

embed 명령어 : cargo embed --chip STM32F103C8Tx

0개의 댓글