The premise of using the serial port to operate the Development Board is that a program has been installed on the Development Board. Therefore, when the Development Board does not have a program, you should first burn the program. Methods:
1. Use the parallel tool for writing: wiring (refer to the jz2440v2 Development Board User Manual of baiwen.com), using oflash for writing (slow speed), burning and writing. binfiles, and observing the effect from new power-on. It can be burned into u_boot.
2. Use openjtag for writing, wiring, and oflash for writing (The Development Board will be reset after oflash is written ).
3. Use jlink to burn and write. See how to burn the S3C2440 bare-board program. jlink only supports burn or flash, but does not support nandflash. To burn and write NAND Flash, you can only perform the following steps:
1> the Development Board is set to nor flash to start (nor flash or NAND Flash is enabled on the Development Board)
2> after connecting the jlink, use the jlink software J-flash to burn the U-boot of the Baiwen network to nor flash.
3> restart the Development Board and run "U-Boot" on the serial port to write nandflash.
I. Use J-flash to burn or flash
1> preparation: the USB port of jlink is connected to the computer. The jlink JTAG port is connected to the JTAG port of the Development Board through a cable arrangement. The Development Board is set to norflash to start and power on.
2> Start J-flash. Perform the following operations in J-flash:
Select "file-> open project" from the menu to open the S3C2440. jflash file in the attachment;
Select "target-> connect"
Choose file-> open to open the binary file to be burned, such as the u-boot.bin, and enter 0 in startaddress.
Select "target-> auto" to enable automatic writing.
Ii. U-boot already exists on nor flash, which can be burned using U-boot
First, use a serial port to connect the Development Board and computer (for jz2440, is to use USB cable to connect the Development Board usb-com1 and computer), open the serial port tool, set the baud rate of 115200, traffic control is not applicable (this option is removed from RTC and CTS ). Then power on the U-boot Development Board and start it. You can see this information in the serial port. Before the countdown to 0, press the Space key of the keyboard:
Start writing:
Use USB cable to connect the USB device interface and PC of the Development Board. For jz2440, use 2nd USB cables to connect the miniusb port and PC marked with the text "USB.
If it is used for 1st times, a prompt will be prompted to install the dnw driver.
Enter the letter "N" in the serial port, indicating "Download U-boot to nandflash", which means to download the program to the 0 address of NAND Flash.
Use the "USB port-> transmit" menu of dnw.exe to send the binfile to be burned. After the Development Board receives the file, it will automatically burn the program
To nandflash.
Power off the Development Board, set it to NAND Flash, and then power on. Then you can observe the effect.
3. Download and burn data using TFTP
Set the IP address in U-boot. Step: go to U-boot, select Q to exit menu, print it, and view environment variables such as ipaddr.
And the Save command to change and save the environment variables, that is, setipaddr59.73.149.105; save; Then ping the network cable to check whether the Ping is successful. (
Note that pingu-boot cannot be used by the PC at this time, because u-boot will not respond to the PC ). If the Ping is successful, host 59.73.149.90is alive is displayed.
U-boot: tftp30000000 LEDs. Bin
Nand erase bootloader
Nand write 30000000 bootloader
Set the Development Board as NAND to start, and restart the Development Board to see the effect.
Burn a bare metal Program