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

AURIX™ Development Studio Forum Discussions

User22029
Level 1
Level 1
First solution authored First reply posted First question asked

Hello,

I'm using biface to build my application project

I've a bootloader project from AURIX Developement Studio

I build bootloader as a bin file and start address from 0x80000000/0xA0000000

Now I need to merge the binary to my application project

I config my application start address from 0x80080000/0xA0080000

 

 

I've tried this scenario in S32DS for NXP MPC5744P

It can key the keyword INPUT

TARGET(binary) /* specify the file format of binary file */
INPUT (../node_modules/mpc5744p-blt-uds/Debug/mpc5744p_blt_uds.bin)
OUTPUT_FORMAT(default) /* restore the out file format */

 

But when I use INPUT keyword in lsl, it report error

Building output 2_Out/Tricore_Gnuc/tc397b-demo-user_Tc.elf
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/../../../../tricore/lib/tc162\libc.a:(.data+0x0): error: multiple definition of `_binary_c__hightec_toolchains_tricore_v4_9_3_0_infineon_1_0_bin____lib_gcc_tricore_4_9_4_____________tricore_lib_tc162_libc_a_start'
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/../../../../tricore/lib/tc162\libc.a:(.data+0x0): first defined here
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/../../../../tricore/lib/tc162\libc.a:(.data+0x5a51b4): error: multiple definition of `_binary_c__hightec_toolchains_tricore_v4_9_3_0_infineon_1_0_bin____lib_gcc_tricore_4_9_4_____________tricore_lib_tc162_libc_a_end'
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/../../../../tricore/lib/tc162\libc.a:(.data+0x5a51b4): first defined here
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/tc162\libgcc.a:(.data+0x0): error: multiple definition of `_binary_c__hightec_toolchains_tricore_v4_9_3_0_infineon_1_0_bin____lib_gcc_tricore_4_9_4_tc162_libgcc_a_start'
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/tc162\libgcc.a:(.data+0x0): first defined here
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/tc162\libgcc.a:(.data+0x13fe34): error: multiple definition of `_binary_c__hightec_toolchains_tricore_v4_9_3_0_infineon_1_0_bin____lib_gcc_tricore_4_9_4_tc162_libgcc_a_end'
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/tc162\libgcc.a:(.data+0x13fe34): first defined here
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/../../../../tricore/bin/ld.exe: error: 2_Out/Tricore_Gnuc/tc397b-demo-user_Tc.elf section `.data' will not fit in region `dsram0'
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/../../../../tricore/bin/ld.exe: error: 2_Out/Tricore_Gnuc/tc397b-demo-user_Tc.elf section `.data' will not fit in region `pfls0'
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/../../../../tricore/bin/ld.exe: error: region `dsram0' overflowed by 46554464 bytes
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/../../../../tricore/bin/ld.exe: error: region `pfls0' overflowed by 44509936 bytes
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/../../../../tricore/bin/ld.exe: warning: cannot find entry symbol _START; defaulting to 0000000082d72ae0
collect2.exe: error: ld returned 1 exit status
make[1]: *** [1_ToolEnv/0_Build/9_Make/Project.mk:63: 2_Out/Tricore_Gnuc/tc397b-demo-user_Tc.elf] Error 1
make: *** [C:\Tools\BifacesWin64\bin/../Bifaces/Make/Root.mk:44: build] Error 2

How to setup above scenario in my linker file Lcf_Gnuc_Tricore_Tc.lsl ?

 

0 Likes
1 Solution
User22029
Level 1
Level 1
First solution authored First reply posted First question asked

Hello,

Thank you for your reply.

I've ended this topic by merging two hex file.

It will not be a problem for this.

View solution in original post

0 Likes
2 Replies
dw
Moderator
Moderator
Moderator
100 likes received 750 replies posted 10 likes given

Hi User22029,

I will check for you, do you know INPUT words is for which compiler and linker?

TARGET(binary) /* specify the file format of binary file */
INPUT (../node_modules/mpc5744p-blt-uds/Debug/mpc5744p_blt_uds.bin)
OUTPUT_FORMAT(default) /* restore the out file format */
0 Likes
User22029
Level 1
Level 1
First solution authored First reply posted First question asked

Hello,

Thank you for your reply.

I've ended this topic by merging two hex file.

It will not be a problem for this.

0 Likes