Analysis and description of the stack use of embedded software based on the assembly code of ARM Cortex-M processor

In embedded software development, it is very important to correctly understand the use of stack. In embedded software development without RTOS, the main stack overflow is an easy to ignore error. In RTOS multi task embedded software development, in addition to the main stack, it is also necessary to consider the process stack, and different tas ...

Added by AutomatikStudio on Sun, 23 Jan 2022 09:26:41 +0200

[learning notes] STM32F1 SYSTICK tick timer (register, standard library, HAL Library)

catalogue 0. Bloggers understand: 1. Experiment contents and steps: 2. Hardware description 3. Register description 3.1 SysTick clock and enable: 3.2 SysTick reload value register: 3.3 SysTick interrupt priority: 3.4 SysTick interrupt function: 4. Program design (register) 5. Program design (Standard Library) 6. Program design (HAL L ...

Added by c-o-d-e on Sat, 22 Jan 2022 07:34:32 +0200

STM32 drives WS2812B-2020 RGB color lights

STM32 drives WS2812B-2020 RGB color lamp (II) In the previous section, we briefly analyzed some hardware driving principles of WS2812B-2020 color lights, and sorted out the driving ideas. Refer to the previous article for details: STM32 drives WS2812B-2020 RGB color lamp (I) Next, we analyze step by step how to use code to light the color lig ...

Added by jateeq on Fri, 21 Jan 2022 13:49:28 +0200

Temperature alarm based on CC2530(ZigBee design)

catalogue 1. Function introduction 2. Introduction to hardware wiring 2.1 DS18B20 temperature sensor 2.2 ESP8266 WIFI module 3. Case code 3.1 upper computer of QT design 3.2 node B DS18B20 code 3.3 coordinator-ESP8266 code 1. Function introduction This is a remote temperature alarm designed based on CC2530. The ambient temperature ...

Added by hnissani on Thu, 20 Jan 2022 02:09:02 +0200

python -- Serial Communication

Serial communication of Python Serial communication is a necessary skill for embedded engineers. If you can write a simple host computer, you will get a lot of points. This series is a record of relevant work. After all, Python is not often used and always forgets a lot of things. It's too much trouble to learn it again when you use it. After ...

Added by bobvaz on Tue, 18 Jan 2022 21:22:37 +0200

i.MX6ULL learning notes -- driver function initialization

brief introduction From the perspective of Linux architecture, the kernel system has regarded the driver as an independent sub module. Therefore, the driver module can load (insmod) and unload (remmod) when the kernel system is running. From a functional point of view, the driver module undertakes the function of mapping system function c ...

Added by ghjr on Mon, 17 Jan 2022 13:15:50 +0200

Build your own utils Library in embedded Projects - Basic space-time cost calculation of different chips

Recently, I read the book "programming pearls", which focuses on the explanation of engineering treatment, which is well written. The most impressive example is the Brooklyn Bridge. Before the 1940s, many suspension bridges broke due to storms. To do the correct mathematical modeling and engineering calculation of this aerodynamic ris ...

Added by rickaclark on Mon, 17 Jan 2022 11:06:43 +0200

Interrupt independent key

1, Fundamentals of interruption 1. What is interruption Interrupt means that the CPU needs to stop the execution of the current program, turn to deal with emergencies, and return to the original program after processing. 2. Hardware interrupt and software interrupt Hardware interrupt generally refers to the interrupt request sent by the ...

Added by SerpentSword on Sun, 16 Jan 2022 22:01:14 +0200

Embedded C language knowledge summary

1 embedded C language summary Grammatically speaking, C language is not complex, but it is not easy to write high-quality and reliable embedded C programs. It is not only necessary to be familiar with hardware characteristics and defects, but also need to have a certain understanding of compilation principle and computer technology knowledge ...

Added by The Saint on Sun, 16 Jan 2022 12:54:58 +0200

[embedded operating system] Experiment 3: interrupt and serial port programming

1, Experimental purpose Familiar with the hardware connection of serial port of STM32 module;Master the initialization method of serial port, data sending and receiving function;Master interrupt initialization method and interrupt service function;The serial port debugging assistant on PC is used for programming, and the LEDs D7 and D8 o ...

Added by php_guy on Sun, 16 Jan 2022 10:06:01 +0200