Return to Website   
Quantum Leaps Discussion Forum

Search the Forum for answers or post your questions to the
Quantum Leaps community



Return to Website

  Reply
  Forum

Subject:   problems with AVR examples for QP/C
Name:   Brendan Fox
Date Posted:   Jun 18, 08 - 9:50 AM
Email:   fox_brendan@shure.com
Message:   I'm using IAR Embedded Workbench for Atmel AVR 5.11B.
I downloaded the AVR port and tried to compile the dinning philosophers example, but when I try to open the vanilla port it throws multiple errors:

Error[Pe020]: identifier "QF_INT_KEY_TYPE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\bsp.c 101
Error[Pe147]: declaration is incompatible with "void QF_onIdle()" (declared at line 753 of "C:\qpc_3\examples\avr\vanilla\iar\ C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\bsp.c 101
qdpp-butterfly\..\..\..\..\..\include\qf.h")
isr.c
Error[Pe054]: too few arguments in macro invocation C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\isr.c 46
Error[Pe054]: too few arguments in macro invocation C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\isr.c 54
main.c
philo.c
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 51
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 52
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 53
Warning[Pe223]: function "QActive_ctor_" declared implicitly C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 82
Warning[Pe767]: conversion from pointer to smaller integer C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 82
Warning[Pe223]: function "QActive_subscribe_" declared implicitly C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 111
Warning[Pe223]: function "Q_INIT" declared implicitly C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 113
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 116
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 127
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 130
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 146
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 149
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\philo.c 167
table.c
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\table.c 51
Warning[Pe223]: function "QActive_ctor_" declared implicitly C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\table.c 75
Warning[Pe767]: conversion from pointer to smaller integer C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\table.c 75
Warning[Pe223]: function "QActive_subscribe_" declared implicitly C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\table.c 86
Warning[Pe223]: function "Q_INIT" declared implicitly C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\table.c 93
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\table.c 96
Error[Pe020]: identifier "QSTATE" is undefined C:\qpc_3\examples\avr\vanilla\iar\qdpp-butterfly\table.c 145


When I try to open the qk port it throws an error saying the project file was created by a newer version of the product and cannot be opened. How can I get these examples to build?
Replies:    
Re: problems with AVR examples for QP/C by Miro Samek · Jun 21, 08 - 6:22 PM
Re: problems with AVR examples for QP/C by Brendan Fox · Jul 1, 08 - 2:51 PM
Re: problems with AVR examples for QP/C by Miro Samek · Jul 2, 08 - 8:43 AM


  Reply
  Forum


powered by Powered by Bravenet bravenet.com