cyelftool.exe question

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

cross mob
Anonymous
Not applicable

How do you clear this error: 

   

Error: flash row: 254 is either already used or does not exist.

   

The command 'cyelftool.exe' failed with exit code '1'.

   

 

   

Can you objdump the elf file and find how much memory is available.  My resource meter shows memory as 99.9% full.

   

 

   

--Gregg

0 Likes
3 Replies
Yuva
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 100 solutions authored

Hi,

   

Can you attach the project so that we can reproduce this issue and update you?

   

Thanks

   

Yuva.

0 Likes
Anonymous
Not applicable

I found using objdump that cybootloader, text, eh_frame, and rodata sections, added up to more than the available flash (0-7f80)

   

 

   

(0x8000 - 0x80)=32k flash - 128 byte section (for meta data)  = 0x7f80.  

   

 

   

I removed non-essential code and and the error went away.

   

If this is the case, the resource meter in PSoC Creator should use 0x7f80 as maxmem.

0 Likes
Anonymous
Not applicable

I get the error when .cybootloader, .text,  .eh_frame, .ro_data and .data add up to more than 0x7f00.

   

 

   

using C:\cygwin64\bin\objdump %~3 -wh -j.text  -j.eh_frame -j.rodata -j.cyloadablemeta -j.data %ELF_dir%\%ELF_file%

   

 

   

where elfdir=PathToProject\CortexM0\ARM_GCC_493\Debug and elf_file=PROJNAME.elf

0 Likes