Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Porting uC/OS-II V2.86 to WinAVR and Atmega128

Status
Not open for further replies.

seadolphine2000

Advanced Member level 3
Advanced Member level 3
Joined
Apr 12, 2005
Messages
880
Helped
122
Reputation
244
Reaction score
87
Trophy points
1,308
Activity points
7,372
Hello,

I'm working on porting uC/OS-II V2.86 to WinAVR and Atmega128. I downloaded the porting files from Micrium - Home for AVR-GCC compiler. Also, I tried the test application provided but got the following errors:
Code:
./os_cfg.h:130: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OS_FLAGS'

/Micrium/Software/uCOS-II/Source/ucos_ii.h:1448:6: error: #error "OS_CFG.H, Missing OS_FLAGS_NBITS: Determine #bits used for event flags, MUST be either 8, 16 or 32"

/Micrium/Software/uCOS-II/Source/ucos_ii.h:1490:6: error: #error "OS_CFG.H, Missing OS_MBOX_PEND_ABORT_EN: Include code for OSMboxPendAbort()"

/Micrium/Software/uCOS-II/Source/ucos_ii.h:1584:6: error: #error "OS_CFG.H, Missing OS_Q_PEND_ABORT_EN: Include code for OSQPendAbort()"

/Micrium/Software/uCOS-II/Source/ucos_ii.h:1622:6: error: #error "OS_CFG.H, Missing OS_SEM_PEND_ABORT_EN: Include code for OSSemPendAbort()"

/Micrium/Software/uCOS-II/Source/ucos_ii.h:1630:6: error: #error "OS_CFG.H, Missing OS_SEM_SET_EN: Include code for OSSemSet()"

/Micrium/Software/uCOS-II/Source/ucos_ii.h:1730:2: error: #error "OS_CFG.H, Missing OS_TMR_EN: When (1) enables code generation for Timer Management"

/Micrium/Software/uCOS-II/Source/ucos_ii.h:1792:2: error: #error "OS_CFG.H, Missing OS_APP_HOOKS_EN: Application-defined hooks are called from the uC/OS-II hooks"

/Micrium/Software/uCOS-II/Source/ucos_ii.h:1821:2: error: #error "OS_CFG.H, Missing OS_EVENT_MULTI_EN: Include code for OSEventPendMulti()"

These are the errors I got when compiling the whole project. I attached the whole folders structure.

Thanks a lot for your time and help.
 

Attachments

  • Micrium.rar
    141.5 KB · Views: 159

If I am correct error happens at "typedef INT8U OS_FLAGS; /* Data type for event flag bits (8, 16 or 32 bits) */"
It is due to it could not find a definition for INT8U.

Either you define it manually or include the header file which defines this. the errors will be removed.

end point: correct the include path the errors will go.
 

Hello Bluehole,

Thanks for your reply.
If I am correct error happens at "typedef INT8U OS_FLAGS; /* Data type for event flag bits (8, 16 or 32 bits) */"
It is due to it could not find a definition for INT8U.
The type INT8U is defined in the file "os_cpu.h" and, this "os_cpu.h" is included in the file "ucos_ii.h"
Code:
typedef unsigned char  INT8U;          /* Unsigned  8 bit quantity

So, any other ideas?

Thanks.
 

Hello Bluehole,

Thanks for your reply.

The type INT8U is defined in the file "os_cpu.h" and, this "os_cpu.h" is included in the file "ucos_ii.h"
Code:
typedef unsigned char  INT8U;          /* Unsigned  8 bit quantity

So, any other ideas?

Thanks.

1) is the os_cpu.h is visible from the file where it shows the error?
2) is all the header file have protection against multiple inclusion?
3) is all typedef are proper?

Coz the problem is related to some wrong type and wrong syntax. Sorry to say is I have not compiled your code coz I don't have the setup. The answer I posted is from my experience. While I was writing NanoOS

I faced this type of error some times. Please check the Include files for wrong typedefs or multiple typedefs too.

Hope this helps. Please do feel free to contact me.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top