[En-Nut-Discussion] Parameters for the linker
Ole Reinhardt
ole.reinhardt at embedded-it.de
Thu Mar 10 21:48:08 CET 2016
Hi Uwe,
looks like you have found a solution?
But for it does not work as expected.
I defined
BOOTLOADER_OFFSET = 0xC000
in Userconf.mk
But when compiling I get a
stm32_generic_flash.ld:12: nonconstant expression for length
Does it work for you? Have I missed something?
Best regards,
Ole
Am 07.03.2016 um 18:13 schrieb Uwe Bonnes:
> Hello,
>
> in nut/arch/cm3/ldscripts a lot of linker files piled up, with very few
> individual parameters, like bootloader_offset, a board specific parameter
> which should be settable by the user and FLASH0_LEN, SRAM0_ORIGIN,
> SRAM0_LENGHT and few others, and finaly the family specific INCLUDE. The
> latter parameters are deciphered during configuration. However I don't know
> a way to give these parameters as command arguments during linker phase. So
> we would need to construct a project specific linker file during
> configuration or with some helper during compilation.
>
> Any ideas how to achieve this without do much work?
>
> Thanks
>
--
kernel concepts GmbH Tel: +49-271-771091-14
Sieghuetter Hauptweg 48 Mob: +49-177-7420433
D-57072 Siegen
http://www.embedded-it.de
http://www.kernelconcepts.de
More information about the En-Nut-Discussion
mailing list