If you create your project with the wizard, it shall create a
'burner.bbl'
file in your project.
This one will launch the burner utility at the end of the link process which
will create the S19 file for you.
The *.bbl file is a text file, and the syntax of the commands are described
in the burner manual/PDF.
If you want to control what happens once you press the debug button/F5, then
see the project preferences, Tab Target > Build Extras, where is a check
box
'use external debugger' with the called application/launch setup.
%targetFilePath specifies here the linker output (which is normally the
ELF/.abs file: you can change this to another file name (or to your S19
file).
Erich
> -----Original Message-----
> From: 68HC12@68HC... [mailto:68HC12@68HC...]
> On Behalf Of mortisgr
> Sent: Sonntag, 11. Dezember 2005 22:12
> To: 68HC12@68HC...
> Subject: [68HC12] Programming 68hc12 in c Codewarrior IDE
> Hello everybody and thanks in advance for the help,
>
> I am now walking the C paths on 68hc12, i use Codewarrior version
> 4.2.5.766 in windows XP pro. I try to compile a simple program and
> produce a .s19 file out of it(I am giving the code at the end) but...
>
> I do, new project->HC12 stationery->(target) simulation c generic.
I
> load my code press make and voila ...
>
> "Error:B1000: could not open 'input file' file
'C:\Documents and
> Settings' "
>
> No problem when i try to make the same with D-Bug12 B32 be the project
> target, but then the IDE tries to connect to the board(naturally).
>
> All I want is to create an .s19( and .asm of course) file and load it
> myself.
>
> From the above i think you already understood that i have a problem
> with the whole philosophy of writing C for a microcontroller. So any
> links concerning this topic(with lots of examples) would help.
>
> Thanks again and I hope this mail makes some sense :)
>
> P.S. the code:
>
> extern volatile char ports[];
> #define COPCTL 0x16
>
> #define IO_BASE 0
> #define PORTA *(volatile unsigned char *)(IO_BASE + 0x00)
> #define PORTB *(volatile unsigned char *)(IO_BASE + 0x01)
> #define DDRA *(volatile unsigned char *)(IO_BASE + 0x02)
> #define DDRB *(volatile unsigned char *)(IO_BASE + 0x03)
>
> #define OUT 0x55
> void main(void) {
>
> COPCTL=0x00;
> unsigned long int x;
> DDRA=OUT;
> PORTA=OUT;
> while (1)
> {
> x=0xFFFFF;
> while (x--)
> PORTA=0;
> x=0x8FFF;
> while (x--)
> PORTA=OUT;
> }
> }
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Fair play? Video games influencing politics. Click and talk back!
> http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/dN_tlB/TM
> --------------------------
> ------~-
> Yahoo! Groups Links
>
>