[Country EMBED strategy] [042] [Code removal is not limited]

Source: Internet
Author: User

Arm startup process

1. The internal RAM of the processor is limited in size and cannot copy all the bootloader, so it is necessary to copy the BL2 code into memory with the internal Ram BL1 code. The canonical way to move the code from the beginning is flash, the endpoint is memory. However, since NAND Flash has not yet been initialized, the BL1 is moved from internal RAM to memory first. Wait until the NAND flash is initialized with a canonical code move.

2. Beginning SRAM Address: 2440 0x00000000,6410 0x0c000000,210 0xd0020000

3. The link start address determines where the first line of code in the program appears in memory, and the link start address is the end of the copy.

Terminal DRAM Address: 2410 0x30000000,6410 0x50000000,210 0x20000000

Code removal

copy_from_ram_to_mem://Initialize Address LDR R1, =ram_addrldr R2, =mem_addradd r0, R1, #BOOT_SZIE//Copy Code LOOP:LDR R3, [R1], #4str R3, [R2 ], #4cmp R1, r0bne Loopmov pc, LR

[Country EMBED strategy] [042] [Code removal is not limited]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.