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:   QP nano and AVR
Name:   Carlo
Date Posted:   May 2, 08 - 2:55 AM
Email:   ccarlo@inwind.it
Message:   I am building a simple application to test the QP nano 4.0 with AVR ATmega16 cpu.

When i start the building of project, the compiler tell:

F:\SW\Avr-QPn\QPn_Test\..\Qpn/qassert.h:69: warning: '__progmem__' attribute ignored
../../QPn/qfn.c:41: warning: only initialized variables can be placed into program memory area
../../QPn/qfn.c: In function 'QActive_post':
../../QPn/qfn.c:70: error: assignment of read-only variable 'QF_pCB_'
../../QPn/qfn.c: In function 'QActive_postISR':
../../QPn/qfn.c:111: error: assignment of read-only variable 'QF_pCB_'
../../QPn/qfn.c: In function 'QF_run':
../../QPn/qfn.c:229: error: assignment of read-only variable 'QF_pCB_'
make: *** [qfn.o] Error 1
Build failed with 3 errors and 2 warnings...


The declaration in Qfc.c is:

QActiveCB const Q_ROM * Q_ROM_VAR QF_pCB_; /* ptr to AO control block */


Where is the error?
Thank you (and sorry for my bad english...)
Replies:    
Re: QP nano and AVR by Miro Samek · May 2, 08 - 9:07 AM
Re: QP nano and AVR by Carlo · May 2, 08 - 11:01 AM


  Reply
  Forum


powered by Powered by Bravenet bravenet.com