Jump to page: 1 210  
Page
Thread overview
ARM Cortex-M Microcontroller startup files
Apr 26, 2015
Jens Bauer
Apr 26, 2015
Dicebot
Apr 26, 2015
Jens Bauer
Apr 26, 2015
Martin Nowak
Apr 26, 2015
Jens Bauer
Apr 26, 2015
Martin Nowak
Apr 26, 2015
Jens Bauer
Apr 27, 2015
Iain Buclaw
Apr 27, 2015
Jens Bauer
Apr 27, 2015
Jens Bauer
Apr 27, 2015
Iain Buclaw
Apr 27, 2015
Jens Bauer
Apr 28, 2015
Mike
Apr 28, 2015
Jens Bauer
Apr 27, 2015
Johannes Pfau
Apr 26, 2015
Mike
Apr 27, 2015
Timo Sintonen
Apr 27, 2015
Timo Sintonen
Apr 27, 2015
Iain Buclaw
Apr 27, 2015
Iain Buclaw
Apr 27, 2015
Mike
Apr 27, 2015
Iain Buclaw
Apr 27, 2015
Iain Buclaw
Apr 27, 2015
Timo Sintonen
Apr 27, 2015
Timo Sintonen
Apr 27, 2015
Iain Buclaw
Apr 27, 2015
Jens Bauer
Apr 27, 2015
Jens Bauer
Apr 27, 2015
Timo Sintonen
Apr 28, 2015
Mike
Apr 28, 2015
Jens Bauer
Apr 28, 2015
Mike
Apr 28, 2015
Timo Sintonen
Apr 28, 2015
Jens Bauer
Apr 28, 2015
Mike
Apr 28, 2015
Jens Bauer
Apr 29, 2015
Mike
Apr 29, 2015
Jens Bauer
Apr 29, 2015
Jens Bauer
Apr 28, 2015
Jens Bauer
Apr 28, 2015
Timo Sintonen
Apr 27, 2015
Timo Sintonen
Apr 27, 2015
Martin Nowak
Apr 27, 2015
Timo Sintonen
Apr 30, 2015
Martin Nowak
Apr 30, 2015
Jens Bauer
Apr 30, 2015
Timo Sintonen
Apr 30, 2015
Martin Nowak
Apr 30, 2015
Jens Bauer
Apr 30, 2015
Mike
Apr 30, 2015
Jens Bauer
May 01, 2015
Timo Sintonen
May 01, 2015
Jens Bauer
May 01, 2015
Jens Bauer
May 01, 2015
Timo Sintonen
May 02, 2015
Meta
Apr 30, 2015
Jens Bauer
Apr 30, 2015
Mike
Apr 30, 2015
Martin Nowak
Apr 30, 2015
Mike
Apr 30, 2015
Jens Bauer
May 01, 2015
Timo Sintonen
May 01, 2015
Jens Bauer
May 01, 2015
Mike
May 01, 2015
Timo Sintonen
May 01, 2015
Johannes Pfau
May 02, 2015
Mike
May 02, 2015
Johannes Pfau
May 02, 2015
Mike
May 02, 2015
Jens Bauer
May 02, 2015
Timo Sintonen
May 02, 2015
Martin Nowak
May 02, 2015
Timo Sintonen
May 02, 2015
Jens Bauer
May 02, 2015
Jens Bauer
May 02, 2015
Martin Nowak
May 02, 2015
Martin Nowak
May 02, 2015
Jens Bauer
May 02, 2015
Martin Nowak
May 03, 2015
Mike
May 03, 2015
Jens Bauer
May 03, 2015
Jens Bauer
May 03, 2015
Martin Nowak
May 03, 2015
Martin Nowak
May 03, 2015
Jens Bauer
May 02, 2015
Timo Sintonen
May 02, 2015
Martin Nowak
May 02, 2015
Mike
May 02, 2015
Johannes Pfau
May 02, 2015
Martin Nowak
Apr 27, 2015
Johannes Pfau
Apr 27, 2015
Iain Buclaw
May 03, 2015
Martin Nowak
May 03, 2015
Johannes Pfau
Apr 26, 2015
Dicebot
Apr 26, 2015
Jens Bauer
April 26, 2015
Some of you already know that I've been working on startup files for STM32F4xx and LPC17xx.

Since a number of people have shown interest in these files, I've now merged those two repositories into one and improved it for adding more vendors.

What I'd like you to do, is to tell me which microcontrollers you want support for.
This means filing a feature request (eg. file an issue at GitHub telling me which device(s) you want added. If possible, please provide a URL to an existing library.
I've filed a feature request myself as an example (these are already in the works, so no need to file any STM32F3 request.)

The new repository:
https://github.com/jens-gpio/MCU

Example feature request:
https://github.com/jens-gpio/MCU/issues/1

The old repositories STM32F4xx and LPC17xx are dead (the README has been updated to point to the MCU repository)
April 26, 2015
On Sunday, 26 April 2015 at 07:04:06 UTC, Jens Bauer wrote:
> Some of you already know that I've been working on startup files for STM32F4xx and LPC17xx.
>
> Since a number of people have shown interest in these files, I've now merged those two repositories into one and improved it for adding more vendors.
>
> What I'd like you to do, is to tell me which microcontrollers you want support for.
> This means filing a feature request (eg. file an issue at GitHub telling me which device(s) you want added. If possible, please provide a URL to an existing library.
> I've filed a feature request myself as an example (these are already in the works, so no need to file any STM32F3 request.)
>
> The new repository:
> https://github.com/jens-gpio/MCU
>
> Example feature request:
> https://github.com/jens-gpio/MCU/issues/1
>
> The old repositories STM32F4xx and LPC17xx are dead (the README has been updated to point to the MCU repository)

Please mention that in wiki.dlang.org
May be even worth creating dedicated "ARM" page there which will aggregated all related articles.
April 26, 2015
On Sunday, 26 April 2015 at 14:18:24 UTC, Dicebot wrote:
> On Sunday, 26 April 2015 at 07:04:06 UTC, Jens Bauer wrote:
>> Some of you already know that I've been working on startup files for STM32F4xx and LPC17xx.
>>
>> https://github.com/jens-gpio/MCU
>
> Please mention that in wiki.dlang.org
> May be even worth creating dedicated "ARM" page there which will aggregated all related articles.

Done.
http://wiki.dlang.org/Microcontroller_startup_files

-This is my first successful Wiki page, BTW. :)
April 26, 2015
On 04/26/2015 05:55 PM, Jens Bauer wrote:
> Done.
> http://wiki.dlang.org/Microcontroller_startup_files
> 
> -This is my first successful Wiki page, BTW. :)

Nice, minilibd seems to be maintained as well, you happen to know the
author?
I'd really like to see binary releases of GDC for arm-none-eabi that
ship with a patched compiler (iff necessary) and minilibd.
April 26, 2015
On Sunday, 26 April 2015 at 15:55:34 UTC, Jens Bauer wrote:
> On Sunday, 26 April 2015 at 14:18:24 UTC, Dicebot wrote:
>> On Sunday, 26 April 2015 at 07:04:06 UTC, Jens Bauer wrote:
>>> Some of you already know that I've been working on startup files for STM32F4xx and LPC17xx.
>>>
>>> https://github.com/jens-gpio/MCU
>>
>> Please mention that in wiki.dlang.org
>> May be even worth creating dedicated "ARM" page there which will aggregated all related articles.
>
> Done.
> http://wiki.dlang.org/Microcontroller_startup_files
>
> -This is my first successful Wiki page, BTW. :)

Thanks! It is important for that information not be lost among hundreds of NG posts, wiki is much more searchable.
April 26, 2015
On Sunday, 26 April 2015 at 16:09:57 UTC, Martin Nowak wrote:
> On 04/26/2015 05:55 PM, Jens Bauer wrote:
>> Done.
>> http://wiki.dlang.org/Microcontroller_startup_files
>> 
>> -This is my first successful Wiki page, BTW. :)
>
> Nice, minilibd seems to be maintained as well, you happen to know the author?

I haven't met Timo (yet), I live in Denmark, and as far as I understand, Timo is from Finland.
-But we communicate here.

