Trouble with Cortex-M "Hello World"

Mike via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 31 04:23:40 PDT 2015


On Tuesday, 31 March 2015 at 10:39:05 UTC, Jens Bauer wrote:

> Referring to the tutorial on this page:
> <http://wiki.dlang.org/Minimal_semihosted_ARM_Cortex-M_%22Hello_World%22>
>
> -I'm getting the following error:
>
> start.d:45:11: error: mismatched array lengths, 0 and 3
>    uint[3] message =
>            ^
[snip]
>
> ... I've carefully checked the code, but found no difference. 
> Is this the expected behaviour ?
> When I change the square brackets to parantheses, the error 
> goes away, but I'm not sure that is the correct fix ?

I just cut and pasted the code from the wiki myself and compiled 
with my arm-none-eabi-gdc cross-compiler and it works fine.  I'm 
sorry, but I'm not sure what the problem could be.

Mike


More information about the Digitalmars-d mailing list