Please enable JavaScript to view this site.

winIDEA Help

Version: 9.17.176

Getting started with RH850

For the best evaluation experience we recommend to use the examples, which come already prepared, built and ready-to-go. Check also online Tutorials, which focuses on the basics and follows the recommended learning sequence of our field application engineers with many years of training experience.

 

Setting up a new RH850 workspace

In this tutorial we will set up a new RH850/F1H workspace, which will be debugged using an On-Chip Analyzer iC5700. We'll be using the On-chip trace buffer.

NewWorkspaceDialogRH850

Create a new workspace

1. Click File / Workspace / New Workspace

2. Choose a file name and location

3. Click OK to create a new workspace

 

Connecting to the On-Chip Analyzer iC5700 via the USB

GettingStartedT3Hwconnect

Connect the hardware

1. Connect power supply cable. The required power supply cable is delivered with the BlueBox. A round 3-pin power connector is located on the rear of the BlueBox base unit.

 

NOTE: Double check that the BlueBox power switch is in OFF position before connecting the power supply.

 

It is important to push in (pull out for disconnect) the power supply connector plastic sleeve carefully into the BlueBox as it features a locking mechanism.

 

2. Connect the iC5700 via the USB.

3.  Turn it on.

HardwareConfigurationDialogRH850

Configure the hardware

1. Open the Hardware / Hardware dialog and select iC5700 as the Hardware Type.

2. Click OK.

GettingStartedT3hwconnect2

Test the communication

1. Open Hardware / Hardware / Communication tab. USB communication is set by default.

In case you have connected more On-Chip Analyzers, choose the suitable one from the drop-down menu Device.

2. Click Test to verify that the communication with the iC5000 can be successfully established.

 

Connecting to the On-Chip Analyzer iC5000 via the Ethernet

iC5000BackETH

Connect hardware

1. Connect the iC5000 via the Ethernet cable.

2. Connect the power supply and turn it on.

ETHCommunication

Communication settings

1. Open the Hardware / Hardware / Communication tab and select TCP/IP communication. By default the IP address is allocated dynamically.

2. Click Test to check, if the communication is successful.

 

Specifying the CPU and target board settings

EmulationOptionsCPUsetup

Specify the CPU

1. Open the Hardware / Emulation Options dialog and select the Renesas RH850 Family from the drop-down menu. RH850 under POD/iCARD/iTAG is selected by default.

2. Under CPU select the CPU you are using.

3. Confirm by clicking OK.

 

 

Settings based on the target board

Most settings are set by default and need to be changed only in specific cases. Following are the ones that need to be configured based on your target board.

 

Debugging settings

Enter the frequency of the External Oscillator that is present on your target board. This frequency is used by the Renesas native FP5 protocol - flash operations might fail if the value is incorrect.

EnteringExtOscillatorClock

Set the external oscillator clock

1.Open the Hardware / Emulation Options / CPU tab dialog and click the CPU Setup button.

2. Click on the Debugging tab in CPU Setup window.

3. Enter the frequency of the External Oscillator that is present on your target board.

 

Verifying the settings

Above settings are crucial to establish a debug session. If any setting is incorrect, debug session will not be established. In order to verify that above settings are correct, CPU reset should be performed:

RH850F1HSetup

Reset the CPU

1. Turn off the On-Chip Analyzer iC5000.

2. Connect the debug cable to the target board.

3. Connect the ground wire to the target board.

4. Turn on the iC5000.

5. Then turn on the target board.

6. Click Debug / Run control / CPU Reset to make sure that debug session can be successfully established.

 

Adding a download file

In order to download the application to the microcontroller, the download file must be specified in the workspace. In this tutorial we assume, that the download file containing executable code and debug information is built with a third-party build tool.

DownloadFileRH850

Add a file to for debugging

1. Open Debug / Files for download window and select Add. Choose the desired download file and click OK.

2. Window Edit options appears and based on the download file type you may review the available options. Click OK to confirm.

3. Download File options dialog will open.

If your code needs to be loaded at an offset, enter the offset for the code and the symbols.

4. Click OK to confirm the Download file settings.

Verifyfeature2

5. Click on the Options tab.

6. Enable the Verify option and click OK to confirm.

RH850FindSourceFiles

Locate the source file

winIDEA needs to locate the source files in order to be able to debug the application on the source code level.

1.Open Debug / Debug Options / Directories tab and add path with New button to the source files to the alternate project files search directories list.

2. Enable the Search subdirectories option if necessary.

3. Click Close to confirm.

 

Start debugging

Download the application to debug by choosing Debug  / Download. The download will be verified and you will be notified about any download errors, if they occur. You may now debug you application.

 

Setting up the Analyzer

On-chip trace buffer is already chosen by default and to use it cycle duration needs to be entered in order to properly display the Profiler timeline.

AnalyzerCycleDuration

Set up the Cycle duration

1. To use the On-chip trace buffer, open the Hardware / CPU Options / Analyzer tab

2. Calculate the cycle duration based on the CPU clock and enter the duration in the Cycle duration field

 

Further read

Copyright© iSYSTEM AG Carl-Zeiss-Str.1 85247 Schwabhausen Germany