You are here
Home > embedded >

EmbSysRegView In Eclipse For SAME54 On Ubuntu

After successfully able to debug using OpenOCD and Eclipse, Now it is time to explore more. To start with, lets install EmbSysRegView plugin, This plugin gives similar functionality to the ‘I/O view’ in Atmel Studio 7. It displays special functions registers (SFR), peripheral registers values and memory values. This needed in embedded system development.

Contents

Installation

Bad news is, You can not install the EmbSysRegView plugin from the eclipse marketplace since eclipse marketplace is referring to old sourceforge download URL.

Installation from Marketplace fails: 
An error occurred while collecting items to be installed
session context was:(profile=_Applications_Eclipse.app_Contents_Eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Artifact not found: http://embsysregview.sourceforge.net/update/plugins/org.eclipse.cdt.embsysregview_0.2.6.jar.

The new link to download is from sourceforge latest download, But it does not download full files and this is also failing. Even if you try to download the source from git

$git clone https://git.code.sf.net/p/embsysregview/git embsysregview-git
It says downloaded folder is empty :-(.

Tried to do google and found out one workaround, But according to workaround for this problem tried to update the plugin in eclipse but failed, so tried with the updated script as

wget
https://sourceforge.net/projects/embsysregview/files/latest/download/org.eclipse.cdt.embsysregview_feature_0.2.6.jar

But this is also failing.

Embsysregview not working

Simple solution is download all four files from sourceforge project folder to your local folder.

EmbsysregView download from parent folder

Copy these four files to “Dropins” folder inside Eclipse and restart Eclipse.

Then use the menu Window > Show View -> other -> Debug and open the EmbSys Registers view: you will get ERROR: please select chip using prefrence page (C++/Debug/EmbSys Register View), so select the proper chip.

Adding Support For SAME54 in EmbSysReg

EmbSysRegView does not come with Atmel/Microchip SAM E54 microcontroller, so This short article explains how to add support for SAM E54 seris in EmbSysRegView with Eclipse on latest Ubuntu.

For this we need to get CMSIS SVD files -The CMSIS System View Description format(CMSIS-SVD) – is the memory mapped registers of peripherals contained in ARM Cortex-M processor-based microcontrollers. That contain standardized descriptions for peripherals and their registers for Cortex-M microcontrollers. All device support from Atmel is available in packs. So Download the pack for SAME54 series and unzip it.

This file we need to copy into ‘org.eclipse.cdt.embsysregview.data_0.2.6.r191.jar'

Open Terminal at the folder with the jar file and run the following commands, this will add svd files and update .jar with added support of SAME54

$unzip org.eclipse.cdt.embsysregview.data_0.2.6.r191.jar -d temp
//Navigate to ‘Atmel.SAME54_DFP.1.0.87’->svd folder
//Then copy these files to ‘temp->data->SVD (CMSIS)->Atmel’
//Change the extension from .svd to .xml
//create .jar file out which includes this update
$jar cvf org.eclipse.cdt.embsysregview.data_0.2.6.r191.jar -C temp/ .

Now copy this updated .jar file to “dropins” folder in Eclipse and restart IDE.

SAME54 Support added in EmbSysRegView

You can now able to select ATSAME54 controller to view all registers. Happy debugging.



One thought on “EmbSysRegView In Eclipse For SAME54 On Ubuntu

  1. I had asked question to microchip support :
    1>>> “Can you please provide me latest '.svd' files for ATSAME54P19A & ATSAME54P20A?”
    If you like to get the latest SVD files, please try the following steps.

    1. Open the “Tools->Device Pack Manager” in Atmel Studio window
    2. Esure that the latest veriosn of SAME54_DFP is installed. The latest ersion of the SAME54_DFP is 1.0.87.
    3. Once installed, please go the following folder in the Atmel Studio 7.0 installation locarion. You will be able to find the latest version of SVD file of the specific device variant.
    C:\Program Files (x86)\Atmel\Studio\7.0\packs\atmel\SAME54_DFP\1.0.87\svd

Leave a Reply

Top