keil project cannot build .axf file

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JeHa_3912621
Level 3
Level 3
25 replies posted 10 replies posted 10 questions asked

*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'

Build Project 'M4' - Target 'Target 1'

linking...

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\cy8c6xx7_cm4_dual.scat(126): warning: L6314W: No section matches pattern *(.cy_app_signature).

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\cy8c6xx7_cm4_dual.scat(136): warning: L6314W: No section matches pattern *(.cy_em_eeprom).

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\cy8c6xx7_cm4_dual.scat(145): warning: L6314W: No section matches pattern *(.cy_sflash_user_data).

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\cy8c6xx7_cm4_dual.scat(154): warning: L6314W: No section matches pattern *(.cy_sflash_nar).

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\cy8c6xx7_cm4_dual.scat(163): warning: L6314W: No section matches pattern *(.cy_sflash_public_key).

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\cy8c6xx7_cm4_dual.scat(172): warning: L6314W: No section matches pattern *(.cy_toc_part2).

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\cy8c6xx7_cm4_dual.scat(181): warning: L6314W: No section matches pattern *(.cy_rtoc_part2).

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\cy8c6xx7_cm4_dual.scat(191): warning: L6314W: No section matches pattern *(.cy_xip).

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\cy8c6xx7_cm4_dual.scat(201): warning: L6314W: No section matches pattern *(.cy_efuse).

Program Size: Code=13182 RO-data=2174 RW-data=692 ZI-data=109224 

Finished: 0 information, 9 warning and 0 error messages.

FromELF: creating hex file...

After Build - User command #1: C:\Keil_v5\ARM\PACK\Cypress\Pack\2.0.0\Device\CY8C6347BZI-BLD53_Pack\Other\postbuildCortexM4.bat "E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\ObjectsM4\M4.axf" "E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\ObjectsM4\" "E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\" "cmsis" "C:\Keil_v5\ARM\PACK\Cypress\Pack\2.0.0\Device\CY8C6347BZI-BLD53_Pack\Other\win\elf"

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild>IF /I "cmsis" NEQ "cmsis" GOTO not_cmsis

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild>copy /Y "C:\Keil_v5\ARM\PACK\Cypress\Pack\2.0.0\Device\CY8C6347BZI-BLD53_Pack\Other\win\elf\cymcuelftool.exe" "E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\\cymcuelftool.exe"

已复制         1 个文件。

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild>move /Y "E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\ObjectsM4\M4.axf" "E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\ObjectsM4\\M4_link.axf"

移动了         1 个文件。

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild>for %i in ("E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\\Objects\*_link.axf") do @(IF "%i" NEQ "E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\ObjectsM4\\M4_link.axf" set MergeFiles=!MergeFiles! "%i" )

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild>set MergeFiles="E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\ObjectsM4\\M4_signed.axf"

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild>"E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\\cymcuelftool.exe" --sign "E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\ObjectsM4\\M4_link.axf" --output "E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\ObjectsM4\\M4_signed.axf"

No ELF section .cychecksum found, creating one

Application checksum calculated and stored in ELF section .cychecksum

Checksum calculated and stored in ELF section .cymeta

E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild>"E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\\cymcuelftool.exe" --merge "E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\ObjectsM4\\M4_signed.axf" --output "E:\Work\18.reflex-PPG\Software\Cypress-Prj\Cy-V0.001\VitaBle.cydsn\uVisionBuild\ObjectsM4\M4.axf"

Expected at least 2 elf file arguments for -M/--merge

Usage:

Display help:

   cymcuelftool -h/--help

Display version information:

   cymcuelftool -v/--version

Display memory allocation by type:

   cymcuelftool -A/--allocation file.elf

Merge ELF files:

   cymcuelftool -M/--merge complete_app1.elf complete_app2.elf ... [--output merged.elf] [--hex merged.hex]

Sign ELF file, with option for secure (encrypted) signature:

   cymcuelftool -S/--sign unsigned.elf [<SignScheme>] [--output signed.elf] [--hex signed.hex]

Generate Patch file:

   cymcuelftool -P/--patch file.elf [--encrypt <Cipher*> --key key.txt [--iv iv.txt]] [--output patch.cyacd2]

   *NOTE: RSAES-PKCS and RSASSA-PKCS not allowed for this command

Create Code sharing file:

   cymcuelftool -R/--codeshare file.elf symbols.txt <GCC/ARMCC/IAR> [--output shared.s]

<SignScheme> is only used for signing the user application. It must be ONE of:

   1) HMAC <Hash*>  --key key.txt              (*CRC not supported)

   2) CMAC-AES-XXX* --key key.txt              (*XXX can be 128, 192, or 256)

   3) <Hash> [--encrypt <Cipher> --key key.txt [--iv iv.txt]]

<Hash>: CRC, SHA1, SHA224, SHA256, SHA384, SHA512

<Cipher> (requires key):

   Public-key: RSAES-PKCS, RSASSA-PKCS

   Symmetric:  DES-ECB, TDES-ECB, AES-{128|192|256}-{ECB|CBC|CFB}

key.txt: ASCII text file containing key appropriate for chosen Cipher. May be symmetric hex key or PEM format for RSA cipher variants

iv.txt:  ASCII text file containing initialization vector for certain encryption algorithms

".\ObjectsM4\M4.axf" - 0 Error(s), 9 Warning(s).

Build Time Elapsed:  00:00:02

0 Likes
1 Solution
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

I think you're using µVision 5, when you exporting, select  CMSIS-Pack Projects

View solution in original post

0 Likes
2 Replies
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi Jerry, Could you double-check your project exporting with using PSoC Creator?

PSoC Creator's help file provided good guidance on this exporting. Please do not ignore any steps described in the help menu.

0 Likes
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

I think you're using µVision 5, when you exporting, select  CMSIS-Pack Projects

0 Likes