請問在CH582的藍牙初始化過程中,打開HAL_LED和或HAL_KEY會出現(xiàn)編譯錯誤

首選原始情況可以編譯成功:

image.png

接著打開宏定義:

image.png

最后編譯出錯:

image.png

22:40:57 **** 構建 of configuration obj for project Peripheral ****

make -j16 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:? ? ? 151032 B? ? ? ?448 KB? ? ?32.92%

D:/MineProj/MCUProj/CH/BLE/HAL/MCU.c:209: undefined reference to `HalLedUpdate'

? ? ? ? ? ? ?RAM:? ? ? ?17540 B? ? ? ? 32 KB? ? ?53.53%

c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:/MineProj/MCUProj/CH/BLE/HAL/MCU.c:212: undefined reference to `HAL_KeyPoll'

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:/MineProj/MCUProj/CH/BLE/HAL/MCU.c:225: undefined reference to `HAL_LedInit'

c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:/MineProj/MCUProj/CH/BLE/HAL/MCU.c:226: undefined reference to `HAL_KeyInit'

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:57: Peripheral.elf] Error 1


22:40:58 Build Failed. 7 errors, 0 warnings. (took 1s.55ms)


你好,需要將工程的文件包含一下,鼠標放在文件上面include。

image.png


只有登錄才能回復,可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频