Embedded practical operation - making bootloader and app based on the first version of RT1170 hardware (23)

This article mainly records my first use of NXP MCUXpresso SDK API for BSP development through the thinking of migration

I have been in contact with u-boot before, but it is the first time to implement a bootloader boot app on a single-chip microcomputer. The basic idea is to make a bootloader and app based on the official gpio routines. The first thing I think of is to reduce the difficulty of implementation, and secondly to reduce other peripherals The impact (essentially still the idea of ​​​​the smallest system). This chapter is divided into two parts: the production of app and the production of bootloader. In the design, the first 1M flash space is used to store the bootloader, and the remaining space is used for the app.

1. Create an app

1.1 Draw the link layout of the original project.

1.2 Make bin file

For APP, the two areas m_flash_config and m_ivt are not needed, of course the bootloader area must be reserved. Modify MIMXRT1176xxxxx_cm7_flexspi_nor.sc

;#define m_flash_config_start           0x30000400
;#define m_flash_config_size            0x00000C00

Guess you like

Origin blog.csdn.net/weixin_30965175/article/details/120638281