Hi everyone!I face an error when I use the header file mc9s12ne_regs.h
when compiling my project with icc12:
The instruction at 0x0040d740 referenced memory at 0x00000000.The
memory could not be read.icc12w: can't execute C:\icc\bin\ias6812w.exe
But when I use the header file mc9s12ne64.h everything works fine. Has
anyone faced such a problem?
Regards.
Compilation Error with NE64 on icc12
Started by ●May 24, 2008
Reply by ●May 25, 20082008-05-25
"deniz_kerimoglu" wrote:
> Hi everyone!I face an error when I use the header file mc9s12ne_regs.h
> when compiling my project with icc12:
>
> The instruction at 0x0040d740 referenced memory at 0x00000000.The
> memory could not be read.icc12w: can't execute C:\icc\bin\ias6812w.exe
>
For some reason assembler is crashing. You must have something fancy in your
custom header file.
> But when I use the header file mc9s12ne64.h everything works fine. Has
> anyone faced such a problem?
Where could anyone get this weird mc9s12ne_regs.h ?
Regards
Edward
>
> Regards.
>
> Hi everyone!I face an error when I use the header file mc9s12ne_regs.h
> when compiling my project with icc12:
>
> The instruction at 0x0040d740 referenced memory at 0x00000000.The
> memory could not be read.icc12w: can't execute C:\icc\bin\ias6812w.exe
>
For some reason assembler is crashing. You must have something fancy in your
custom header file.
> But when I use the header file mc9s12ne64.h everything works fine. Has
> anyone faced such a problem?
Where could anyone get this weird mc9s12ne_regs.h ?
Regards
Edward
>
> Regards.
>
Reply by ●May 25, 20082008-05-25
> Where could anyone get this weird mc9s12ne_regs.h
?
Actually it came with the uip port for NE64 at technologicalarts.com. Thanks
for the advice.
Actually it came with the uip port for NE64 at technologicalarts.com. Thanks
for the advice.
Reply by ●May 25, 20082008-05-25
Deniz, what version is your icc12? I found gcc uIP port here
http://www.ericengler.com/downloads/uIP-HCS12NE-release-1.0.zip
and after some fighting against GCC extensions it compiled with
mc9s12ne_regs.h just fine.
Edward
----- Original Message -----
From: "Deniz KERIMOGLU"
To: <6...>
Sent: Sunday, May 25, 2008 10:00 AM
Subject: Re: [68HC12] Compilation Error with NE64 on icc12
>> Where could anyone get this weird mc9s12ne_regs.h ?
>
> Actually it came with the uip port for NE64 at technologicalarts.com.
> Thanks
> for the advice.
>
>
http://www.ericengler.com/downloads/uIP-HCS12NE-release-1.0.zip
and after some fighting against GCC extensions it compiled with
mc9s12ne_regs.h just fine.
Edward
----- Original Message -----
From: "Deniz KERIMOGLU"
To: <6...>
Sent: Sunday, May 25, 2008 10:00 AM
Subject: Re: [68HC12] Compilation Error with NE64 on icc12
>> Where could anyone get this weird mc9s12ne_regs.h ?
>
> Actually it came with the uip port for NE64 at technologicalarts.com.
> Thanks
> for the advice.
>
>
Reply by ●May 25, 20082008-05-25
Actually mc9s12ne_regs.h is configured to be used under GCC not ICC12. I
found the following code at the end of the mc9s12ne_regs.h.
/* Watchdog reset macro */
#ifdef _lint
#define __RESET_WATCHDOG() /* empty */
#else
#define __RESET_WATCHDOG()* **{asm sta COPCTL;} */* Just write a byte to
feed the dog */
#endif
ICC12's inline assembly is asm("sta"). I fixed it and now it works fine.
I use ICC12 V6.16. My purpose is to use uIP under uc/OS-II. I used uIP with
mc9s12ne_regs.h and uc/OS-II mc9s12ne64.h
Now I'll use only mc9s12ne_regs.h for both uIP & uc/OS-II.
I want to thank you for your precious attention.
Best REGARDS.
Deniz
found the following code at the end of the mc9s12ne_regs.h.
/* Watchdog reset macro */
#ifdef _lint
#define __RESET_WATCHDOG() /* empty */
#else
#define __RESET_WATCHDOG()* **{asm sta COPCTL;} */* Just write a byte to
feed the dog */
#endif
ICC12's inline assembly is asm("sta"). I fixed it and now it works fine.
I use ICC12 V6.16. My purpose is to use uIP under uc/OS-II. I used uIP with
mc9s12ne_regs.h and uc/OS-II mc9s12ne64.h
Now I'll use only mc9s12ne_regs.h for both uIP & uc/OS-II.
I want to thank you for your precious attention.
Best REGARDS.
Deniz