uVision Compile psoc6 error

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

cross mob
liro_3648021
Level 1
Level 1

I use google translation, forgive my gibberish

I am compiling under keil5 using the following code

https://github.com/cypresssemiconductorco/psoc6pdl.git

https://github.com/cypresssemiconductorco/psoc6hal.git

https://github.com/cypresssemiconductorco/TARGET_CY8CPROTO-062S3-4343W.git

link file use:

TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct

pastedImage_2.png

But the link is wrong

pastedImage_3.png

..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(106): error: L6226E: Missing base address for region LR_IROM.

..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(106): error: L6292E: Ignoring unknown attribute 'FLASH_START' specified for region LR_IROM.

..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(106): error: L6292E: Ignoring unknown attribute 'FLASH_CM0P_SIZE' specified for region LR_IROM.

..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(108): error: L6292E: Ignoring unknown attribute 'FLASH_CM0P_SIZE' specified for region .cy_m0p_image.

..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct: Error: L6630E: Invalid token start expected number or ( but found F at position 11 on line 116

..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct: Error: L6629E: Unmatched parentheses expecting ) but found F at position 11 on line 116

..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct: Error: L6226E: Missing base address for region LR_IROM1.

..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(116): error: L6292E: Ignoring unknown attribute 'FLASH_START' specified for region LR_IROM1.

..\cypress_psoc6\TARGET_CY8CKIT-062S2-4343W\linker\TOOLCHAIN_ARM\cy8c6xxa_cm4_dual.sct(116): error: L6228E: Expected '{', found '+...'.

Not enough information to list image symbols.

Not enough information to list load addresses in the image map.

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

".\obj\awtk.axf" - 9 Error(s), 0 Warning(s).

I need a demo or help

Thanks

0 Likes
1 Solution
IanF_56
Employee
Employee
5 questions asked First question asked First solution authored

liro_3648021,

This is because the scatter file is written for ARM Compiler version 6. If you change the project settings to use that version of the compiler, the linking will succeed:

pastedImage_0.png

The details behind this are that ARM changed to using armclang for compiling in version 6. Version 5 used armcc. If you look at the first line of the scatter file you are using you will see this:

#! armclang -E --target=arm-arm-none-eabi -x c -mcpu=cortex-m0

If you are using a scatter file for version 5, it would need to look like this:

#! armcc -E

Thank you,

Ian Fyall

Cypress Semiconductor

View solution in original post

1 Reply
IanF_56
Employee
Employee
5 questions asked First question asked First solution authored

liro_3648021,

This is because the scatter file is written for ARM Compiler version 6. If you change the project settings to use that version of the compiler, the linking will succeed:

pastedImage_0.png

The details behind this are that ARM changed to using armclang for compiling in version 6. Version 5 used armcc. If you look at the first line of the scatter file you are using you will see this:

#! armclang -E --target=arm-arm-none-eabi -x c -mcpu=cortex-m0

If you are using a scatter file for version 5, it would need to look like this:

#! armcc -E

Thank you,

Ian Fyall

Cypress Semiconductor