Hello Everybody
I’m working with a licensed CodeWarrior ver. 5.9 and Processor expert and my MCU is MC9S12E128QFP80
I have a problem with the IntFlash bean in processor expert
I added the bean to my program and when I try to compile it I'm getting each time this error from compiler.
{{{
+IFsh1
+ERROR: Compiler option -CpPPAGE=0x30 (address of PPAGE register) or -CpPPAGE=RUNTIME must be set to compile the generated code correctly
(current target settings, Compiler for HC12, Options, Code Generation tab, PPAGE register is used for paging). After compiler option change,
run Code design to apply the change in Processor Expert. For details, see Help of the bean.
}}}
I m trying just use this bean in a simple programming such as
IFsh1_SetByteFlash(0x7000,28);
IFsh1_GetByteFlash(0x7000,&data) ;
I was wondering if anybody can help me
Thank you
解決済! 解決策の投稿を見る。
Hello
Did you try to add the option -CpPPAGE=RUNTIME to your compiler command line as instructed by the message?
What happens then?
CrasyCat
Thank you CrasyCat for your kind reply,
Could you please explain me how and where I should do this job?
Actually I'm a begineer with CodeWarrior and Processor Expert.
Thanks
Hello
In order to add option -CpPPAGE=RUNTIME to your project:
- Open Target Settings dialog
- Switch to Panel "Compiler for HC12"
- in the command line field add -CpPPAGE=RUNTIME.
- Close OK to close the dialog and re-build your application.
"
CrasyCat
Finally I have succeeded to solve the problem but I have still had another problem:
I use the following routine for writing data in my program with IntFlash bean:
Fsh1_SetByteFlash(0x7000,28);
IFsh1_GetByteFlash(0x7000,&data) ;
Problem is when I check the "data" there is nothing inside it.
So I believe there is a protection for flash memory.
Please let me know how I can solve this?
Thanks