Cosmic ZAP

From SEGGER Wiki
Revision as of 10:27, 9 October 2020 by Matthias (talk | contribs) (Created page with "'''Cosmic ZAP Debugger''' is a full featured source-level debugger. It can be used stand-alone or together with Cosmic's Cross Development Tools used to create the project for...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Cosmic ZAP Debugger is a full featured source-level debugger. It can be used stand-alone or together with Cosmic's Cross Development Tools used to create the project for ZAP. Currently, only Cortex-M devices are supported by ZAP in combination with J-Link.

Using J-Link Built-In Flash Loaders

ZAP for J-Link is configured to be used with a J-Link out-of-the-box and automatically uses the J-Link built-in flash loaders. J-Link built-in flash loaders are highly optimized for flash programming.

Using Cosmic ZAP J-Link Support with a Cosmic IDE Project

Cosmic automatically uses the latest J-LinkARM.dll installed. To use ZAP J-Link the J-Link Software and Documentation package needs to be installed. It is recommended to always use the latest version of the software, which will automatically be used by ZAP. To open a project and start ZAP J-Link follow the instructions below:

  • Select Project | Load...
  • Select a sample project file (here: Acia.prj)
  • Click Open

Cosmic ZAP Tutorial 1.png

  • Now Cosmic should look like the following:

Cosmic ZAP Tutorial 2.png

Now we need to connect Cosmic IDE with Cosmic Debugger.

  • Select Build | Setup Tools | Debugger | Application
  • Select ZAPJLink.exe
  • Press Open
  • Your Main Window should have changed the ZAP icon now

Cosmic ZAP Tutorial 3.png

To start the Debugging Application, click the red 'Zap' Icon.

Cosmic ZAP Tutorial 4.png

Configurating ZAP Debugger to work with J-Link and the target device

ZAP J-Link is built to automatically find and connect to a J-Link. To start ZAP it is necessary to have one J-Link connected to the PC as well as to the target device. The target connection can be set as follows:

  • Select Target | Connect
  • Choose the target settings for your device and click Ok

Cosmic ZAP Tutorial 5.png

  • Now you can start debugging using J-Link.

Cosmic ZAP Tutorial 6.png