If it did not help, you have problem somewhere else. Check following:
- correct voltage on PIC
- if LED is correctly polarized
- do you use blocking capacitor on PIC's power pins ?
- do you have oscilaltor correctly set (try internal OSC)

About month ago I had problem with unstable UART. It was because I used too low 
voltage and highest speed. PIC did not supported it.

V.

> ------------ Původní zpráva ------------
> Od: lementec fabien <[EMAIL PROTECTED]>
> Předmět: Re: [Sdcc-user] [ pic18f, simple program, no crt ]
> Datum: 25.11.2008 20:24:16
> ----------------------------------------
> Hi,
> 
> Thanks foro you help but it didnot make the program
> work. I use the following to compile the single file program:
> 
> sdcc -mpic16 -p18f4550 -D_SDCC -Dpic18f4550 --no-crt main.c
> 
> Any suggestion?
> 
> Thanks for helping,
> 
> On Mon, Nov 24, 2008 at 6:25 PM, Raphael Neider <[EMAIL PROTECTED]> wrote:
> 
> > > I am trying to make the following code
> > > work when compiled by sdcc for pic18f4550
> > > with --no-crt.
> > >
> > > I take care not using stack, but I guess thi is
> > > not  a problem given the way sdcc works.
> > >
> > > It compiles, but at run time my led is not switched
> > > on (the led works well)
> > >
> > > Could you tell me if there is something wrong with
> > > the code?
> >
> > You need to add
> >
> > #include <pic18fregs.h>
> > __code char __at(__CONFIG4L) __conf4l = _ENHCPU_OFF_4L;
> >
> > at the top of your code to disable the extended instruction set.
> >
> > Hope that helps,
> > Raphael
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Sdcc-user mailing list
> > Sdcc-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sdcc-user
> >
> 
> 
> 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to