Turn: Keil MDK compiler and J-LINK use

Source: Internet
Author: User

A few days ago into the hands of a J-LINK, because the H-JTAG after all on the MDK support is not too perfect, for example, with the Download button on the Keil MDK burning program, not directly can burn in, instead, the H-Flash software is popped up, and then the file is manually selected for installation. In addition, the single-step debugging with h_jtag is easy to run inexplicably. Fortunately, J-LINK is not too expensive (I mean domestic imitation), MDK can be more perfect support J-link, today, we will record my use of MDK and J-link.

I upgraded the MDK to v4.10, and previously used v4.01. Of course, this v4.10 is not the latest version. The latest version should be v4.12.

First you need to install the MDK compiler, you can go to the http://www.embedinfo.com/down-class.asp? Download the MDK compiler from Lx = big & anid = 51. The J-Link driver is required. download the latest driver from http://www.segger.com/cms/jlink-software.html.

After installing the above two software, the preparation is complete.

First, use the "load" button () on the keil interface to download the program.

A. Connect J-link to the computer and Development Board correctly, power on the Development Board, open Keil MDK, and click options for target 'target 1'..., as shown in:

B. The options for target 'target 1'... dialog box is displayed, as shown in:

1. Select the utilities label.

2. Select use target driver for flash programming.

3. Select J-LINK/J-trace from the drop-down list.

4. Click settings to set the J-link burning option, as shown in:

C. set other settings as needed. Click "add" to bring up the following flash page:

1. Here I chose lpc2114, which can be selected based on my own chip.

2. Click "add ".

D. At this point, the setting is complete. Click "OK" all the way. After the Compilation Program is correct, click the "LOAD" shortcut icon, as shown in:

We can see that the indicator lights of J-link flash, and the download will be completed soon.

Second, use J-link for single-step debugging.

It is easier to use J-link for single-step debugging in MDK.

A. Repeat Step A in the previous section and open the options for target 'target 1'... dialog box, as shown in:

B. Perform steps 1, 2, 4, and 3. Click setting. The following dialog box is displayed for setting the J-link device:

If there are no other requirements, click OK to exit the settings.

C. After the program is compiled correctly, flash-download the program first, download the program, and press Ctrl + F5 (or the shortcut icon) to enter the debugging interface. The specific debugging steps will not be detailed.

Third: Use the J-Flash ARM burning Program

After installing the driver of J-link, start-Program (or 'all projects')-segger-J-link arm VX. under XX, click the J-flash arm icon and you can use this software to easily download the program. This software is similar to H-flash.

A. open J-flash arm, click File-open project ..., open the default flash device selection interface and select a suitable flash device. this may not be suitable for you. For example, if you do not have the product on the lpc2114 page, click File-New projec, and then choose options-Project Settings... the following project Settings dialog box is displayed:

Follow the settings 1, 2, 3 in the figure, and then click the CPU tab, as shown below:

According to the settings shown in the figure 1, 2, 3, step 2 can be selected based on your own chip. Here I select the lpc2114.

Other tabs can be set by default or as needed.

B. Click OK to exit the Project Settings. You can select File-save projec to save the settings for the next time.

C. Click file-open data file... select the executable file to be burned. hex or binfile is supported.

D. Select "burn file" and click "target-Connect" to link the hardware.

E. After the hardware connection, press F3 to erase the chip and the F5 program will be burned.

After you press F5, a dialog box Indicating whether to set verification is displayed. For security reasons, select Yes. After the installation is successful, a dialog box is displayed.

PS: Keil MDK v4.01 and later versions and J-link drivers support win 7.



From: http://blog.csdn.net/zhzht19861011/archive/2010/10/06/5924218.aspx

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.