Missing memcpy(), memset() and strlen()
Hi
I have just installed 4.10.4.2023061600.53564 and wanted to build an old Kinetis (Crossworks) project but it now fails with this version because the linker doesn't find memcpy(), memset() and strlen().
The project has its properties set to include standard libraries:
Is there some other setting that need to be adjusted for compatibility with new Crossworks versions so that the libraries are used?
Thanks in advance.
Regards
Mark
-
Hi All
I have found that some old project do build but others don't but when comparing all properties there is no difference found.
When it works I find this in the map file:
0x0000000000001270 0x52 C:/Program Files/Rowley Associates Limited/CrossWorks for ARM 4.10/lib/libc_v7em_t_le_eabi.a(libc2_asm.o)
0x0000000000001270 __aeabi_memcpy
0x0000000000001270 memcpy
0x000000000000127c __aeabi_memcpy8
0x000000000000127c __aeabi_memcpy4
showing that it has taken memcpy() from this library, which is at the location defined by the library standard libraries directory property.
Project which fail have identical settings but don't look to include the library and so can't link.
Regards
Mark -
Hello,
we are also using Kinetis Controller with Crossworks and haven’t faced any problems up to now.
I think the problem is not reproducible in a small demo project?
@Mark When you compared the settings of two projects, did you do this in the GUI or did you compare the project file?
-
Hello Michael
I have copied the project file(s) of one project that fails to link with newer CW versions. Maybe you spot the cause (the project is for a Kinetis part).
https://www.utasker.com/temp/CW/uTaskerBoot.hzp
https://www.utasker.com/temp/CW/uTaskerBoot.hzs
Thanks
Regards
Mark
Mark -
Hi Michael
Many thanks - when I did a check of these I either didn't notice the difference or the properties were being checked from a different target setting.
It it still strange that older CW versions built with this same project but maybe a different target was selected?
In any case the adjustment allowed all of the projects to link again so that is very positive - thanks again!
Regards
Mark
Please sign in to leave a comment.

Comments
11 comments