Перейти к содержимому

TM32 SRAM Stack Allocation & Deallocation Explained | C for Embedded System

Electro4u

0:00 / 0:00

TM32 SRAM Stack Allocation & Deallocation Explained | C for Embedded System

16 просмотров · 1 дн. назад
Electro4u
1,43 тыс. подписчиков
16 просмотров · 1 дн. назад
In this video, we break down how stack allocation and deallocation actually work inside the SRAM of an STM32 microcontroller (STM32F411). Understand how the Stack Pointer (SP) moves during function calls, what happens when a function returns, and whether local variables are truly erased or just waiting to be overwritten in memory. 👨‍🏫 Meet Your Instructor – Yashwanth Kumar VG Yashwanth Kumar | NIT Trichy Graduate | 2 Years of Experience at Texas Instruments (TI) Learn C Programming for Embedded Systems with Yashwanth Kumar, a graduate of the National Institute of Technology, Tiruchirappalli (NIT Trichy), with 2 years of professional experience at Texas Instruments. Through Electro4u, Yashwanth aims to help aspiring embedded engineers strengthen their C programming fundamentals and understand how these concepts apply to real-world microcontroller-based systems. Timestamps: 0:00 - Introduction & STM32F411 SRAM Layout 0:58 - Function Call & Stack Frame Creation (Pushing Variables) 1:44 - What Happens on Function Return? (Resetting the Stack Pointer) 2:15 - Can You Recover Local Variables After Return? 3:07 - Function Overwriting (F1 vs F2 Execution in SRAM) 3:41 - Key Takeaway: Allocation vs Overwriting Explained 🔔 Subscribe to Electro4u for more embedded systems, firmware, and hardware engineering tutorials! #STM32 #EmbeddedSystems #Microcontroller #CProgramming #ARM #Firmware