Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将DIODE_DIRECTION改为ROW2COL时link出错 #9

Open
euzenlee opened this issue Jan 5, 2021 · 6 comments
Open

将DIODE_DIRECTION改为ROW2COL时link出错 #9

euzenlee opened this issue Jan 5, 2021 · 6 comments

Comments

@euzenlee
Copy link

euzenlee commented Jan 5, 2021

百思不得其解,编译都过去了,怎么会在link这一步报错?

Linking: .build/candy_ble_pro_v1_default.elf [ERRORS]
|
| c:/msys64/home/admin/qmk_utils/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: .build/obj_candy_ble_pro_v1_default/keyboards/candy_ble/pro_v1/pro_v1.o: in function matrix_init_user': | D:\nrfkb\qmk_firmware/keyboards/candy_ble/pro_v1/pro_v1.c:54: undefined reference to select_row'
| c:/msys64/home/admin/qmk_utils/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: D:\nrfkb\qmk_firmware/keyboards/candy_ble/pro_v1/pro_v1.c:56: undefined reference to read_cols' | c:/msys64/home/admin/qmk_utils/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: D:\nrfkb\qmk_firmware/keyboards/candy_ble/pro_v1/pro_v1.c:57: undefined reference to unselect_rows'
| collect2.exe: error: ld returned 1 exit status
|
make[1]: *** [tmk_core/rules.mk:288: .build/candy_ble_pro_v1_default.elf] Error 1

@euzenlee
Copy link
Author

euzenlee commented Jan 7, 2021

看了一下matrix.c的代码,DIODE_DIRECTION是需要条件编译的。pro_v1.c 只实现了DIODE_DIRECTION=COL2ROW的代码,相反方向的话,需要自已修改。

@Rem0uld
Copy link

Rem0uld commented May 16, 2021

看了一下matrix.c的代码,DIODE_DIRECTION是需要条件编译的。pro_v1.c 只实现了DIODE_DIRECTION=COL2ROW的代码,相反方向的话,需要自已修改。

同样发现了这个问题

@H-QYan
Copy link

H-QYan commented Aug 11, 2021

看了一下matrix.c的代码,DIODE_DIRECTION是需要条件编译的。pro_v1.c 只实现了DIODE_DIRECTION=COL2ROW的代码,相反方向的话,需要自已修改。

请问您也是用的原本作者提供的代码吗?我用原本作者的代码啥都没改出现这个问题

@H-QYan
Copy link

H-QYan commented Aug 11, 2021

不对我的报错是这个
image
但是也是最后出问题

@LQDRCXK
Copy link

LQDRCXK commented Nov 11, 2022

搞定了吗,同样的报错

@SSSLiurong
Copy link

Linking: .build/eblue_default.elf [ERRORS]
|
| d:/qmk_msys/mingw64/bin/../lib/gcc/arm-none-eabi/12.2.0/../../../../arm-none-eabi/bin/ld.exe:rules_memory.ld:314 cannot move location counter backwards (from 0000000020000ed0 to 0000000020000800)
| collect2.exe: error: ld returned 1 exit status
|
make[1]: *** [tmk_core/rules.mk:365:.build/eblue_default.elf] 错误 1
Make finished with errors
make: *** [Makefile:478:eblue:default] 错误 1
我的是这样捏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants