How to configure HEW (High-performance Embedded Workshop) for GR-Sakura Board [offline compiler]

25 Jul

1) Go to

2) Click on “Development Tools” tab, then choose “RX” as shown below: 1

3) Click on “RX600” on the side tab as shown below:2

4) Now choose  “RX63N” from the side tab3

5) Click on “Software tools” tab4

6) Scroll down the page and click on C/C++ Compiler Package for RX Family5

7) Now go to the download tab(as shown in red box), and choose first “[Evaluation Software] C/C++     Compiler Package for RX Family V.1.02 Release 01”,agree and download it.Now from the previous page choose “High-performance Embedded Workshop V.4.09.01 Full Update”, agree  and download it6

8) Download the two setup files above and first install the “[Evaluation Software] C/C++ Compiler Package for RX Family V.1.02 Release 01”, and then its update file (optional) “High-performance Embedded Workshop V.4.09.01 Full Update”

9) Now go to

10) Register on this site, wait for their email response.They will first send you the activation key for their software and then a few day after, the username and the password.You will need  this username and password to download their software toolchain for RX series

11) After you have got the username and password, go to the “Free download” section on their site and choose “Latest KPIT GNU tools” from the drop down menu7

12) Enter the username and password, and you will get onto the following page, Choose “GNURX v12.03 Windows Tool Chain (ELF)” (as shown in red marking and download it8

13) Install this toolchain, provide the activation key wherever it asks and this will be installed in the same HEW folder

14) Now you have downloaded all the software needed. Next step is to configure the HEW environment

15) Now download the following zip file.

16) HEW will automatically create “Workspace” directory in your C: drive. Extract the contents of the above downloaded zip file and place it in the “C:\WorkSpace” that is in the “Workspace” directory

17) Now start the HEW compiler

18) Choose “Browse to another project workspace”, and locate the “SAKURA_Debug_HEW_Full” folder, open it and choose “SAKURA_Debug_HEW.hws” workspace9

19) It will tell you that target driver is missing, ignore it and click OK

20) Now choose “Debug” in the debug drop down list, and “Default session” in the session list as shown below:10

21) Click on “save workspace”, “save session”, and “save all” from the file menu

22) Click on file “random.h” in the include>>rxduino folder and remove the following lines:

#ifndef __cplusplus

#error This library can be used with C++.


23) Repeat “Step 21”

24) Now go to Build menu and click “Build All”

25) If at the end, you get “0 errors,3 warnings”, then congratulations you have set up your HEW successfully.(Ignore these 3 warnings, bastard)12

26) Now the next step is to configure HEW to generate “sketch.bin” file that will go into the GR-Sakura

27) Select menu item Build >> “Build Phases”

28) Click on Add to add a new phase

29) Select Create a new custom phase, the click Next

30) Select Single phase, then Next

31) Set Phasename as MyPhase (or whichever name you want)

32) Set Command as, “C:\Program Files\Renesas\Hew\Tools\KPIT\GNURX-ELF\v12.03\rx-elf\bin\rx-elf-objcopy.exe”, or locate yourself the “rx-elf-objcopy.exe” file as I did

33) Default options will be set later  

34) Initial directory $(CONFIGDIR) or whichever you want  

35) Then click on Next

36) Click on Finish

37) Select menu item: Build >> “MyPhase” and set Options as:

  -v -O binary $(CONFIGDIR)\$(PROJECTNAME).x $(PROJDIR)\sketch.bin

38) Click on Output Files, then Add: $(PROJDIR)\sketch.bin

 39) Click on Dependent Files, then Add: $(CONFIGDIR)\$(PROJECTNAME).x

 40) Click Ok

41) Repeat “Step 21” (important, else your phase will be lost next time you start HEW)

42) Now go to Build menu and click “Build All”

43) This time,”sketch.bin” will be created in the  

                            “C:\WorkSpace\SAKURA_Debug_HEW_Full\SAKURA_Debug_HEW” directory13

44) A big CONGRATS, you have setup HEW for GR sakura successfully


Posted by on July 25, 2013 in Microcontrollers


10 responses to “How to configure HEW (High-performance Embedded Workshop) for GR-Sakura Board [offline compiler]

  1. arun

    July 25, 2013 at 2:04 pm


  2. arun

    July 25, 2013 at 2:24 pm

    rx-elf-ld.exe:C:\hew\SAKURA_Debug_HEW_Full\SAKURA_Debug_HEW\Debug\SAKURA_Debug_HEW_Debug_auto.gsi:24: syntax error
    i get this error

  3. rosh

    July 26, 2013 at 4:24 pm

    it works..
    thank u..

  4. TIrthraj

    August 4, 2013 at 6:06 am

    Thanks Buddy… Great Work…

  5. mkbutan

    August 6, 2013 at 2:43 pm

    Trillions of thanks its great

  6. mkbutan

    August 8, 2013 at 1:36 pm

    sir I have Installed all the S/W as you guided .
    But Iam not able to make the ” *.bin ” file. in the ” HEW ” the File is saving as ” *.txt ” File
    Please Help me What to Do???
    Thanks in Advance

  7. jz

    September 7, 2013 at 4:49 pm

    You are a STAR 🙂

    I followed very carefully each step and it works.
    I had to download the latest version GNURX v13.01
    But this also seems to work with that version 🙂

    Many, many thanks for your work.

    And your blog contains alot of nice still, will have a look …

    • embeddedfortheevil

      September 8, 2013 at 1:24 pm

      Thanks for ur precious reply.
      Please share it and help others.

  8. tobias

    September 10, 2013 at 9:24 pm

    The offline compiler works so far for simple examples. But when i compile some ethernet example ( no ethernet connection is possible. The same code compiled with the online compiler works well. Is this problem known – maybethere exists some general problem? Is there any solution?

    • embeddedfortheevil

      September 11, 2013 at 11:39 am

      Yeah tobi,you are right somewhere.I do have find something not working with the ofline compiler,rather some are compiled very well.I don’t know what is happening behind.I think you should raise this question on the forum.It is the best place to ask as it is do reviewed by renesas engineers.And let me know if you get the solution to this.
      (The saddest thing is that i am no more working on sakura board now)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: