Author Topic: STM32 linker scripts and open-source  (Read 3755 times)

0 Members and 1 Guest are viewing this topic.

Offline c4757pTopic starter

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
STM32 linker scripts and open-source
« on: November 04, 2015, 03:47:32 am »
The linker scripts ST seems to provide for STM32 have this absolute insanity at the top:

Code: [Select]
**  You may use this file as-is or modify it according to the needs of your
**  project. Distribution of this file (unmodified or modified) is not
**  permitted.

Am I mistaken, or is that really all they provide? It's a shame if they really are that hostile towards open source. I can't really say I can be bothered to write one clean-room for every microcontroller I use...
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 1987
  • Country: dk
Re: STM32 linker scripts and open-source
« Reply #1 on: November 04, 2015, 05:31:34 am »
The linker scripts ST seems to provide for STM32 have this absolute insanity at the top:

Code: [Select]
**  You may use this file as-is or modify it according to the needs of your
**  project. Distribution of this file (unmodified or modified) is not
**  permitted.

Am I mistaken, or is that really all they provide? It's a shame if they really are that hostile towards open source. I can't really say I can be bothered to write one clean-room for every microcontroller I use...

Yes that's a crazy way they used to do it.

Grab some from the mbed site , most of the chipmakers have made their scripts under a bsd clause over there.

/Bingo
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8517
  • Country: us
    • SiliconValleyGarage
Re: STM32 linker scripts and open-source
« Reply #2 on: November 05, 2015, 08:43:48 pm »
The linker scripts ST seems to provide for STM32 have this absolute insanity at the top:

Code: [Select]
**  You may use this file as-is or modify it according to the needs of your
**  project. Distribution of this file (unmodified or modified) is not
**  permitted.

Am I mistaken, or is that really all they provide? It's a shame if they really are that hostile towards open source. I can't really say I can be bothered to write one clean-room for every microcontroller I use...

what do you mean 'hostile'
They gave you the sourcecode, you get to use it for free and you are allowed to modify it to your likes. What more do you need ? Satisfy the urge to give your linker script to someone else ? that person may not even want your linker script.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline donotdespisethesnake

  • Super Contributor
  • ***
  • Posts: 1093
  • Country: gb
  • Embedded stuff
Re: STM32 linker scripts and open-source
« Reply #3 on: November 06, 2015, 05:40:08 pm »
The linker scripts ST seems to provide for STM32 have this absolute insanity at the top:

Code: [Select]
**  You may use this file as-is or modify it according to the needs of your
**  project. Distribution of this file (unmodified or modified) is not
**  permitted.

Am I mistaken, or is that really all they provide? It's a shame if they really are that hostile towards open source. I can't really say I can be bothered to write one clean-room for every microcontroller I use...

what do you mean 'hostile'
They gave you the sourcecode, you get to use it for free and you are allowed to modify it to your likes. What more do you need ? Satisfy the urge to give your linker script to someone else ? that person may not even want your linker script.

Yeah, who would want to share source code? They are probably communists, anti-capitalists or something.
Bob
"All you said is just a bunch of opinions."
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: STM32 linker scripts and open-source
« Reply #4 on: November 07, 2015, 09:18:07 am »
There's a simple solution for that. If you would like to distribute a modified version, distribute a "diff" instead.
Only string attached is that both original files must be equal i.e. same version.

 


Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: STM32 linker scripts and open-source
« Reply #6 on: November 07, 2015, 10:50:28 am »
You could modify the gnu linker script instead.  How complicated (or different) can it be?  (and, when was the last time you modified a linker script, anyway?  I always considered that to be part of the "toolchain"...)

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf