Decreasing BSS size for STM32F4

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Oct 30 09:38:19 UTC 2014


On 29/10/14 17:49, Chris Nott wrote:
> Hi,
>
> I have a BSP almost identical to STM32F4 except I want a slight change to the
> linker settings (I want to offset the start location because there is a
> bootloader at location 0).
>
> Two questions:
>
> - Is there any way to do this other than to
>   a) duplicate the BSP and change just the linker files

You can use your own linker command file with the "-qnolinkcmds -T 
yourlinkcmds" option.

>   b) use the STM32F4 BSP as-is but copy the linker files into the application
> project and modify (this is the solution I am using now)
>
> - As a matter of policy, how different should a platform be before we fork a BSP?

This is hard to say.  In case the number of #ifdefs exceed a certain limit, 
then it may make sense to use different BSPs.  The amount of copy and paste 
must should be next to zero though.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list