thompson-vii / kb16_rev2_vial_fw

compiled firmware for doio's kb16 rev2 (aka megalodon trip knob macropad)
65 stars 25 forks source link

cannot open linker script file & / STM32F103xB_stm32duino_bootloader.ld: No such file or directory #21

Open jweezy56 opened 1 year ago

jweezy56 commented 1 year ago

Trying to reflash my kb16-rev2 according to this reddit post.

First ran into RGB_DI_PIN issue from Issue #20 and made the following adjustments:

  1. updated kb16/rev2/config.h line 58 from " #define RGB_DI_PIN A10" to " #define WS2812_DI_PIN A10"
  2. updated rules.mk lines 37 and line 33 to lower case (line 33 OLED_DRIVER = ssd1306) (line 37 RGB_MATRIX_DRIVER = ws2812)

Then ran into Config_common.h not found issue from Issue #16 . I deleted line 20 (#include "config_common.h") in config.h.

Now when running qmk compile -kb doio/kb16/rev2 -km vial I get the following error:

Making doio/kb16/rev2 with keymap vial

arm-none-eabi-gcc.exe (GCC) 10.1.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiling: quantum/via.c [OK] Compiling: quantum/command.c [OK] Linking: .build/doio_kb16_rev2_vial.elf [ERRORS] c:/qmk_msys/mingw64/bin/../lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld.exe: cannot open linker script file ./lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/STM32F103xB_stm32duino_bootloader.ld: No such file or directory collect2.exe: error: ld returned 1 exit status

make[1]: [builddefs/common_rules.mk:271: .build/doio_kb16_rev2_vial.elf] Error 1 Make finished with errors make: [Makefile:392: doio/kb16/rev2:vial] Error 1

Notes: Running on latest Vial-QMK clone from github. Installed QMK CLI via QMKMSYS and ran make git-submodule.

aluminum-ice commented 1 year ago

I have run into the same exact problem.

guiom25 commented 1 year ago

Same problem here

wardokon commented 1 year ago

Hi there !

Linking: .build/wardokon2_rev2_vial.elf [ERRORS] d:/keyboard/qmk_msys/mingw64/bin/../lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld.exe: cannot open linker script file ./lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/STM32F103xB_stm32duino_bootloader.ld: No such file or directory collect2.exe: error: ld returned 1 exit status

make[1]: [builddefs/common_rules.mk:271 : .build/wardokon2_rev2_vial.elf] Erreur 1 Make finished with errors make: [Makefile:392 : wardokon2/rev2:vial] Erreur 1

Same exact problem. Did the same things before this happened.

Hope we can find a fix soon.

aluminum-ice commented 1 year ago

I've not found useful reference to STM32F103xB_stm32duino_bootloader.ld anywhere online. Anyone else have better luck?

guiom25 commented 1 year ago

A temporary solution which worked for me was to download and use an older version of Vial.

And there is no need to change any of the files.

Hope this can help, until someone is able to understand and find out the corrections required for the latest version of Vial

aluminum-ice commented 1 year ago

I fixed the problems by reading through the prior vial-qmk commits and finding the change that removed out this linker. I fixed the issue in my fork and increased the macro count to 36 while I was at it.

You can close this issue.