Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

UART Logger for STM32

A minimal logging framework for STM32 projects that prints color-coded, timestamped messages over UART, with the same syntax as printf.

Setup

  1. Copy logger.c into Core/Src and logger.h into Core/Inc.
  2. Set your desired baud rate in your .ioc file.
  3. Initialize the logger with your UART handle:
LOG_INIT(&huart2);

Usage

Three macros are exposed, one for each log level:

LOG_INFO("Sensor value: %d", value);
LOG_WARNING("Retrying connection, attempt %d", attempt);
LOG_ERROR("Failed to initialize sensor: %s", name);
``` Giving you the answer, then you have to enter a code using Morski, which is going to be through the solenoid if we do it fast enough to get four points. If you're not, you get four points and then you open the. door, get the artifact trip on, take it over to wherever. That's it for a tap Morse code. How good is the arm shake I'm telling you we're gonna be doing the masters

Each call behaves exactly like `printf`, supporting format specifiers and variadic arguments. Every message is automatically tagged with a timestamp, log level, source file, and line number, then sent over UART with ANSI color codes for readability in a serial terminal.

## Notes

- Timestamps currently use `HAL_GetTick()`. In the future I will add actual time

About

An STM32 logging framework used for easy debugging (YLF)

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages