Flash Driver

Started by montserret_maxime January 3, 2006
Hi everybody,

I'm trying to use HIS Flash Driver for HCS12 developed by Motorola.
I'm using example with codewarrior compiler and MC9S12DG256BCPV
microcontroler
I put the flash driver binary in flash memory (at adress C12E) in
.rodata section.
FLASH_DRIVER_INTERFACE and FLASH_DRIVER_MCUTYPE are working but when I
execute FLASH_DRIVER_INIT function, the program crashes.

Do you know where is the problem ???

Must I execute flash driver in RAM memory ???
Must I copy flash driver binary in RAM memory at startup ???

Many thanks in advance for your help .


Hi,

I've tried to put Flash Driver binary at address 0x3000 like demo but
the program crashes also.
Could you help me please.
Thanks in advance.
--- In 68HC12@68HC..., "montserret_maxime"
<montserret_maxime@y...> wrote:
>
> Hi everybody,
>
> I'm trying to use HIS Flash Driver for HCS12 developed by Motorola.
> I'm using example with codewarrior compiler and MC9S12DG256BCPV
> microcontroler
> I put the flash driver binary in flash memory (at adress C12E) in
> .rodata section.
> FLASH_DRIVER_INTERFACE and FLASH_DRIVER_MCUTYPE are working but when I
> execute FLASH_DRIVER_INIT function, the program crashes.
>
> Do you know where is the problem ???
>
> Must I execute flash driver in RAM memory ???
> Must I copy flash driver binary in RAM memory at startup ???
>
> Many thanks in advance for your help .
>