Hi. People again, first of all thanks for the answers.

I have tried an other ways with your suggestions  on compiling with SDCC(last version),

on Windows2000 for the MC68HC908GP32 uC but SDCC

still generating erroneous code in the *.S19 file output. And I don t know whats going on.

 

 

1-

 

I wrote the *.bat file with:

 

sdcc -mhc08 --model-small --code-loc 0x8000 --data-loc 0x0040 --stack-loc 0x023F \

--out-fmt-s19 -I C:\SDCC\include\hc08 blink.c

 

(all in one line, and the loc s are ok)

 

and a simple program like :

 

#include "mc68hc908gp32.h"

 

void main()

{

            int i  =  0;

 

            DDRD  =  0xFF;            // all ports outputs

            PTD  =  0x00;

 

 while (1)

 {

            PTD  =  0x01;

             for(i  =  0;  i  <= 5000;  i++)

            {

                        PTD  =  0x00;

            }

 

            PTD  =  0x02;

            for(i  =  0;  i  <= 5000;  i++)

            {

                        PTD  =  0x00;

             }

             PTD  =  0x03;

             for(i  =  0;  i  <= 5000;  i++)

            {

                         PTD  =  0x00;

             }

 

  }

}

The SDCC yields the *.s19, I loaded it on the uC, all ok, but the uC does nothing.

2-

So I decided to compare two *.S19 files yielded from different compilers, SDCC and

ImageCraft-ICC08 demo with simpler code than the first.

Both program the same:

 

void main(void)

{

 

}

and nothing more, no header, no nothing more than the main.

The SDCC and ImageCraft yields ))) different ((( *.S19 files.

Is that correct?, I suppose that both *.S19 files to be loaded on the uC should be the same.
(On this case the *.bat file has:

sdcc -mhc08 --model-small --code-loc 0x8000 --data-loc 0x0040 --stack-loc 0x023F \

--out-fmt-s19 blink.c)

Can someone help me.

Thaks all, and regards.

 

Casiano Charles Budden