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...)