Tiny6410 bare metal programming-(1) SD card startup

Source: Internet
Author: User

Friendly superboot provides powerful functions. During the startup process, you have made a lot of initialization work on. It is not conducive to understanding the Startup Process of arm when programming on bare metal. Therefore, bare metal programs are planned to be directly burned into the SD card for startup.

Using the sd-flasher.exe program of youshanjie, after many experiments, no bare metal program can be burned to the SD card, 2g, 4G, small card, and big card. The experiment was successfully completed only when winhex was directly burned to the SD card.

I used a bare metal program to burn it to a 4G card using winhex. The following uses LED. s as an example to record the entire process.

First, compile led. s in the Virtual Machine. My environment is WINXP, vmware10, and GCC 4.6.3.

   1: cd 1.led.s
   2: make clean
   3: make

After successful programming, generate led. Bin and use winhex to open the file,

Then insert the SD card into the computer through the card reader and enable the SD card using winhex,

Copy the data in led. bin to the corresponding slice of the SD card.

Copy the 4G sdhccard to the [last-1042] Sector, and copy the 2g sd card to the [last-18] sector. For details, see references.

Http://cky0612.blog.163.com/blog/static/2747891620111021154867/

Http://wenku.baidu.com/view/36c9774fe518964bcf847c28.html

After that, insert the card into the Development Board and switch to SD boot. After power-on is enabled, You can see several small LED lights flashing.

Tiny6410 bare metal programming-(1) SD card startup

Related Article

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.