Create a U-boot instance.
Create U-boot
--- AT91SAM9260
0. For cross-compilation links, see ARM cross-compilation tool V2.
--------------------------------------------------- Reprinted, please note: xiaobin_hlj80 ----
1. Burn boot-uboot
View AT91SAM9260 chip documentation, about memory
P19-6221s.pdf (http://www.atmel.com/zh/cn/devices/SAM9260.aspx? Tab = documents)
Starting address: 0 x
(1) install J-Link software
Download from the official website. The following is an optional version.
A. V4.52
Https://www.segger.com/jlink-software.html? Step = 1 & file = JLink_452
B. V4.94g
Https://www.segger.com/jlink-software.html? Step = 1 & file = JLink_494g
C. V4.94h
Https://www.segger.com/jlink-software.html? Step = 1 & file = JLink_494h
(2) start writing
For detailed steps, see S2.4
2. Run the u-boot command.
(1) set Environment Variables
Create a new file in the user root directory:. pam_environment
The content is as follows:
CROSS_COMPILE DEFAULT=/home/at91/x-tools/arm-softfp-linux-gnueabi/bin/arm-softfp-linux-gnueabi-
(2) download U-boot
Download Page: ftp://ftp.denx.de/pub/u-boot/
Select the latest version to download.
About:U-boot1.1.5
After V1.1.5, U-boot has undergone major revisions! If V1.1.5 is available, we recommend that you use this version.
(3) extract and execute
#tar jxvf u-boot-2014.10.tar.bz2 #make clean #make at91sam9260ek_dataflash_cs0_config #make dep #make
(4) start writing
Copy the file u-boot-2014.10 generated under the u-boot.bin directory to the u-boot directory.
1) Open the preset project configuration
2) connect the target board
Target-> Connect;
For connection problems, see the FAQ section.
Connection successful
3) open a data file
File-> Open datafile
Before and after entering the start address
After opening
4) Write Data
5) Close the connection
FAQ
1. Upgrade the new version
The new version of J-Link will upgrade Fireware.
Upgrade by default!
2. RTCK did not respond
Solution: Repeated Detct
Options-> ProjectSettings
Click "Detct" in JTAG scan chain information"
Before Detection
After detection