PEmicro | Experts in Embedded tools for Flash Programming and Development
Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service


by Steve McGrath


DAVE™ is an Eclipse-based IDE by Infineon which supports development and debugging of code on XMC1000 and XMC4000 devices. PEmicro's Multilink debug probes and Cyclone programmers can provide sophisticated debug for these Infineon devices via the DAVE™ IDE.  To use PEmicro's debug probes the user can simply install PEmicro's GDB Server Plug-In for ARM devices and then create a launch configuration.

This article will walk the user through the following installation steps:

Installation Steps

Frequency

1. Install the PEmicro GDB server Plug-In for ARM devices

Only Once

2. Create a Launch Configuration

Once Per Project

 

Install the PEmicro GDB server Plugin for ARM devices

The following steps will help the user install the PEmicro GDB Server Plug-In for ARM devices.

1) The first step is to start DAVE™:

2) Hit Ctrl-3 on the keyboard to bring up the Quick Access dialog.

3) Type 'install' and select the 'Install New Software' option from the selections that appear.

This will pop up the following Install dialog:

4) Near the top, in the 'Work With' input box, enter the following web address and then hit the Add button. 

    http://www.pemicro.com/eclipse/updates/Infineon

5) In the 'embsysregview' category, select both the 'Embedded Systems Register View (SFR)' and the 'EmbSysRegView Data' option.

6) Further down, in the 'PEmicro Software' category, select the 'GNU ARM PEmicro Interface Debugging Support' option.

7) At the bottom click the Next button, accept the License, and click Finish.

This will install support for PEmicro's Multilink and Cyclone hardware into DAVE™. All corresponding target devices that are supported by PEmicro hardware can be connected. A dialog will pop up prompting the user to restart DAVE™. Click Yes.

PEmicro debug support has now been added into DAVE™.


Create a Launch Configuration

The following steps will help the user create a Launch configuration:

1) Create a new project (or open an existing project).

     a) Select the “File” tab in the top left corner and then select New->Dave Project as shown in the figure below. 

     b) The following screen will appear to create a new DAVE project, name the project and select the type of project that will be created.

     c) Then, under the 'Microcontrollers' option, select the desired target board as well as the specific part of the target board, categorized by MCU family. Once these are selected, click Finish. 

2) Build the project by right-clicking on the project and then selecting the 'Build Project' option. Alternately, select the project in the Project Explorer popup menu and click the icon with the picture of a hammer on the main button bar to build it:

3) Once the project is ready to be debugged for the first time, open the Debug Configurations dialog. This can be done from the main button bar (as highlighted in the figure below) or the Project Explorer popup menu. The Project Explorer popup menu is shown here:

This brings up the dialog where launch settings are configured. Normally, the user would select the configuration of their choice to edit it. In this case a launch has never been configured before, so that will be the next step. 

4) Create a launch configuration (new project)

    a) First remove any filter text by clicking on the icon that shows three arrows pointing to the right. This will make sure that the GDB PEMicro settings will appear

    b) This will bring up the Launch Configurations window. Locate the 'GDB PEMicro Interface Debugging' option in the drop down menu and uncheck the option. Then click Apply and OK to remove the filter.

    c) The 'GDB PEMicro Interface Debugging' option should now be visible  in the Debug Configurations window. Double click this option.

    This will create a GDB PEmicro debug configuration with default settings which need to be adjusted as the next step.

5) Adjust the default launch config settings.

    a) Select the 'Debugger' Tab of the Debug Configurations dialog. This brings up launch settings for the currently selected configuration.

    b) Select the PEmicro hardware being used to interface with the target device. In this case, the Multilink FX hardware via USB connection will be selected

    c) Next select the specific microcontroller type to be debugged. This is done by clicking the 'Select Device' button which pops up the 'Select Target Device' dialog. 

    This dialog shows a tree structure of all supported devices. There is a box where a string may be entered to filter the devices shown (blank = everything). In this example, the XMC4800-1024 device is being set up.  Enter '4800' in the filter box to make the selection easier. 

    Select the device to be programmed and click the 'Select' button.

    The GDB Debug Client also needs to be specified to launch a debug session. There is a panel titled 'GDB Client Settings' on the Debugger Tab which has a path to the GDB client executable (provided by Infineon). 

    d) Click the 'Browse...' button and navigate to the proper GDB client executable (usually arm-none-eabi-gdb.exe). 

    In this example, the path is 'C:\DAVE_IDE\DAVE_4-4-2_64bit_2018-02-23\DAVE-IDE-4.4.2-64Bit\eclipse\ARM-GCC-49\bin\arm-none-eabi-gdb.exe'. Once selected, the path is shown in the 'Executable' input box.

There are many settings in this dialog such as selecting semihosting, using retarget or updating linker scripts and startup code,. Refer to the plug-in documentation for these details which in this example is located in the C:\DAVE_IDE\DAVE_4-4-2_64bit_2018-02-23\DAVE-IDE-4.4.2-64Bit\eclipse\ARM-GCC-49\share\doc\gcc-arm-none-eabi\readme.txt.

Click the Apply button to save the settings and then the Debug button to launch a debug session. The Infineon's DAVE IDE is now ready to debug via PEmicro's Multilink or Cyclone





search in blog posts

Tags

Product pages
Cyclone (60)
Cyclone FX (61)
Multilink (37)
Multilink FX (32)
GDB Server (13)
Prog ACMP (13)
Interface Library Routines (5)


Manufacturer
ARM (51)
NXP (61)
Microchip (6)
Cypress (7)
Infineon (4)
Maxim (3)
Nordic Semiconductor (3)
Silicon Labs (5)
Silergy Teridian (1)
STMicroelectronics (7)
Texas Instruments (2)
Toshiba (3)
Renesas (6)


Categories
Production Programming (66)
Debug (39)
Automated Control (17)
Miscellaneous (36)



© 2019 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement