How to Flash the DK-S7G2 Board

This tutorial will walk you through a step by step guide to flash the DK-S7G2 board.

What you need:

  • Renesas DK-S7G2 board with USB and power 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 J17 port of the DK-S7G2 board as shown.  Note, there are two USB connectors.  Be sure to use J17.

img_3041

Step 3: Programming

ON WINDOWS

When you first plug in your DK-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-DKS7.srec image.

screen-shot-2016-10-11-at-1-37-51-pm

Click “Program Device”.

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

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

img_3040

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).

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

Restart the Board.  Congrats, you’re done!