uC/OS V2.51安装调试指南(原创)
1、 将uCOSV251.exe文件解压缩到d:\; 2、 进入d:\software\uCOS-II\EX1_x86L\BC45\SOURCE\,用写字板打开test.lnk文件,范例中原文件为:
/v /s /c /P- + C:\BC45\LIB\C0L.OBJ + ..\OBJ\TEST.OBJ + ..\OBJ\OS_CPU_A.OBJ + ..\OBJ\OS_CPU_C.OBJ + ..\OBJ\PC.OBJ + ..\OBJ\uCOS_II.OBJ ..\OBJ\TEST,..\OBJ\TEST C:\BC45\LIB\EMU.LIB + C:\BC45\LIB\MATHL.LIB + C:\BC45\LIB\CL.LIB将上述红色部分修改为Borland C安装的路径(如d:\borlandc\),修改后为
/v /s /c /P- + d:\borlandc\LIB\C0L.OBJ + ..\OBJ\TEST.OBJ + ..\OBJ\OS_CPU_A.OBJ + ..\OBJ\OS_CPU_C.OBJ + ..\OBJ\PC.OBJ + ..\OBJ\uCOS_II.OBJ ..\OBJ\TEST,..\OBJ\TEST d:\borlandc\LIB\EMU.LIB + d:\borlandc\LIB\MATHL.LIB + d:\borlandc\LIB\CL.LIB关闭保存。 3、 进入d:\software\uCOS-II\EX1_x86L\BC45\TEST\,用写字板打开test.mak文件,范例中原文件为 ############################################################################### # uC/OS-II # The Real-Time Kernel # # (c) Copyright 1999, Jean J. Labrosse, Weston, FL # All Rights Reserved # # # Filename : TEST.MAK ############################################################################### # #/*$PAGE*/ ############################################################################### # TOOLS ###############################################################################
BORLAND=C:\BC45 CC=$(BORLAND)\BIN\BCC ASM=$(BORLAND)\BIN\TASM LINK=$(BORLAND)\BIN\TLINK TOUCH=$(BORLAND)\BIN\TOUCH …… ……………. ………………….将上述文件中红色部分修改为Borland C安装的路径(如d:\borlandc\),修改后为
BORLAND=d:\borlandc其他部分不变,关闭保存 4、 编辑同目录下的maketest.bat文件,原文件为
ECHO OFF ECHO ******************************************************************************* ECHO * uC/OS-II ECHO * The Real-Time Kernel ECHO * ECHO * (c) Copyright 2001, Jean J. Labrosse, Weston, FL ECHO * All Rights Reserved ECHO * ECHO * Filename : MAKETEST.BAT ECHO * Description : Batch file to create the application. ECHO * Output : TEST.EXE will contain the DOS executable ECHO * Usage : MAKETEST ECHO * Note(s) : 1) This file assume that we use a MAKE utility. ECHO ******************************************************************************* ECHO * ECHO ON MD ..\WORK MD ..\OBJ MD ..\LST CD ..\WORK COPY ..\TEST\TEST.MAK TEST.MAK C:\BC45\BIN\MAKE -f TEST.MAK CD ..\TEST将上述文件红色部分修改为Borland C安装的路径(如d:\borlandc\),修改后为
ECHO OFF ECHO ******************************************************************************* ECHO * uC/OS-II ECHO * The Real-Time Kernel ECHO * ECHO * (c) Copyright 2001, Jean J. Labrosse, Weston, FL ECHO * All Rights Reserved ECHO * ECHO * Filename : MAKETEST.BAT ECHO * Description : Batch file to create the application. ECHO * Output : TEST.EXE will contain the DOS executable ECHO * Usage : MAKETEST ECHO * Note(s) : 1) This file assume that we use a MAKE utility. ECHO ******************************************************************************* ECHO * ECHO ON MD ..\WORK MD ..\OBJ MD ..\LST CD ..\WORK COPY ..\TEST\TEST.MAK TEST.MAK d:\borlandc\BIN\MAKE -f TEST.MAK CD ..\TEST保存并关闭文件 5、 运行maketest.bat,在d:\software\uCOS-II\EX1_x86L\BC45\WORK\下就能找到生成的test.exe文件 6、 调试生成的test.exe文件:运行Borland C安装目录下bin文件夹中的TD.EXE文件,执行File\Open命令,打开d:\software\uCOS-II\EX1_x86L\BC45\WORK\test.exe,就可以进行源码调试了!