Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

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

cross mob
lock attach
Attachments are accessible only for community members.
leosun
Level 1
Level 1
5 sign-ins First reply posted First question asked

 

SDK version: ezpdhostsdk_3.4.0_Windows_x86-x64.exe

....

.\CortexM0\ARM_GCC_541\Debug\hal_ccgx.o .\CortexM0\ARM_GCC_541\Debug\pdss_mx_hal.o .\CortexM0\ARM_GCC_541\Debug\cyfitter_cfg.o .\CortexM0\ARM_GCC_541\Debug\cybootloader.o .\CortexM0\ARM_GCC_541\Debug\cymetadata.o .\CortexM0\ARM_GCC_541\Debug\Cm0Start.o .\CortexM0\ARM_GCC_541\Debug\CYPD5225-96BZXI_notebook.a -mcpu=cortex-m0 -mthumb -l ccgx_hpi_ucsi -l ccgx_pd3 -L Generated_Source\PSoC4 -L .\lib\ccg5_dualport -Wl,-Map,.\CortexM0\ARM_GCC_541\Debug/CYPD5225-96BZXI_notebook.map -T .\cm0gcc.ld -specs=nano.specs -Wl,--gc-sections -flto -Os -g -ffunction-sections -finline-functions -Os -flto -ffat-lto-objects -Wl,--end-group
ERROR: address 0x20240 of G:\temp\CYPD5225-96BZXI_notebook\CYPD5225-96BZXI_notebook.cydsn\CortexM0\ARM_GCC_541\Debug\CYPD5225-96BZXI_notebook.elf section `.text' is not within region `rom'
ERROR: G:\temp\CYPD5225-96BZXI_notebook\CYPD5225-96BZXI_notebook.cydsn\CortexM0\ARM_GCC_541\Debug\CYPD5225-96BZXI_notebook.elf section `.eh_frame' will not fit in region `rom'
ERROR: address 0x20240 of G:\temp\CYPD5225-96BZXI_notebook\CYPD5225-96BZXI_notebook.cydsn\CortexM0\ARM_GCC_541\Debug\CYPD5225-96BZXI_notebook.elf section `.text' is not within region `rom'
ERROR: address 0x20240 of G:\temp\CYPD5225-96BZXI_notebook\CYPD5225-96BZXI_notebook.cydsn\CortexM0\ARM_GCC_541\Debug\CYPD5225-96BZXI_notebook.elf section `.text' is not within region `rom'
ERROR: Firmware binary overlaps with metadata
ERROR: section .cyloadablemeta loaded at [0001fec0,0001feff] overlaps section .text loaded at [0000c400,0002023f]
ERROR: region `rom' overflowed by -256 bytes
collect2.exe: error: ld returned 1 exit status
The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.

0 Likes
1 Solution
Pranava_YN
Moderator
Moderator
Moderator
100 likes received 500 replies posted 250 solutions authored

Hi,

 

Looks like the error is due to PSoC Creator not able to find the cyelftool.exe
Please make sure you are bin directory of PSoC Creator to the Environment variables in your system as shown below.

PranavaYN_0-1662614530793.png

Also, regarding the latest error, please let me know if linker file or any other files were modified for this build. First try to build the default project from Host SDK and check if it builds.

Best regards,
Pranava

View solution in original post

0 Likes
1 Reply
Pranava_YN
Moderator
Moderator
Moderator
100 likes received 500 replies posted 250 solutions authored

Hi,

 

Looks like the error is due to PSoC Creator not able to find the cyelftool.exe
Please make sure you are bin directory of PSoC Creator to the Environment variables in your system as shown below.

PranavaYN_0-1662614530793.png

Also, regarding the latest error, please let me know if linker file or any other files were modified for this build. First try to build the default project from Host SDK and check if it builds.

Best regards,
Pranava
0 Likes