Embedded Development Skills: Further Familiarization with MCU Startup Process from STM32’s Startup and Linker Files

Embedded Development Skills: Further Familiarization with MCU Startup Process from STM32's Startup and Linker Files

Line-by-Line Analysis of the Linker File In the previous article, we analyzed the startup file, and here we will supplement an important C function within the startup file. /** * @brief Setup the microcontroller system * Initialize the FPU setting, vector table location and External memory * configuration. * @param None * @retval None */ … Read more

Essential Guide for Embedded Engineers: Comprehensive Analysis of Keil MDK-ARM .sct Files for Memory Layout Control

Essential Guide for Embedded Engineers: Comprehensive Analysis of Keil MDK-ARM .sct Files for Memory Layout Control

1. What is a Scatter-Loading File? In embedded development, after the compiler and assembler generate object files (.o) from the source code, the core task of the linker is to combine all object files and library files into a single executable file (such as .axf or .elf). During this process, the linker needs to know … Read more

Deep Dive into ARM Embedded Systems | ARMV8 Linker Script u-boot.lds Source Code Analysis

Deep Dive into ARM Embedded Systems | ARMV8 Linker Script u-boot.lds Source Code Analysis

u-boot.lds is the linker script file for the u-boot project, which plays a crucial role in the compilation and linking of the project. It determines the assembly of u-boot and instructs the linker on how to combine the sections from various source files (such as assembly and C source files) into the final executable file. … Read more

Methods for Dispersed Loading Files in Keil MDK

Methods for Dispersed Loading Files in Keil MDK

Follow+Star Public Account, don’t miss out on exciting content Source | MultiMCU EDU Many friends may not have studied the dispersed loading files in Keil MDK, so today I will briefly explain it. Keil MDK Dispersed Loading Files Taking the Keil MDK linker file for the i.MX RT1052 as an example, the content of the … Read more

Overview of Linker Script Ld and Program Storage Mechanism

Overview of Linker Script Ld and Program Storage Mechanism

1. Linker Script Ld 1.1 Load Address LMA and Run Address VMA 1.1.1 Load Address LMA When programming, the addresses where the code segment and data segment are stored are generally in FLASH. This storage address ensures that data is not lost when power is off. 1.1.2 Run Address VMA During software execution, the (virtual) … Read more