Programming GR PEACH

Is it compulsory to use Renesas Online Compiler for programming the Peach Board for this Contest?

In GR PEACH Official Rules and Regulations it is mentioned that:-

"Using the GR PEACH Board and Renesas Online Compiler, contestants are expected to submit “Prototype”(defined below) by 15th January 2017"

I am asking this because the support for GR PEACH is good on mbed platform as compared to Renesas Online Compiler. By support i mean the libraries and functions available for this board for example, Ethernet Library, etc.

If it is compulsory to program using Renesas Online Compiler then we would be happy if Renesas provides us the necessary libraries and other dedicated functions available for GR PEACH in Renesas Online Compiler.

  • Hi, Amol-san

    We recommend RENESAS Web compiler, but it is not compulsion.

    Matsuyama@RENESAS

  • In reply to Akihiro Matsuyama:

    Hello, Matsuyama-san

    I have gone through libraries available on Renesas Web Compiler.


    which don't have audio and camera related libraries.As well as it is showing for GR-sakura but I had selected GR-Peach.

    How to get those libraries for Peach board ?

  • In reply to Brijesh:

    As you mentioned Renesas WebC does not support dedicated library such as camera, USB host and LCD for now. You can use basic libraries for Arduino with default project template on WebC that you can find in gr_common folder. I will make reference document by next week.

    Of course you can us mbed environment.

  • In reply to Okamiya Yuuki:

    Where can i get the GR PEACH libraries like Ethernet, RTC, LCD, USB Host, and other for Renesas Compiler?

  • In reply to D_Amol:

    Thanks for the offline IDE for GR Boards ; Its nice to have support for GR SAKURA ; GR PEACH (as I have both the Boards) and other Board's but no Library for ESP8266 ESP12e

    help me to get the ESP8266 ESP12e Library for my Project GR PEACH as Arduino IDE Supports for the ESP 8266

    http://gadget.renesas.com/en/

    nodemcu.readthedocs.io/.../dev

    Thanks in advance

  • In reply to mkbutan:

    Hi Akihiro-san and Okamiya-san,

    As mkbutan-san said above an IDE is released for GR Boards - GR-SAKURA, GR-KAEDE, GR-KURUMI, GR-COTTON, GR-CITRUS and GR-PEACH.

    (Link- http://gadget.renesas.com/en/product/ide4gr.html) So for GR Peach Design Contest 2016 can we use IDE for GR Boards to program GR-PEACH?

    Also Okamiya-san, You said you will make reference document by next week on 8 Sep 2016. But we haven't got it!!Can you please make the reference as soon as possible.

    Thanks in advance

  • In reply to D_Amol:

    Hi mkbutan-san, 

    The attachment is library for ESP8266 Wifi communication. Import that from menu.

    But now, we don't describe how to use that. So please refer to ESP8266.h about API.

    Hi, D_Amol-san,

    There is no problem to use IDE. And very sorry not to prepare the reference.

    As you may know, other reference such as GR-SAKURA is almost same so that use GR-PEACH. 

    http://gadget.renesas.com/en/reference/sakura/

    Anyway, I will prepare by next monday. I promise you.

    ESP8266_Arduino_AT.zip
  • In reply to Okamiya Yuuki:

    Hi mkbutan-san, again.

    The attachment is library for Milkcocoa cloud system in Japan, also available for global. This libary use ESP8266 library.

    So this is for reference to use your programming.

    Below is sample for milkcocoa library.

    #include <Arduino.h>

    #include "ESP8266.h"
    #include "Milkcocoa.h"
    #include "Client_ESP8266.h"


    #define ESP_Serial Serial7
    /************************* WiFi Access Point *********************************/

    #define WLAN_SSID "Buffalo-G-0055"
    #define WLAN_PASS "pauaw3h3a6feu"
    //#define WLAN_SSID "gadget_renesas"
    //#define WLAN_PASS "rene_rene"

    /************************* Your Milkcocoa Setup *********************************/

    #define MILKCOCOA_APP_ID "***************"
    #define MILKCOCOA_DATASTORE "***************"
    /************************* API KEY *********************************/

    //#define MILKCOCOA_API_KEY "...YOUR_MILKCOCOA_API_KEY..."
    //#define MILKCOCOA_API_SECRET "...YOUR_MILKCOCOA_API_SECRET..."

    /************* Milkcocoa Setup (you don't need to change this!) ******************/

    #define MILKCOCOA_SERVERPORT 1883

    /************ Global State (you don't need to change this!) ******************/

    // Create an ESP8266Client class to connect to the MQTT server.
    ESP8266Client wifi;

    const char MQTT_SERVER[] PROGMEM = MILKCOCOA_APP_ID ".mlkcca.com";
    const char MQTT_CLIENTID[] PROGMEM = __TIME__ MILKCOCOA_APP_ID;

    #ifndef MILKCOCOA_API_KEY
    Milkcocoa milkcocoa = Milkcocoa(&wifi, MQTT_SERVER, MILKCOCOA_SERVERPORT, MILKCOCOA_APP_ID, MQTT_CLIENTID);
    #else
    Milkcocoa *milkcocoa = Milkcocoa::createWithApiKey(&wifi, MQTT_SERVER, MILKCOCOA_SERVERPORT, MILKCOCOA_APP_ID, MQTT_CLIENTID, MILKCOCOA_API_KEY, MILKCOCOA_API_SECRET);
    #endif

    void onpush(DataElement *pelem);

    int cnt;


    void setup()
    {

    // For confirmation of MIKAN operation
    pinMode(PIN_LED0, OUTPUT);
    digitalWrite(PIN_LED0, LOW);

    Serial.begin(9600);
    wifi.begin(ESP_Serial, 115200);

    while(!Serial.available()); // Wait to press any key.
    Serial.read();
    Serial.println("GR-PEACH start");

    if (wifi.setOprToStation()) {
    Serial.print("to station ok\r\n");
    } else {
    Serial.print("to station err\r\n");
    }

    if (wifi.joinAP(WLAN_SSID, WLAN_PASS)) {
    Serial.print("Join AP success\r\n");
    Serial.print("IP: ");
    Serial.println(wifi.getLocalIP().c_str());
    } else {
    Serial.print("Join AP failure\r\n");
    }

    if (wifi.disableMUX()) {
    Serial.print("single ok\r\n");
    } else {
    Serial.print("single err\r\n");
    }

    #ifndef MILKCOCOA_API_KEY
    if(milkcocoa.on(MILKCOCOA_DATASTORE, "push", onpush)){
    #else
    if(milkcocoa->on(MILKCOCOA_DATASTORE, "push", onpush)){
    #endif
    Serial.println("milkcocoa on sucesss");
    }
    else {
    Serial.println("milkcocoa on failure");
    }

    cnt = 0;
    }

    void loop()
    {
    #ifndef MILKCOCOA_API_KEY
    milkcocoa.loop();
    #else
    milkcocoa->loop();
    #endif

    DataElement elem = DataElement();
    elem.setValue("v", cnt++);
    #ifndef MILKCOCOA_API_KEY
    milkcocoa.push(MILKCOCOA_DATASTORE, &elem);
    #else
    milkcocoa->push(MILKCOCOA_DATASTORE, &elem);
    #endif

    delay(7000);
    }

    void onpush(DataElement *pelem) {
    Serial.println("onpush");
    Serial.println(pelem->getInt("v"));
    }

    Milkcocoa_Arduino_SDK.zip
  • In reply to Okamiya Yuuki:

    Hi, D-Amol-san

    I made the reference for GR-PEACH Arduino sketch. Please confirm that.

    gadget.renesas.com/.../peach

  • In reply to Okamiya Yuuki:

    Hi Okamiya-san,

    Just can you tell us how to make a web server on GR-PEACH?

    Is there any library for REST API based on HTTP for GR-PEACH? Also i wanted to know about the MQTT library support?