Ethernet Flash Boot Loader

Hi guys,

I just started to build an app on PE-HMI1 (SSP 1.2.1).

I want know if there are some example of BootLoader work on ethernet like the old RX62N/RX63N ( www.renesas.com/.../D3007836.html )

Somebody knows something already implemented.

Thank you.

  • Hello Microit,

    I developed a simple bootloader application for SK-S7 that uses Ethernet to connect to the TFTP server at 192.168.0.2 (I used TFTPD64 on Windows to host files) and download and program "S7_SK_image.bch". Project was developed for SSP 1.2.0-b.1 and older version of the Flashloader framework but should work with the new modules without any problem.

    s7_sk_nx_tftp_boot_1_2_0b1.zip

    Regards

  • In reply to Renesas Karol:

    Thank you Karol.
    But in ssp 1.2 I can't find the stack "Bootloader Framework".
    I've install "Flashloader_pack1.2.0b1.exe" but I think this pack is only for ssp 1.2.0 b1.
    I don't know if it's a package problem or license or my device isn't compatible.
    I try to find the solution.
  • In reply to Microit:

    Hi Microit,

    Did you copy the Renesas.Synergy_flashloader.1.2.0-b.1.pack file to %E2_STUDIO_DIRECTORY%\internal\projectgen\arm\Packs from Flashloader_DK_S7G2.zip\Flashloader_Module?

    As Karol said, the project was developed for SSP 1.2.0-beta.1, but should work on SSP 1.2.0 as well.

    Regards,
    adboc
  • In reply to adboc:

    Thank you adboc.
  • In reply to Renesas Karol:

    Hello Renesas Karol,

    We want to modify your project in order to download the .bch file from an USB stick. Do you think it would be possible? As I have understood with your code we just need to modify the part related to the TFTP access and file reading and substitute it with the API to access the USB system and files.

    Regards

    Imanol
  • In reply to Imanol:

    Hello Imanol,

    I've shared similar project performing programming from USB in the following thread: renesasrulz.com/.../27211 .

    Regards
  • In reply to Renesas Karol:

    Thanks Karol!
  • In reply to Renesas Karol:

    Hello Karol,

    In our project we are using an external QSPI flash to store a lot of graphical resources generated from GUIX. Now we are using and S7 processor but the idea is to use an S5 with limited internal flash memory. The point is that I am afraid that we will not have enough space in the internal memory to store the new downloaded program before saving it to the "primary flash sector". How can we solve this issue? Is it possible to store it in the QSPI memory and then flash it? (part of the code to the internal flash and part (GUIX resources) to the external QSPI). I do not really know how to focus this issue.

    Thanks in advance

    Imanol
  • In reply to Imanol:

    Hello Imanol,

    This is a question another thread, but this is certainly possible. Currently GUIX is only capable of generating resources with "const" argument, which by default are placed in the code flash memory. My colleagues have developed a script that parses GUIX-generated resource file and adds necessary "section" attributes to certain elements, in order to push as much data into the QSPI flash as possible. The Python script is included with the following application: renesasrulz.com/.../3223 . Upon generating an SREC image, you'll need to use some third party utility (such as srec_cat) to split QSPI content from code flash. File with code flash data should be fed into the "MOT Converter" to generate a bootloader-friendly BSH file. SREC with QSPI data should be converted to binary using objcopy (from arm-none-eabi). QSPI can be programmed from binary file easily using QSPI driver in combination with FileX. Programming code flash from BCH is demonstrated in the bootloader project I referenced earlier.

    Regards
  • In reply to Renesas Karol:

    Hi Karol,

    I got error status = 701 (HEX 0x2bd) at status = g_sf_firmware_image_int.p_api->newImagePrepare what does it mean ?

    Can you upload your S7_SK_image.bch file then I can try ?

    BR,
    James J
  • In reply to JHJ:

    Hi James,

    Error code 701 means that the image is invalid. Did you prepare the image in BCH format using the Flashloader Utility?

    Regards,
    adboc
  • In reply to adboc:

    Hi Adboc,

    I have read though the bootloader and downloader examples. Is this project bootloader ? Do you have the downloader example ?
  • In reply to JHJ:

    Hi James,

    The Flashload Utility is a standalone PC application. One of its feature is a SREC to BCH converter. I suggest reading this application note: synergygallery.renesas.com/.../r11an0073eu0100-synergy-ssp-flashloader.pdf

    It explains how to use the utility mentioned above.

    Regards,
    adboc
  • In reply to adboc:

    Hello James,

    The TFTP bootloader example works only with single-slot images that start at 0x40000 (256k mark).

    Regards
  • In reply to Renesas Karol:

    Hi Karol.

    I have a question about the downloader part, the downloader framework does not provide the TFTP communication option.

    Can you provide example how to set it up ?

    I'm very confused. The whole OTA updated project has 2 parts as the example provided from the https://synergygallery.renesas.com/ssp/utility#read.