Re: [Sdcc-user] PIC18F97J60 configuration bits...

2011-04-18 Thread lementec fabien
Hi, Here is how I do the job for a pic18f4550 using the device specs to know the hex values of the config bits: #ifndef CONFIG_H_INCLUDED # define CONFIG_H_INCLUDED # define CONFIG(k, n) code static char at __ ## k _ ## k = n /* bits value meaning 5 0 clock comes from the primary osc block, no

Re: [Sdcc-user] PIC18F97J60 configuration bits...

2011-04-17 Thread lementec fabien
Hi, Here is how I do the job for a pic18f4550 using the device specs to know the hex values of the config bits: #ifndef CONFIG_H_INCLUDED # define CONFIG_H_INCLUDED # define CONFIG(k, n) code static char at __ ## k _ ## k = n /* bits value meaning 5 0 clock comes from the primary osc block, no

Re: [Sdcc-user] Example or tutorial for I2C usage with PIC

2010-07-08 Thread lementec fabien
hope it helps: http://github.com/texane/pic18f_i2c 2010/7/7 Sébastien Lorquet : > Hi, > > Your message made it to the list :) > > I'm searching the same information for PIC18. > > Sebastien > > On Wed, Jul 7, 2010 at 3:30 PM, Laurent FAILLIE wrote: >> >> Hello, >> >> I googled but w/o success ...

Re: [Sdcc-user] Example or tutorial for I2C usage with PIC

2010-07-07 Thread lementec fabien
hope it helps: http://github.com/texane/pic18f_i2c On Wed, Jul 7, 2010 at 4:07 PM, Sébastien Lorquet wrote: > Hi, > > Your message made it to the list :) > > I'm searching the same information for PIC18. > > Sebastien > > On Wed, Jul 7, 2010 at 3:30 PM, Laurent FAILLIE wrote: >> >> Hello, >> >>

Re: [Sdcc-user] Hello - Any PIC users out there?

2009-10-28 Thread lementec fabien
hi, depending on the project size... I have never use another compiler to program pic, but my projects are somewhat small, say ~= 1000 lines. I ported freertos and it worked. On Wed, Oct 28, 2009 at 7:55 PM, Gordon Henderson wrote: > > About to embark on a largish project on a PIC 18F system - n

Re: [Sdcc-user] Need help with Makefile

2009-10-03 Thread lementec fabien
Hi, I dont know about your linker options, but -i seems weird to specify the output file. Any try with -o? On Sun, Oct 4, 2009 at 1:42 AM, Richard Gray wrote: > While I don't entirely understand your Makefile (just my ignorance, nothing > else!), but the likely problem is that SDCC can only cop

Re: [Sdcc-user] [ freertos sdcc pic18f ]

2009-09-24 Thread lementec fabien
, 2009 at 7:20 PM, Gaye Abdoulaye Walsimou wrote: > lementec fabien wrote: >> >> I would have some questions if you dont mind: >> >> 0. Why dont you use --stack-auto at compile time? >> is it implied by another param? If this is not the case, >> isnt there r

Re: [Sdcc-user] [ freertos sdcc pic18f ]

2009-09-24 Thread lementec fabien
ere > http://www.freertos.org/index.html?http://www.freertos.org/a00017.html that > they already have a PIC18 port. > All you have to do is convince them to add a SECOND port using sdcc instead > of mplab :) > > Sebastien > > On Thu, Sep 24, 2009 at 5:56 PM, lementec fabie

Re: [Sdcc-user] [ freertos sdcc pic18f ]

2009-09-24 Thread lementec fabien
for others to know about it, and having a more exposed git repo? Thanks very much for helping, Fabien. On Thu, Sep 24, 2009 at 11:27 AM, lementec fabien wrote: > Thanks very much for repo link, I will > have a look during the day and see > what differs with the port I made. > > Rega

Re: [Sdcc-user] [ freertos sdcc pic18f ]

2009-09-24 Thread lementec fabien
Thanks very much for repo link, I will have a look during the day and see what differs with the port I made. Regards, Fabien. On Thu, Sep 24, 2009 at 8:11 AM, abdoulaye Walsimou Gaye wrote: > lementec fabien a écrit : >> >> Hi, >> >> Fine. In this case, could you gi

Re: [Sdcc-user] [ freertos sdcc pic18f ]

2009-09-23 Thread lementec fabien
Hi, Fine. In this case, could you give me the source code so that I can compare with mine? I have some bugs yet, and would be really useful for me. Regards, t. On Thu, Sep 24, 2009 at 5:57 AM, Gaye Abdoulaye Walsimou wrote: > lementec fabien wrote: >> Hi, >> >> Just to

[Sdcc-user] [ freertos sdcc pic18f ]

2009-09-23 Thread lementec fabien
Hi, Just to inform you that I am making freertos compile with sdcc for the pic18f architecture. There are some bugs I havenot yet solved, so if anyone wants to have the code, I can create a github for this project. Cheers, t. -

Re: [Sdcc-user] Linker Problem

2009-05-31 Thread lementec fabien
did you try to specify the full path? and with the -I option? it works fine for me, but I am on linux. 2009/5/31 Marcelo Rodrigues : > Hi Raphael, thanks for the answer. > > However the linker still can`t find the script. I have also tried to call > gplink alone with the -s argument and it doens`t

Re: [Sdcc-user] Slightly OT - PIC18 PORTD bit 2 not working for me

2009-01-11 Thread lementec fabien
Hi, I just tested the port D second bit and it works just well with the following right after the main: #include "config.h" static void led_on(void) { TRISDbits.TRISD2 = 0; LATDbits.LATD2 = 0; } ... int main(void) { led_on(); while (1) ; return 0; } here is the content of my config.h: /* *

Re: [Sdcc-user] [ pic18f, simple program, no crt ]

2008-11-26 Thread lementec fabien
Hi, Thank you for your answer, seems there was a little race condition while mailing :) Btw you were right regarding the configuration bits. The code I posted did not intend to make the led blink, just switch one on, for the sake of shortness. I use a very daily snap of sdcc, and the latest vers

Re: [Sdcc-user] [ pic18f, simple program, no crt ]

2008-11-26 Thread lementec fabien
/26 lementec fabien <[EMAIL PROTECTED]> > sorry, I didnot paste the right hex file. > here is the one: > > :0204FA > :040015EF00F008 > :06002A00F86AA68EA69CF8 > :10003F0EC16E070EB46E926A8980899200011C > :10004000626B0001636B23EF00F001005800B9 >

Re: [Sdcc-user] [ pic18f, simple program, no crt ]

2008-11-26 Thread lementec fabien
bsf 0xa6, 7, 0 bcf 0xa6, 6, 0 __endasm; ADCON1 = 0x0f; CMCON = 7; TRISA = 0; LATAbits.LATA0 = 1; LATAbits.LATA1 = 0; j = 0; for (; ; ) ; } Do you see anything else I could look at? 2008/11/26 lementec fabien <[EMAIL PROTECTED]> > Thank you very

Re: [Sdcc-user] [ pic18f, simple program, no crt ]

2008-11-26 Thread lementec fabien
tage 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 > > ---

Re: [Sdcc-user] [ pic18f, simple program, no crt ]

2008-11-25 Thread lementec fabien
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: > >

[Sdcc-user] [ pic18f, simple program, no crt ]

2008-11-24 Thread lementec fabien
Hi, 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