首選原始情況可以編譯成功:
接著打開宏定義:
最后編譯出錯:
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)