[RESOLVED] RA6M3 FSP Application Example r11an0497 with RA6M3 EK Board (FSP v5.4.0) app_ra6m3_primary Not buildable (Check Python Linkage)

I ran into this build error when I was building the https://github.com/renesas/ra-fsp-examples
r11an0497/example_projects_with_bootloader/ra6m3_overwrite_with_bootloader project/app_ra6m3_primary

r11an0497/example_projects_with_bootloader/ra6m3_overwrite_with_bootloader project/app_ra6m3_secondary




These are my installed modules based on
D:\_RA6M3\workspace_540_r11an0497\example_projects_with_bootloader\ra6m3_overwrite_with_bootloader\ra_mcuboot_ra6m3\ra\mcu-tools\MCUboot\scripts\requirements.txt


Is it possible to verify if Renesas side has the same issue?

Sincerely,
Wilson Quah

  • Did you follow the app-notes instructions from section 3.2 to configure the Python environment?

  • Hi JimB, thank you for the prompt response and helping me with this.
    Yes I have.


    Still same issue



    Wilson Quah

  • The Python signing script is failing, as the text doesn't wrap to show the full invocation of the script, I cannot tell what might be the problem with this step.

  • JimB,
    Have you check out the project and do a compilation on your side?
    Is this issue hardware/OS dependent?
    Or is this issue happening in the git repository Renesas provided?

    Wilson Quah

  • I have not tried to build this project myself. The issue with the Python script is configuration issue.

    I am sure that someone tested the code before uploading to the repository.

    Can you copy / paste the invocation of that script that I highlighted above that would show the arguments to the script?

  • JimB,
    Thank you for following up.
    Here is my build output:

    Extracting support files...
    13:09:14 **** Incremental Build of configuration Debug for project app_ra6m3_primary ****
    make -r -j16 all
    C:/Renesas/RA/e2studio_v2024-04_fsp_v5.4.0/eclipse/plugins/com.renesas.ide.exttools.gnumake.win32.x86_64_4.3.0.v20220121-1024/mk/make.exe --no-print-directory pre-build
    rm -f app_ra6m3_primary.elf
     
    C:/Renesas/RA/e2studio_v2024-04_fsp_v5.4.0/eclipse/plugins/com.renesas.ide.exttools.gnumake.win32.x86_64_4.3.0.v20220121-1024/mk/make.exe --no-print-directory main-build
    Building target: app_ra6m3_primary.elf
    arm-none-eabi-objcopy -O srec "app_ra6m3_primary.elf"  "app_ra6m3_primary.srec"
    arm-none-eabi-size --format=berkeley "app_ra6m3_primary.elf"
       text       data        bss        dec        hex    filename
      14256          8       4872      19136       4ac0    app_ra6m3_primary.elf

    13:09:14 Build Finished. 0 errors, 0 warnings. (took 502ms)

    13:09:14 **** Boot Image Build of configuration Debug for project app_ra6m3_primary ****
    python "D:\\_RA6M3\\workspace_540_r11an0497\\example_projects_with_bootloader\\ra6m3_overwrite_with_bootloader\\ra_mcuboot_ra6m3/ra/fsp/src/rm_mcuboot_port/rm_mcuboot_port_sign.py" sign --header-size 0x200 --align 128 --max-align 128 --slot-size 0x20000 --max-sectors 4 --overwrite-only --confirm --pad-header app_ra6m3_primary.elf app_ra6m3_primary.bin.signed
    Usage: rm_mcuboot_port_sign.py sign [OPTIONS] INFILE OUTFILE
     
    Try 'rm_mcuboot_port_sign.py sign -h' for help.
    Packaging application image with version from environment variable MCUBOOT_IMAGE_VERSION: 1.0.0 and key from MCUBOOT_IMAGE_SIGNING_KEY: D:\_RA6M3\workspace_540_r11an0497\example_projects_with_bootloader\ra6m3_overwrite_with_bootloader\ra_mcuboot_ra6m3/ra/mcu-tools/MCUboot/root-ec-p256.pem

    python imgtool.py sign --key D:\_RA6M3\workspace_540_r11an0497\example_projects_with_bootloader\ra6m3_overwrite_with_bootloader\ra_mcuboot_ra6m3/ra/mcu-tools/MCUboot/root-ec-p256.pem --version 1.0.0 --header-size 0x200 --align 128 --max-align 128 --slot-size 0x20000 --max-sectors 4 --overwrite-only --confirm --pad-header app_ra6m3_primary.temp.bin app_ra6m3_primary.bin.signed
    Error: Invalid value for '--align': '128' is not one of '1', '2', '4', '8', '16', '32'.
    13:09:15 Build finished

  • JimB,
    Apologies for the confusion. I ran the same code in another platform and it works fine.
    The issue was mainly due to my e2studio not using the correct python (I have more than 1 python version).
    This is my successful build log from another platform

    Extracting support files...
    15:20:53 **** Incremental Build of configuration Debug for project app_ra6m3_primary ****
    make -r -j8 all
    make --no-print-directory pre-build
    rm -f app_ra6m3_primary.elf
     
    make --no-print-directory main-build
    Building target: app_ra6m3_primary.elf
    arm-none-eabi-objcopy -O srec "app_ra6m3_primary.elf"  "app_ra6m3_primary.srec"
    arm-none-eabi-size --format=berkeley "app_ra6m3_primary.elf"
       text       data        bss        dec        hex    filename
      14256          8       4872      19136       4ac0    app_ra6m3_primary.elf

    15:20:54 Build Finished. 0 errors, 0 warnings. (took 1s.280ms)

    15:20:55 **** Boot Image Build of configuration Debug for project app_ra6m3_primary ****
    python "C:\\Users\\Tester\\Desktop\\workspace_r11an0497\\example_projects_with_bootloader\\ra6m3_overwrite_with_bootloader\\ra_mcuboot_ra6m3/ra/fsp/src/rm_mcuboot_port/rm_mcuboot_port_sign.py" sign --header-size 0x200 --align 128 --max-align 128 --slot-size 0x20000 --max-sectors 4 --overwrite-only --confirm --pad-header app_ra6m3_primary.elf app_ra6m3_primary.bin.signed
     
    Packaging application image with version from environment variable MCUBOOT_IMAGE_VERSION: 1.0.0 and key from MCUBOOT_IMAGE_SIGNING_KEY: C:\Users\Tester\Desktop\workspace_r11an0497\example_projects_with_bootloader\ra6m3_overwrite_with_bootloader\ra_mcuboot_ra6m3/ra/mcu-tools/MCUboot/root-ec-p256.pem
    python imgtool.py sign --key C:\Users\Tester\Desktop\workspace_r11an0497\example_projects_with_bootloader\ra6m3_overwrite_with_bootloader\ra_mcuboot_ra6m3/ra/mcu-tools/MCUboot/root-ec-p256.pem --version 1.0.0 --header-size 0x200 --align 128 --max-align 128 --slot-size 0x20000 --max-sectors 4 --overwrite-only --confirm --pad-header app_ra6m3_primary.temp.bin app_ra6m3_primary.bin.signed
    image.py: sign the payload
    15:20:55 Build finished

    [ISSUE RESOLVED]
    Wilson Quah