"thumb_crt0.s:257: undefined reference to `__stack_end__'" placement sections
I'm presently having link/loads fail with lots (*) of undefines like the following:
/usr/share/crossworks_for_arm_2.3/source/thumb_crt0.s:257: undefined reference to `__stack_end__'
(*) 13 different start/end pairs.
I've so far failed to find from where they are generated.
Can anyone shed some light?
Thanks.
Gordon.
-
Hi Michael,
My last post was almost concurrent with yours and referred to my post.
$(StudioDir)/targets/flash_placement.xml
$(TargetsDir)/STM32/STM32F207ZG_MemoryMap.xml
The 'relevant' file that contained the sections was memory.x in the OpenBLT code tree, so may not be relevant.
At the moment, I'm building a new copy of the solution to see if the problem just goes away. Other suggestions most welcome.
-
Hi Michael,
I think it was originally for an STM32F103, though if so I've already changed all the stm32ff10x occurrences, though to stm32f2xx. I can't find any where that looks wrong. I did just try changing the ..._Loader_prc.elf, but I doubt that's the problem. Restored to ..../STM32F2xx_Loader_rpc.elf
-
Hopefully this is now resolved.
It occurred to me to copy the "Configuration Name Common" line from my work-in-progress .hzp to the non-working .hzp
I couldn't see any obviously relevant differences, but, after adding an include path for the .vec file, it's built OK.
I can only guess that there was something in that line that upset Crossworks in some way. I had edited the file for the F207, so I rather suspect it was something I did during that process.
It's a shame that that line isn't structured one item per line, as a comparison between .hzp files would then be much easier. I have made that split to compare files, but the line has to be reconstituted to work. Not that either task is hard.
Thanks for your help.
Gordon.
Please sign in to leave a comment.
Comments
15 comments