CH58X编译错误

CH58X的EVT中的BackupUpgrade_OTA里把HAL_LED设为TRUE,编译的时候会出现如下错误,请问如何解决。谢谢!

make -j4 all 

Memory region         Used Size  Region Size  %age Used

c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./HAL/MCU.o: in function `HAL_ProcessEvent':

           FLASH:      153040 B       216 KB     69.19%

D:/Users/EVT/EXAM/BLE/HAL/MCU.c:199: undefined reference to `HalLedUpdate'

             RAM:       18484 B        32 KB     56.41%

c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./HAL/MCU.o: in function `HAL_Init':

D:/Users/EVT/EXAM/BLE/HAL/MCU.c:215: undefined reference to `HAL_LedInit'

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:56: BackupUpgrade_OTA.elf] Error 1


11:30:10 Build Failed. 5 errors, 0 warnings. (took 1s.500ms)


例程中LED.c是默认没有参与编译的,右击选择参与编译即可。

可参考此链接:https://www.cnblogs.com/risc5-ble/p/15989143.html

emobile_2023-02-10_11-43-16.png


好了。谢谢!


只有登录才能回复,可以选择微信账号登录