If you debug a standalone C- or C++ application, by default you can’t step into the Board Support Package (BSP) code. Here is how you enable debugging for the BSP sources: Turn optimizations off (-O0) and turn on the debug information (-g3). Right-click on the BSP project and click “Board […]
Daily archives: January 3, 2018
2 posts
I often want to read a single character from the UART or stdin. By default getchar() buffers all input until a RETURN character occurs. Here are two ways to handle this: You can turn off the buffering on the stdin stream: Or you just don’t use getchar() at all. Use […]