How to Flash the SK-S7G2 Board

This tutorial will show you how to flash the SK-S7G2 board.

What you need:

  • Renesas SK-S7G2 board with USB connector
  • Download “J-Link Software and Documentation Pack” from https://www.segger.com/downloads/jlink if not already installed on your computer
  • Program image (.srec format)
  • Windows or Mac computer

 

Step 1: Install J-Link Software

Do this only if you do not have the J-Link Software installed.

 

Step 2: Connect the Board to The Computer

Connect the USB cable to your Windows or Mac computer and the debug port of the SK-S7G2 board as shown.  Note: there are two USB connectors.  Be sure to use J19, which is marked DEBUG_USB.

img_2841

 

Step 3: Programming

ON WINDOWS

When you first plug in your SK-S7G2 board, you will notice that Windows will install drivers.

screen-shot-2016-09-28-at-6-39-21-pm

On your Windows PC, open the J-Flash Lite application.

screen-shot-2016-09-29-at-4-50-11-pm

You may see a popup notice like this, click OK.

screen-shot-2016-09-29-at-4-50-33-pm

Config the Settings on the following screen like so.  Note the Device is “R7FS7G27H”, Interface is SWD and speed is 1000.  Click OK once the settings are configured.

screen-shot-2016-09-29-at-5-04-20-pm

screen-shot-2016-09-29-at-4-59-52-pm

On the next window, add a Data File (your .srec image you wish to program).

screen-shot-2016-09-29-at-5-03-19-pm

Select your image to program and click Open.  In this case, we are programming the ConnectedWeatherPanel.srec image.

screen-shot-2016-09-29-at-4-57-15-pm

First, click ‘Erase Chip’ to clear what is already on the board. Then, click “Program Device”.

screen-shot-2016-09-29-at-5-03-29-pm

This is what the board may look like after programming.

untitled

Restart the Board by removing and re-attaching the USB cable.   This is what the board may look like after restart.

untitled1

Congrats, you’re done!

 

NOTE: If you see this popup, that means the JLink drivers were not successfully installed and you should unplug the USB cable and plug back to your PC until you see the JLink driver install.  Then repeat the previous step in flash the board.

screen-shot-2016-09-28-at-6-38-53-pm

 

ON MAC:

Follow this video guide to program using Terminal and command line.  For this step you will need the following command and the program.jlink file (download).

Remember to edit the jlink file to replace ‘file_name.srec’ with the srec file you are flashing the board with.

/Applications/SEGGER/JLink/JLinkExe -If JTAG -JTAGConf -1,-1 program.jlink

Restart the Board.  Congrats, you’re done!