Difference between revisions of "Renesas e²studio"
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
== Creating a project from scratch == |
== Creating a project from scratch == |
||
+ | |||
+ | When creating a new project with e²Studio, you can set it up to work with J-Link as follows: |
||
+ | |||
+ | * Select '''New''' -> '''C Project''' from the '''File''' menu. |
||
+ | |||
+ | [[File:e2Studio_Tutorial_1.png]] |
||
+ | |||
+ | * Fill in the project name (eg. 'Test'). Click '''Next'''. |
||
+ | * Select the '''Sample Project''' as the '''Project type''' and '''KPIT GNURX-ELF Toolchain''' as '''Toolchain'''. Click '''Next'''. |
||
+ | * Select '''Segger JLink''' as '''Debug Hardware''' and check '''Hardware Debug'''. Select your target device and the data endianess. Click '''Finish'''. |
||
+ | |||
+ | [[File:e2Studio_Tutorial_2.png]] |
||
+ | |||
+ | * The project summary page will be displayed. Click '''OK''' on the summary page or '''Cancel''' to go back and change some settings. The wizard may ask you that this project is associated with '''C/C++ Perspective''' then press '''yes'''. |
||
== Using an existing project with J-Link == |
== Using an existing project with J-Link == |
||
+ | |||
+ | If you already have an e²Studio project, you can change it to work with J-Link with following steps: |
||
+ | |||
+ | * Select '''Project''' -> '''Properties'''. |
||
+ | * Select '''Run/Debug Settings''' and the Launch configuration for your project (Normally the same name as your project). Click '''Edit'''. |
||
+ | |||
+ | [[File:e2Studio_Tutorial_3.png]] |
||
+ | |||
+ | * Tab '''Debugger'''. Select '''Segger JLink''' as '''Debug Hardware''' and select your '''Target Device'''. |
||
+ | * Tab '''GDB Settings'''. Check '''Autostart local GDB server'''. |
||
+ | |||
+ | |||
+ | [[File:e2Studio_Tutorial_4.png]] |
||
== Enabling Trace == |
== Enabling Trace == |
||
* The Trace view can be activated in the menu Renesas Views -> Debug -> Trace |
* The Trace view can be activated in the menu Renesas Views -> Debug -> Trace |
||
− | [[File:e2Studio_EnableTraceView.png]] |
+ | [[File:e2Studio_EnableTraceView.png|none]] |
* The Trace view will now be the active tab in the list of debug views. |
* The Trace view will now be the active tab in the list of debug views. |
||
* Trace can be activated by clicking the On/Off button in the top right corner of the view |
* Trace can be activated by clicking the On/Off button in the top right corner of the view |
||
− | [[File:e2Studio_TraceView_Disabled.png]] |
+ | [[File:e2Studio_TraceView_Disabled.png|none]] |
* Trace is now activated and will show trace data every time the device is halted |
* Trace is now activated and will show trace data every time the device is halted |
||
− | [[File:e2Studio_TraceView_Active.png]] |
+ | [[File:e2Studio_TraceView_Active.png|none]] |
Latest revision as of 14:09, 8 October 2020
Creating a project from scratch
When creating a new project with e²Studio, you can set it up to work with J-Link as follows:
- Select New -> C Project from the File menu.
- Fill in the project name (eg. 'Test'). Click Next.
- Select the Sample Project as the Project type and KPIT GNURX-ELF Toolchain as Toolchain. Click Next.
- Select Segger JLink as Debug Hardware and check Hardware Debug. Select your target device and the data endianess. Click Finish.
- The project summary page will be displayed. Click OK on the summary page or Cancel to go back and change some settings. The wizard may ask you that this project is associated with C/C++ Perspective then press yes.
Using an existing project with J-Link
If you already have an e²Studio project, you can change it to work with J-Link with following steps:
- Select Project -> Properties.
- Select Run/Debug Settings and the Launch configuration for your project (Normally the same name as your project). Click Edit.
- Tab Debugger. Select Segger JLink as Debug Hardware and select your Target Device.
- Tab GDB Settings. Check Autostart local GDB server.
Enabling Trace
- The Trace view can be activated in the menu Renesas Views -> Debug -> Trace
- The Trace view will now be the active tab in the list of debug views.
- Trace can be activated by clicking the On/Off button in the top right corner of the view
- Trace is now activated and will show trace data every time the device is halted