| Author |
Message |
Aravind Kumar Singh
Joined: 28 Mar 2008 Posts: 2
|
28 Mar 2008 14:35 compiling ucos-II on win32 platform |
|
|
|
Hi,
Can any one with a simple program explain how to compile u-cos-II program in any complier for C (Kindly suggest the basic tools to be downloaded to start programming the u-cos_ii based application on PC). I have read the ucos2 buk but i unable to compile can anyone help mee.....
with reards
Aravind Kumar Singh
|
|
| Back to top |
|
 |
vhn
Joined: 20 Sep 2006 Posts: 77 Helped: 4
|
29 Mar 2008 10:14 Re: compiling ucos-II on win32 platform |
|
|
|
Hi Aravind Kumar Singh,
Running uC/OS-II applications on PC is very simple. You readily get the port available on the micrium website. Just download the 80x86 port (ports are available depending on the memory model) from www.micrium.com.
You can download the one which is compiled on Borland C compiler.
Once you get the port, create a project in Borland C (v3 or higher) and choose the appropriate memory model.
Then build the port as it is. Once it compiles successfully, run the executable it creates in the project folder. You can modify the source now, add your own applications and experience the uC/OS-II functionality on PC.
uC/OS-II is free for use unless you use it for comercial purposes.
Regards,
vhn
|
|
| Back to top |
|
 |
Aravind Kumar Singh
Joined: 28 Mar 2008 Posts: 2
|
05 Apr 2008 18:57 compiling ucos-II on win32 platform |
|
|
|
hum i tried so but the problem i am facing now is
1. first it is asking for TASM32.exe i am using Borland 5.02
2. It shows error when i have installed Tasm32.exe that unable to find defination for command that are defined in header files for ucosii and saying that unable to resolve for these synbols in the obj file help i am stuck
with regards
Aravind Kumar Singh
|
|
| Back to top |
|
 |
xuxi2008
Joined: 01 May 2008 Posts: 1 Helped: 1
|
01 May 2008 17:27 Re: compiling ucos-II on win32 platform |
|
|
|
You can compile Ucos by Turbo C 3.0
The source code we need are:
the entire Source fold:
OS_CORE.C OS_FLAG..C OS_MBOX.C OS_MEM.C OS_MUTEX.C OS_Q.C OS_SEM.C OS_TASK.C OS_TIME.C uCOS_II.c uCOS_II.H
OS_CPU.H OS_CPU_A.ASM OS_CPU_C.C (x86L)
INCLUDE.H OS_CFG.H PC.H PC.C
and a TEST.C which can be a example from the ucosii books or simple code written by yourself.
Then create a new project in TurboC3 and add the OS_CPU_A.ASM,OS_CPU_C.C,uCOS_II.C,PC.C andTEST.C to the new project.
do some changes in INCLUDE.H,remove “OS_CPU.H uCOS_II.H PC.H OS_CFG.H” all these four file's path if you have put these four files at the same place with test.c
do the same change with uCOS_II.C
At last we need a TASM.exe ,you can get it from TASM or BC3 or 4.5
put it to where the project(.prj) is.
at the same time ,you need to copy a TASM2MSG.EXE from Turboc's bin fold to the project fold.
change the compile options to the large mode in the options menu
and you can compile it.
[/img]
|
|
| Back to top |
|
 |
amraldo
Joined: 29 Aug 2004 Posts: 248 Helped: 22 Location: egypt, cairo
|
19 May 2008 17:47 compiling ucos-II on win32 platform |
|
|
|
Hi,
I did it using Borland C++ V3.1 & I think within the same source u wil find port for MSVS6.
BR,
Amr Ali.
|
|
| Back to top |
|
 |
tamphong
Joined: 30 Apr 2007 Posts: 13 Location: Viet Nam
|
04 Aug 2008 16:25 compiling ucos-II on win32 platform |
|
|
|
| I want compiler with Turbo C 4.5, but don't see TSAM.ASM, so can't build uCOS, because not build file *.asm . Can you compiler with it ?
|
|
| Back to top |
|
 |