Summary of Microcontroller Basic Concepts

Summary of Microcontroller Basic Concepts

Microcontroller Instruction Execution Let’s consider a question: when we write an instruction into the microcontroller using a programmer, and then take the microcontroller out, it can execute that instruction. So this instruction must be stored somewhere in the microcontroller, and this place can retain the instruction even after the microcontroller loses power. What is this … Read more

Understanding Byte Alignment in Linux

Understanding Byte Alignment in Linux

Recently, I encountered a problem where threadx running on ARM crashed when communicating with DSP using message queues (the underlying implementation is through interrupts and shared memory). During the troubleshooting process, it was found that the structure used for message passing did not consider the issue of byte alignment. Here, I will整理一下 the issue of … Read more

Understanding Byte Alignment in Linux

Understanding Byte Alignment in Linux

Recently encountered a problem where ThreadX running on ARM crashed while communicating with DSP using message queues (the final implementation principle is interrupt + shared memory). After investigation, it was found that the structure used for message passing did not consider the issue of byte alignment. Here’s a brief overview of byte alignment issues in … Read more