TX-2440A Development Board started, very excited. The tutorial is also carefully read. But encountered a problem, the tutorial explains the use of H-JTAG to burn the entire board test program method, but did not talk about how to use J-link download, this allows me to use only J-Link (my notebook only has USB ports, no parallel ports, and no serial ports. Depressed...) people are quite speechless. Of course, I haven't fully watched the video tutorial yet. Maybe there is a way back. You can leave it alone. I encountered a lot of problems in the middle and recorded it. (The predecessors should not laugh at me. After all, I am new to school ):
1. Familiar with J-link.
After the J-link program is installed, two icons are displayed: J-link arm v4.02a and J-flash arm v4.02a. Among them, J-link arm is a command line tool. I personally think this tool is quite good. Several of the useful commands are as follows:
1) Speed // used to set the transmission speed. For example, speed 12000 can be set to 12000 kHz.
2) MEm // used to read address data. Usage: Mem <address>, <length>, for example, Mem 0x40000000, 10 to print 10 bytes from the address 40000000
3) loadbin // any address used to download the binfile to the memory. Usage loadbin <File Name> <address>, for example, loadbin E:/u-boot.bin 0x0 can be downloaded to the U-boot 0x00000000 address
J-flash arm is used to program flash separately. I use it to program.
2. Configure J-flash arm.
In general, file --> open project will find some configuration files *. jflash and load them, but I did not find the configuration files suitable for S3C2440. So I built a TX-2440.jflash, manual Configuration:
1) options --> Project settings --> Check core ID is not selected in the CPU (this ID can be viewed using the command line tool), and use target RAM (faster) is selected ), if you do not select this option, the download will be very slow. In ADDR, enter 40000000, 4 kb (based on the datasheet of 2440 ).
2) options --> Project settings --> In the use following init sequence of the CPU, you must change the reset to halt (if you do not know it, you can't do it, but you have not tried it ), otherwise, the following error occurs during writing: PC of target system has unexpected value after erasing sector. this error has plagued me for more than two hours. I think the reason is this: when writing, I don't know why watchdog is still working, so I wrote the system reset. I don't know what I understand, right? If you know something, help confirm it. Thank you!
3) options --> Project settings --> select automatically detect flash memory in flash to automatically detect the Flash type.
This is basically enough, hey.