把之前在mdk5中编译正常的freemodbus 移植到 cube ide 后,无法编译通过。
看debug 是 无法编译m3的底层库的方法。cmsis_gcc.h
D:/STM32CubeIDE/workspace/zzzzzzzzz/Debug/../freemodbus-v1.6/mbascii.c:125: undefined reference to `__set_CONTROL'
freemodbus-v1.6/mbascii.o: In function `eMBASCIIStart':
D:/STM32CubeIDE/workspace/zzzzzzzzz/Debug/../freemodbus-v1.6/mbascii.c:133: undefined reference to `__set_CONTROL'
D:/STM32CubeIDE/workspace/zzzzzzzzz/Debug/../freemodbus-v1.6/mbascii.c:136: undefined reference to `__set_CONTROL'
freemodbus-v1.6/mbascii.o: In function `eMBASCIIStop':
D:/STM32CubeIDE/workspace/zzzzzzzzz/Debug/../freemodbus-v1.6/mbascii.c:145: undefined reference to `__set_CONTROL'
freemodbus-v1.6/mbascii.o:/STM32CubeIDE/workspace/zzzzzzzzz/Debug/../freemodbus-v1.6/mbascii.c:148: more undefined references to `__set_CONTROL' follow
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:51: zzzzzzzzz.elf] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.