build problems with v1.8.6 and boards/stm32f401.ld: No such file

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
User avatar
jgriessen
Posts: 191
Joined: Mon Sep 29, 2014 4:20 pm
Contact:

build problems with v1.8.6 and boards/stm32f401.ld: No such file

Post by jgriessen » Sun Nov 27, 2016 1:43 am

I was using v1.8.3 OK with Dave Hylands's https://github.com/dhylands/G30TH
board definitions. Today after a git pull and git submodule update --init

I get an error.
I am using v1.8.6 as a branch called * release-1.8.6, then adding the
micropython/stmhal/boards/G30TH directory.

make runs for about a minute, then this:

Code: Select all

.
.
.
CC usbdev/class/src/usbd_msc_data.c
CC build-G30TH/pins_G30TH.c
LINK build-G30TH/firmware.elf
arm-none-eabi-ld: cannot open linker script file boards/stm32f401.ld: No such file or directory
Makefile:323: recipe for target 'build-G30TH/firmware.elf' failed
make: *** [build-G30TH/firmware.elf] Error 1
The files that ARE there are:
stm32f401xd.ld
stm32f401xe.ld

I bet I need to be using one of those...
Looking for how...
John Griessen blog.kitmatic.com

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: build problems with v1.8.6 and boards/stm32f401.ld: No such file

Post by dhylands » Sun Nov 27, 2016 3:06 am

Thanks - I'll take a look and fix that.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: build problems with v1.8.6 and boards/stm32f401.ld: No such file

Post by dhylands » Sun Nov 27, 2016 3:21 am

I updated the G30TH board definition files so that they should now work with the latest MicroPython.

You can see the required changes here:
https://github.com/dhylands/G30TH/commi ... c2e6367072

Post Reply