Skip to content

This repository provides bare-metal boot setup and project porting for the STM32MP157DAAA1, leveraging the official CubeMP13 and CubeMP1 repositories.(基于STM32MP157DAAA1的裸机启动引导以及项目,参考官方CubeMP13以及CubeMP1建立。)

License

Notifications You must be signed in to change notification settings

youngsea2000/STM32MP1xx_Baremetal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM32MP1xx_Baremetal

简体中文    English

Introduction

This project involves bare-metal development on the STM32MP157DAAA1, and in theory, all programs in this repository are compatible with all microcontrollers in the STM32MP15XX series. The purpose of this project is to bypass u-boot and use a more lightweight bootloader for pure bare-metal operation. For this MPU, the bare-metal program can be initiated through the following methods:

  1. Running the bare-metal program as an FSBL: This method requires the program to run in SYSRAM instead of DDR. For this approach, you can refer to the bootloader project in the FSBLA folder of the repository.
  2. Running the bare-metal program through a bootloader: Here, the bare-metal program is loaded into DDR, and both the FSBLA and the bare-metal program need to be compiled and burned to the storage medium.

There is virtually no difference between these two methods in terms of programming; only the RCC configuration and the address offsets in the linker script (ld file) need attention. The repository focuses mainly on the second method. The original purpose of creating this repository is for personal projects; therefore, the repository will include the following implementations as example programs:


简介

该项目采用 STM32MP157DAAA1 进行裸机程序开发,理论上这个仓库中的所有程序适用于 STM32MP15XX 系列的所有单片机。建立本项目的初衷是为了脱离 u-boot 转而采用更精简的引导程序进行纯裸机程序运行,针对于这个 MPU 的启动方式,裸机程序可以通过以下几种条件进行启动:

  1. 将裸机程序作为 FSBL 程序运行,这种启动方式要求程序在 SYSRAM 中运行而不是 DDR。采用这种启动方式可以参考仓库中FSBLA文件夹的 bootloader 项目进行程序编写。
  2. 通过 bootloader 裸机程序,裸机程序加载至 DDR 中,需要编译FSBLA以及裸机程序并烧录至存储介质中。

二者在程序编写的方法上几乎没有任何区别,只需要注意RCC配置以及链接过程中ld文件地址偏移即可。同时仓库以第二种启动方法为主,同时建立仓库的初衷是为了完成个人项目,因此仓库将陆续实现以下内容作为示例程序:

About

This repository provides bare-metal boot setup and project porting for the STM32MP157DAAA1, leveraging the official CubeMP13 and CubeMP1 repositories.(基于STM32MP157DAAA1的裸机启动引导以及项目,参考官方CubeMP13以及CubeMP1建立。)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages