Porting ucos-ii to the Hitachi (Renesas) M16c

Status
Not open for further replies.

bscheuing

Newbie level 2
Joined
Jul 5, 2004
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
54
m16c ucos

I have the ucos-ii (Version 2.52 and 2.60) and I want to port it on the Microcontroller M16c. When I try to use the port of the ucos-website for the Tasking-compiler, I can open the project files, but when I try to compile it, the compiler does not find the ucos-ii-files. When I correct the include-pathes of the ucos-ii.c, he does find them, but then there are a lot of errors shown by the compiler:

TASKING program builder v2.3r2 Build 056 SN 00095734
Compiling ucos_ii.c
cm16 W091: "C:\microCos2\SOFTWARE\uCOS-II\source\os_core.c" line 102: no prototype for function "OS_MemInit"
cm16 W091: "C:\microCos2\SOFTWARE\uCOS-II\source\os_core.c" line 106: no prototype for function "OS_QInit"
cm16 W091: "C:\microCos2\SOFTWARE\uCOS-II\source\os_core.c" line 261: no prototype for function "OS_Sched"
cm16 E117: "C:\microCos2\SOFTWARE\uCOS-II\source\os_core.c" line 728: "OS_TaskIdle" undefined
cm16 W147: "C:\microCos2\SOFTWARE\uCOS-II\source\os_core.c" line 736: argument #1: different levels of indirection
cm16 E117: "C:\microCos2\SOFTWARE\uCOS-II\source\os_core.c" line 781: "OS_TaskStat" undefined
cm16 W147: "C:\microCos2\SOFTWARE\uCOS-II\source\os_core.c" line 789: argument #1: different levels of indirection
cm16 E064: "C:\microCos2\SOFTWARE\uCOS-II\source\os_core.c" line 870: incompatible redeclaration of "OS_Sched"
cm16 W013: "C:\microCos2\SOFTWARE\uCOS-II\source\os_core.c" line 870: prototype after forward call or old style declaration - ignored
cm16 W091: "C:\microCos2\SOFTWARE\uCOS-II\source\os_core.c" line 923: no prototype for function "OSTaskIdleHook"
cm16 E117: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mbox.c" line 395: "OS_POST_OPT_BROADCAST" undefined
cm16 W135: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mbox.c" line 400: statement not reached
cm16 E117: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mem.c" line 61: "OS_MEM_INVALID_ADDR" undefined
cm16 E117: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mem.c" line 130: "OS_MEM_INVALID_PMEM" undefined
cm16 E117: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mem.c" line 175: "OS_MEM_INVALID_PMEM" undefined
cm16 E117: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mem.c" line 178: "OS_MEM_INVALID_PBLK" undefined
cm16 W126: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mem.c" line 191: missing return (function "OSMemPut")
cm16 E117: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mem.c" line 221: "OS_MEM_INVALID_PMEM" undefined
cm16 E117: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mem.c" line 224: "OS_MEM_INVALID_PDATA" undefined
cm16 W126: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mem.c" line 236: missing return (function "OSMemQuery")
cm16 E064: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mem.c" line 255: incompatible redeclaration of "OS_MemInit"
cm16 W013: "C:\microCos2\SOFTWARE\uCOS-II\source\os_mem.c" line 255: prototype after forward call or old style declaration - ignored
cm16 E117: "C:\microCos2\SOFTWARE\uCOS-II\source\os_q.c" line 567: "OS_POST_OPT_BROADCAST" undefined
cm16 W135: "C:\microCos2\SOFTWARE\uCOS-II\source\os_q.c" line 572: statement not reached
cm16 E117: "C:\microCos2\SOFTWARE\uCOS-II\source\os_q.c" line 583: "OS_POST_OPT_FRONT" undefined
cm16 W135: "C:\microCos2\SOFTWARE\uCOS-II\source\os_q.c" line 590: statement not reached
cm16 E064: "C:\microCos2\SOFTWARE\uCOS-II\source\os_q.c" line 702: incompatible redeclaration of "OS_QInit"
cm16 W013: "C:\microCos2\SOFTWARE\uCOS-II\source\os_q.c" line 702: prototype after forward call or old style declaration - ignored
cm16 W066: "C:\microCos2\SOFTWARE\uCOS-II\source\os_task.c" line 437: function "OSTaskDel": variable "self" not used
total errors: 14, warnings: 15
wmk: *** action exited with value 1.

To install the files I always used the standard-pathes of ucos-ii (for ucos-ii as well as for the port-files).

What do I have to do? What is the problem? Can you help me?
 

ucos m16c files

header file where the names in warnings and erros is not included . Did you include includes.h header file into your sample application ?
 

m16c renesas hitachi

have u place #include uCOS_ll.h at ur program? 8)
 

ucosii ostaskdel

Yes, I included all header-files. This was the first thing I checked when I saw these errors.
It might have been a version problem, because I was using the versions 2.52 or 2.60. Mr. Labrosse sent me the version 2.76 and there ist just one error left (and this seems to be a version problem of the port I am using; I think this port is not compatible with the new OS-version).
Thanks.
 

ucos renesas

Well , if you included al header files , there should be option in compiler to only run preprocessor . Run the preprocessor for one of the files and check whether declarations shown in compiler errors are there . If not - check why include files are not expanded .

It should not be the case you mentioned , because error happened in rtos related files and concerned rtos declarations . Probably , your rtos files have been changed . Reinstall your rtos files .
 

ucos2 for m16c

It's already ported and ready to download at Micrium site, at least the 2.70 version is. Am I misunderstanding you?

**broken link removed**

There are other versions too.

**broken link removed**

Git
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…