Introduction: Getting Started With GR Peach | LED Blink

Picture of Getting Started With GR Peach | LED Blink

    GR-PEACH from Renesas is an mbed enabled platform which combines the advantages of the mbed ecosystem and Arduino form factor. The RZ/A1H includes an ARM® Cortex™-A9 processor along with the integrated peripheral functions required to configure a system.

    The RZ/A1H includes a 32-KB L1 instruction cache, a 32-KB L1 data cache, and a 128-KB L2 cache. This LSI also includes on-chip peripheral functions necessary for system configuration, such as a 10-MB large-capacity RAM, 128 KB data-retention RAM(shared by the large-capacity RAM), various timer function, real-time clock, serial communication interface(UART), I2C bus interface and graphics related functions.

    Features

    • Renesas RZ/A1H
      • High performance ARM® Cortex™-A9 Core
        • including NEON and FPU400MHz
      • 400MHz, 10MB On-Chip RAM
      • 32KB Instruction cache, 32 KB Data cache and 128KB L2 cache
      • 2xUSB Host/Device Interface, 1xEthernet
      • 5xSPI, 4xI2C, 8xUART, 8x12-bits ADC, 5xCAN, 2xLCDC, 2xCamera Input
      • 2xSD, 2xMMC, GPIO
    • GR-PEACH
      • 8MB FLASH
      • 2xUSB Host/Device Interface, 1xEthernet
      • 5xSPI, 3xI2C, 8xUART, 7x12-bits ADC, 2xCAN
      • 2xCamera Input
      • To be supported
        • 1xLCDC(via LVDS)
    • Arduino form-factor
      • Compatible with a wide range of commercially available shields
      • Built-in USB drag 'n' drop FLASH programmer
    • mbed.org Developer Website
      • Online Compiler
      • High level C/C++ SDK
      • Active developer community

    Step 1: Create an Mbed Account

    Picture of Create an Mbed Account

    For programming of GR Peach, you need to use the online mbed compiler. In order to that, you need to create an mbed account. Goto mbed Developer Site and Click on Login/Register or goto this link: https://developer.mbed.org/account/login/?next=/.

    Step 2: Configure Online Compiler and Install GR Peach Drivers

    Picture of Configure Online Compiler and Install GR Peach Drivers

    After creating your mbed account, Login and under hardware section (top right corner), click on Boards. Now check Renesas in the Board Filter window and double click on GR Peach. Now click on "Add to your mbed compiler", this would add GR Peach settings to your compiler. For Windows User, Download GR Peach Driver. Now Connect your GR Peach to your PC using a USB to Micro-USB Cable. Make sure to connect to the correct USB port of the GR Peach (mbed debug interface port - Right Side Port). After connecting GP Peach, you should get "MBED" as Removable Volume. Now Install the Driver (takes around few minutes to install).

    Step 3: Open Online Compiler and Write Your First Program

    Picture of Open Online Compiler and Write Your First Program

    Now its time to Start Coding! After adding GR Peach Board to your Compiler, click on "Open mbed compiler". This would open Online Compiler in a new tab. Now click on "New" (top right corner) and it would open a dialog box. Click "OK" and this would create a program with default name - mbed_blinky (LED Blink Program). Now double click on "Main.cpp" to open the source file. Click on Compile and this should automatically download a Binary (.bin) file.

    LED Code -

    #include "mbed.h"

    DigitalOut myled(LED1);

    int main() {

    while(1) {

    myled = 1;

    wait(0.2);

    myled = 0;

    wait(0.2);

    }

    }


    Code Components -

    #include "mbed.h" - This imports the library (all functions) for the mbed platform.

    DigitalOut myled(LED1); - Sets LED1 (RED- Onboard) to OUTPUT and myled points to LED1.

    myled = 1; - Sets myled status to HIGH.

    myled = 0; - Sets myled status to LOW.

    wait(0.2); - Delay of 0.2 seconds is generated.

    Note -

    LED1 - RED

    LED2 - GREEN

    LED3 - BLUE

    LED4 - RED

    Step 4: Uploading Code to GR Peach

    Picture of Uploading Code to GR Peach

    Now its time to Run the Code. Connect your GR Peach to your PC, copy the Binary File to the MBED drive. Then reset the GR Peach by pressing the RESET button, this would execute the code. If all goes well, you should see RED LED Blinking!

    Comments

    DIY Hacks and How Tos (author)2016-10-01

    Interesting. I haven't heard of this board before. I am going to have to check it out.

    Go ahead. Have fun!

    About This Instructable

    545views

    6favorites

    Bio: Inventor. Developer. Engineer. Born to Tinker. Live to Ride.
    More by EvilMonkeyTech:Arduino Based Windows PC Volume Remote ControlGetting Started with GR Peach | ButtonGetting Started with GR Peach | LED Blink
    Add instructable to: