Endianness defines the byte order in which multibyte data (e.g., int32_t) is stored in memory.
Little-endian: LSB stored at lowest address (common in ARM, x86)
Big-endian: MSB stored at lowest address
Why It Matters in Firmware?
When communicating over UART, SPI, CAN, or between MCUs with different endianness, you must manually convert the byte order to match protocol or hardware expectations.