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