What is the state of Microcontroller support in d?
Dan Walmsley via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 20 05:01:15 PDT 2017
On Tuesday, 20 June 2017 at 11:58:21 UTC, Dan Walmsley wrote:
> On Tuesday, 20 June 2017 at 11:53:07 UTC, Mike wrote:
>> On Tuesday, 20 June 2017 at 11:50:56 UTC, Dan Walmsley wrote:
>>
>>> C:\dev\repos\STM32DBlinky\Blinky\build\obj\main.o: In
>>> function `_D4main5Point3SumMFZi':
>>> C:\dev\repos\STM32DBlinky\Blinky/main.d:26: undefined
>>> reference to `_D9invariant12_d_invariantFC6ObjectZv'
>>> C:\dev\repos\STM32DBlinky\Blinky/main.d:26: undefined
>>> reference to `_d_assert_msg'
>>> C:\dev\repos\STM32DBlinky\Blinky\build\obj\main.o: In
>>> function `_D4main4MainFZv':
>>> C:\dev\repos\STM32DBlinky\Blinky/main.d:44: undefined
>>> reference to `_d_eh_resume_unwind'
>>>
>>> Whats the invariant object thing?
>>
>> Please publish your source code and your linker script.
>
> https://github.com/vitalElement/STM32DBlinky
commands to build were:
Compile:
ldc2 -c -O0 -march=thumb -mcpu=cortex-m4
-mtriple=thumb-none-linux-eabi -g -debuglib= -conf= -oftest
-betterC -release main.d -ofmain.o
ldc2 -c -O0 -march=thumb -mcpu=cortex-m4
-mtriple=thumb-none-linux-eabi -g -debuglib= -conf= -oftest
-betterC -release stm32f4xx_startup.d -ofstm32f4xx_startup.o
Link:
arm-none-eabi-gcc -mcpu=cortex-m4 -Wl,-Map,output.map -nostdlib
-mfpu=fpv4-sp-d16 -mfloat-abi=hard -nostartfiles
-Wl,--gc-sections -O0 -Wl,-T"link.ld" -oBlinky.elf attribute.o
object.o main.o stm32f4xx_startup.o -Wl,--start-group
-Wl,--end-group
If you need windows binaries for arm-none-eabi I can give you
some.
More information about the Digitalmars-d
mailing list