RZ/T2M Software Tools

RZ/T2M Software Tools

E2studio

Configure/Generate and Build a project from Command Line

Prerequisites:
  1. Install e2studio.

  2. Install the standalone Smart Configurator intended for IAR.

  3. Use an existing project for e2studio or create a blinky project with e2studio for testing.

Generate FSP files and configuration:
  1. Open Windows command prompt

  2. Go to project folder

  3. Open Smart Configurator (adapt the path accordingly):

    C:\Renesas\rzt\sc_v2025-01_fsp_v2.3.0\eclipse\rasc.exe --compiler GCC configuration.xml

    (Option --help shows a list of available options.)

  4. Configure the project and generate the files as usual

Build the project:
  1. Open Windows command prompt

  2. Go to the "Debug" folder below the project folder

  3. Call the make tool to build (adapt the path accordingly):

    C:\Renesas\e2_studio\eclipse\plugins\com.renesas.ide.exttools.gnumake.win32.x86_64_4.3.1.v20240909-0854\mk\make.exe -r --output-sync -j8 all

  4. To clean the project call: 

    C:\Renesas\e2_studio\eclipse\plugins\com.renesas.ide.exttools.gnumake.win32.x86_64_4.3.1.v20240909-0854\mk\make.exe clean

Enable and Use NEON on RZ/T2M-RSK

NEON is an advanced SIMD (Single Instruction, Multiple Data) architecture extension for ARM processors that provides acceleration for multimedia and signal processing applications. On the RZT2M-RSK platform, NEON can be utilized to enhance the performance of computation-heavy tasks. This guide outlines the steps to enable and begin using NEON on the RZT2M-RSK using the Renesas e² studio IDE.

1. Enable NEON in e2studio
  • Check the selection of Float ABI and FPU Type in Properties ==> C/C++ Build ==> Settings ==> Target Processor.

2. Implement code to for NEON
  • The code example below is to execute the vector addition by using GCC builtin NEON instruction.

void vector_addition(int32_t *a, int32_t *b, int32_t *result, int n)
{
    for (int i = 0; i<n; i += 4)
    {
        int32x4_t va = vld1q_s32(&a[i]);
        int32x4_t vb = vld1q_s32(&b[i]);
        int32x4_t vres = vaddwq_s32(va, vb);
        vst1q_s32(&result[i], vres);
    }
}

3. Test NEON performance
  • Use CNTPCT value to calculate the time consumption between t2 and t3.

t2 = __get_CNTPCT();
for (i=0 ; i<10000 ; i++)
{
    vector_addition(vector_a, vector_b, result_c, 128);
}
t3 = __get_CNTPCT();

IAR

Download a Binary to a Board

How to flash and start a provided binary with the IAR EWARM:

  • Start IAR EWARM

  • Create a new workspace (File → New Workspace) and save (File → Save Workspace As).

  • Create new project (Project → Create New Project), select "Externally built executable", specify a project name and save.

  • Right-click on the project in workspace area and select "Add external binary". Select the out-file from disk.

  • (Skip selection of folders with header files if these are not available.)

  • Open Project → Options → General Options → Target: Select "Device" and the right one from list, e.g. Renesas →  RZ/T2M → <Device ID>.

  • In same dialog go to Debugger: Select Driver e.g. as "i-jet".

  • Close Option Dialog.

  • Start Debugger session. The binary will be downloaded and started.