我习惯了Makefile管理,我将这个系统使用直接调用C251编译器的Makefile更改出来了,安装git bash ,在终端使用make指令编译时,会自动拉取工具链,包括KEIL,AiCube-ISP ,Gow .增加了ROM RAM使用率显示。
分享给大家,感兴趣的可以试一试。https://www.stcaimcu.com/forum.php?mod=attachment&aid=MTMxODUwfDAyY2I2NzBifDE3NzI4NzQxMjl8MHw%3D
Administrator@PC-20230414RCQN /c/g/S/s/l/Makefile-C251-FreeRTOS (AiCube)# make
Replace AiCube/Sources/inc/def.h
Update AiCube/Sources/inc/config.h
Update User/include/FreeRTOSConfig.h
L251 LINKER/LOCATER V4.66.30.0 - SN: K2DZC-DAMNGC
COPYRIGHT ARM Germany GmbH 1995 - 2014
User/STC32G_MDU32.LIB, build/FreeRTOS/portable/MemMang/heap_1.obj, build/FreeRTOS/croutine.obj, build/FreeRTOS/event_groups.obj, build/FreeRTOS/list.obj,
build/FreeRTOS/queue.obj, build/FreeRTOS/stream_buffer.obj, build/FreeRTOS/tasks.obj, build/FreeRTOS/timers.obj, build/AiCube/Sources/main.obj, build/User/App.obj, build/User/led.obj, build/FreeRTOS/portable/STC32G12K128/port.obj TO build/firmware.abs REMOVEUNUSED IXREF SYMBOLS WL(0) DISABLEWARNING(16)
Program Size: data=11.0 edata+hdata=2975 xdata=32 const=106 code=16764
L251 RUN COMPLETE. 0 WARNING(S), 0 ERROR(S)
生成 firmware.abs 完成
Total Usage:
ROM : 16870/131072 (12.87%)
RAM : 2986/ 4096 (72.90%)
XRAM: 32/ 8192 (0.39%)
MCS 51/251 OBJECT TO HEX FILE CONVERTER V2.1d
COPYRIGHT KEIL ELEKTRONIK GmbH 2001-2009
GENERATING INTEL H386 FILE: build/firmware.hex
Administrator@PC-20230414RCQN /c/g/S/s/l/Makefile-C251-FreeRTOS (AiCube)# make help
Usage:
make toolchain install keil toolchain to C:/Users/Administrator/.hptools/Keil_v5_for51
make aicube open C:/Users/Administrator/.hptools/AiCube/AiCube-ISP-v6.96R.exe
make compile obj files and link to abs file and hex file
make clean remove all obj files and abs file and hex file
make upload upload hex file to /dev/ttyS38 with speed 115200 and freq 35000 KHz
make flash compile obj files and link to abs file and hex file and upload to /dev/ttyS38
make license get keil license
Timer0用于FreeRTOS的系统时钟
基于C:/Users/Administrator/.hptools/AiCube/AiCube-ISP-v6.96R.exe
AiCube目录是AiCube工程所在路径,生成的代码在这个文件夹,Usr目录为自己实现功能的目录
web串口调试工具: https://www.bchrt.com/tools/serial-port-debugger/
stc32系列官网: https://www.stcai.com/ 复制代码