LPC1549 How to use the J-scope of the Jlink tool to observe variables in real time without affecting CPU operation

Source: Internet
Author: User
Tags jlink
LPC1549 How to use the J-scope of the Jlink tool to observe variables in real time, without affecting the CPU operation, speed can also depend on Jlink version model. Engineers don't have to buy an oscilloscope anymore, and it's easy to save money.

The steps are as follows:
I. Jlink tool hardware version and software version, software version to V4.9 and above
Model comparison
J-link Model Max. No. of variables Max. Sampling frequency
J-link PRO (V4 or later) 100 Unlimited1
J-link ultra+ (V4 or later) 100 Unlimited1
J-link PLUS (V9 or later) 10 1 kHz
J-link BASE (V9 or later) 10 1 kHz
J-link EDU (V9 or later) 10 1 kHz
Other models 10 Hz2

Two. Brush the onboard LPC_LINK2 debugger into Jlink in order to be able to debug under MDK LPC1549 Xpresso v2 can use Jlink software features on J-scope, here we first configure the onboard LPC_LINK2 debugger with the tools provided by NXP Tool Version: Lpc_link2_config_tool_v1_11_1 1, LPC_LINK2 hardware short connect JP3 (Link DFU), plug in USB J5, D2 on. [Size=0.83em] Image 1.png (393.05 KB, download number: 0)
Download attachment [Url=] save to album [/URL]
[Color=rgb (153, 153, 153)!important]2014-4-15 23:19 Upload


2. Run DFUSec.exe A, select image file: Jlink_lpc-link2 debugger image B, make current selection: Program The LINK2 with the currently selected C, burn write Completed successfully. Unplug the JP3 short-circuit cap, then Plug and unplug the J5 LINK USB port.
Three. Configure the Software section on the Jlink computer.
Getting started J-scope is part of the J-link software and documentation package (JScope.exe). Start J-scope by double-clicking on the executable. In the configuration dialog, select your elf-file. For most targets, the does of the configuration is not specified. If There is any problems, select your target device and configure the interface accordingly. Click OK. The Symbol Selection Dialog opens. Select the symbols of your application, you want to watch and analyze. Click OK to start J-scope. Data sampling can started via the Record-button (red dot) in the toolbar. The configuration of Elf-file and selected symbols can be saved into a j-scope Project to be easily reused. J-scope Projects can be opened via the menu or simply dropping them onto the executable. For more information on how to use J-scope, please refer to the J-link User Guide (UM08001).
Other models




Four. The effect is as follows: J-scope-real-time data visualization j-scope is a software to analyze and visualize data on a microcontroller In real-time, while the target is running. It does not require features like SWO or any extra pin on the target, but uses the available standard debug port. J-scope can show the value of multiple variables in an oscilloscope-like style. It reads an elf file and allows selection of a number of variables to visualize. You can simply connect the target microcontroller to your j-link, flash your application and start J-scope. With a few steps you can configure J-scope, and select the symbols to be shown. The configuration can be stored in project files for easy re-use and portability. Each symbol selected in J-scope can is configured separately. Move the graph up with the change of the zero-base-line or change its resolution. Choose whether to visualize, the symbol in the graph, or only show it value in the Watch panel. Analyze The collected data, scroll through the Visualized graphs, zoom in and out or save the data to a file for further analysis. J-scope can used in parallel to your debugging environment and extends your IDE ' s debugging experience.

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.