How to Flash the S3A7 Board

This tutorial will walk you through a step by step guide to flash the S3A7 Fast Prototyping Kit.

What you need:

  • Renesas S3A7 Fast Prototyping kit with JLink 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.  Note your installation directory, you will need that to call the executable from the command line in a later step.

 

Step 2: Connect the Board to The Computer

Connect the J-Link debugger to your Windows or Mac computer and connect the debugger to the S3A7 Fast Prototyping board, as shown (note the position of the red stripe on the ribbon cable):

unnamed

img_6926    img_6927

Now, connect the USB cable from the JLink programmer to your PC USB port. You also must apply external power on the S3A7 board.

Note, there will be one USB powering the S3A7 board and a second USB from the JLink programmer to your PC.

Programming

ON WINDOWS

When you first plug in your 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 “R7FS3A77C”, Interface is JTAG and speed is 6000.  Click OK once the settings are configured.

screen-shot-2016-09-29-at-4-51-53-pm

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

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

screen-shot-2016-09-29-at-4-53-03-pm

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

screen-shot-2016-09-29-at-4-53-23-pm

Click “Program Device”.

screen-shot-2016-09-29-at-4-54-05-pm

screen-shot-2016-09-29-at-4-54-28-pm

Restart the Board.  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 flash the board 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!