> I'd really like to see binary releases of GDC for arm-none-eabi  that
> ship with a patched compiler (iff necessary) and minilibd.

So far, building GCC-4.9.2+GDC-4.9 works for me. I haven't done any 'deep' coding yet, but I do some tests almost every day.

I may be able to put together some kind of recipe for building the GCC+GDC I have.
Unfortunately, I have not been able to build with multilib yet, so my setup cannot build code for Cortex-M0; it keeps stuffing Cortex-M3 and Cortex-M4 instructions in there.

-But if I build GCC without GDC, then I can build with multilib, and make code for Cortex-M0. So I cannot have both.

I know Mike have been working on this. Hopefully one of us will find a solution.
April 26, 2015
On Sunday, 26 April 2015 at 16:34:09 UTC, Dicebot wrote:
> On Sunday, 26 April 2015 at 15:55:34 UTC, Jens Bauer wrote:
>>
>> Done.
>> http://wiki.dlang.org/Microcontroller_startup_files
>
> Thanks! It is important for that information not be lost among hundreds of NG posts, wiki is much more searchable.

No problem. I hesitated, because I'm not sure of the directory structure yet.
I may have to change it again, but I think I'll be able to keep the current repository.
April 26, 2015
On 04/26/2015 07:29 PM, Jens Bauer wrote:
> I may be able to put together some kind of recipe for building the
> GCC+GDC I have.
> Unfortunately, I have not been able to build with multilib yet, so my
> setup cannot build code for Cortex-M0; it keeps stuffing Cortex-M3 and
> Cortex-M4 instructions in there.

The wiki says to disable multilib (http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler#Build_GCC), what's the problem? Maybe ask Iain/Johannes if it's GDC specific.

> -But if I build GCC without GDC, then I can build with multilib, and make code for Cortex-M0. So I cannot have both.
> 
> I know Mike have been working on this. Hopefully one of us will find a solution.

What libc are you using? The gcc-arm-embedded project uses newlib and newlib-nano. https://launchpad.net/gcc-arm-embedded

April 26, 2015
On Sunday, 26 April 2015 at 18:23:47 UTC, Martin Nowak wrote:
> On 04/26/2015 07:29 PM, Jens Bauer wrote:
>> Unfortunately, I have not been able to build with multilib yet, so my
>> setup cannot build code for Cortex-M0; it keeps stuffing Cortex-M3 and
>> Cortex-M4 instructions in there.
>
> The wiki says to disable multilib
> (http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler#Build_GCC),
> what's the problem?

The problem is that I cannot have a single compiler, which compiles for these architectures:
ARM7TDMI
Cortex-M0
Cortex-M3
Cortex-M4

Using a Cortex-M3 or Cortex-M4 compiler to build code for a Cortex-M0, will insert 32-bit instructions randomly (most code is 16-bit, though, so parts of it gets it right). As soon as the microcontroller tries to run a 32-bit instruction, it will crash.

-In order to build code for Cortex-M0 or Cortex-M0+, I will have to rebuild the compiler.
The alternative is to build 5 different compilers. I don't want that either.

...

The reason I cannot build GDC with multilib, is that I get a compile-error when building the final GCC+GDC.
Building GCC alone without GDC gives me no such error.
-So if I want to have multilib support, I will have to be without GDC.
April 26, 2015
On Sunday, 26 April 2015 at 18:23:47 UTC, Martin Nowak wrote:

>
> The wiki says to disable multilib
> (http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler#Build_GCC),
> what's the problem? Maybe ask Iain/Johannes if it's GDC specific.

When I first started working with GDC, I had a hell of a time getting the cross-compiler to build.  I disabled multilib simply to remove a variable.  Since I was able to eventually get what I needed with that configuration, I left it as is.  In summary, the choice to disable multilib was rather arbitrary.

I'm not currently working on this, and I don't have the hardware to properly test it.

Timo also asked about this a while ago, but it didn't elicit much discussion (http://forum.dlang.org/post/uwkshliqwbmmxdfiuaow@forum.dlang.org).  I'm not knowledgable enough about it, so I wasn't able to offer any help.

Mike
« First   ‹ Prev
1 2 3 4 5 6 7 8 9 10