Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

Discussion Groups | 68HC12 | Compilation Error with NE64 on icc12

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

Compilation Error with NE64 on icc12 - deniz_kerimoglu - May 24 18:13:44 2008

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



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )


Re: Compilation Error with NE64 on icc12 - Edward Karpicz - May 25 2:42:51 2008

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

------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: Compilation Error with NE64 on icc12 - =?ISO-8859-9?Q?Deniz_KER=DDMO=D0LU?= - May 25 3:00:55 2008

> 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.
[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: Compilation Error with NE64 on icc12 - Edward Karpicz - May 25 5:07:31 2008

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...@yahoogroups.com>
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.
> [Non-text portions of this message have been removed]
> ------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: Compilation Error with NE64 on icc12 - =?ISO-8859-9?Q?Deniz_KER=DDMO=D0LU?= - May 25 6:03:44 2008

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
[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )