gnupic: Re: [gnupic] sdcc/PIC howto, first draft is up


Previous by date: 18 Jul 2005 19:56:01 +0100 Re: [gnupic] KTechlab, Wayne Topa
Next by date: 18 Jul 2005 19:56:01 +0100 Microchip COFF file format changes for 8-bit tools, James Grosbach
Previous in thread: 18 Jul 2005 19:56:01 +0100 Re: [gnupic] sdcc/PIC howto, first draft is up, Peter Onion
Next in thread: 18 Jul 2005 19:56:01 +0100 Re: [gnupic] sdcc/PIC howto, first draft is up, David McNab

Subject: Re: [gnupic] sdcc/PIC howto, first draft is up
From: Peter Onion ####@####.####
Date: 18 Jul 2005 19:56:01 +0100
Message-Id: <1121712931.5736.49.camel@HP.RoomLan>

On Mon, 2005-07-18 at 16:48 +0100, Peter Onion wrote:

> I think that having section 4.3 "I had to do it my way" section is not a
> good idea.  The instructions should be generic with any variations given
> later.    I don't need the modified crt0 and as a consequence your
> istructions have left me high-and-dry.

Right I've been working on this and here's what I've found....

With one simple modification your "helloled.c" code can be compiled and
linked without the need for a custom makefile or modified crt0 or linker
script.

The addition is "#pragma stack 0x200,64"

With that added "sdcc -V -mpic16 -p18f452 helloled.c" is all that is
needed to produce a helloled.hex.  I havn't got my programmer working
with 18F devices yet, but the compiled code "does the right thing" when
run with gpsim.

I think it is better to document the simplest case first and include any
variations in the following sections of the document. 

Peter 



Previous by date: 18 Jul 2005 19:56:01 +0100 Re: [gnupic] KTechlab, Wayne Topa
Next by date: 18 Jul 2005 19:56:01 +0100 Microchip COFF file format changes for 8-bit tools, James Grosbach
Previous in thread: 18 Jul 2005 19:56:01 +0100 Re: [gnupic] sdcc/PIC howto, first draft is up, Peter Onion
Next in thread: 18 Jul 2005 19:56:01 +0100 Re: [gnupic] sdcc/PIC howto, first draft is up, David McNab


Powered by ezmlm-browse 0.20.