Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-29 Thread Diego Herranz
Tested. It seems to work like a charm. Thanks again! On Mon, May 28, 2012 at 11:03 AM, Diego Herranz < diegoherr...@diegoherranz.com> wrote: > Great. > > I'll test it as soon as the snapshot is built. > > Thank you very much! > > On Mon, May 28, 2012 at 9:24 AM, Borut Ražem wrote: > >> #pragma c

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-28 Thread Diego Herranz
Great. I'll test it as soon as the snapshot is built. Thank you very much! On Mon, May 28, 2012 at 9:24 AM, Borut Ražem wrote: > #pragma config accepts underscore characters in svn revision #7797. > > Borut > > > > On Sun, May 27, 2012 at 11:51 PM, Diego Herranz < > diegoherr...@diegoherranz.c

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-28 Thread Borut Ražem
#pragma config accepts underscore characters in svn revision #7797. Borut On Sun, May 27, 2012 at 11:51 PM, Diego Herranz < diegoherr...@diegoherranz.com> wrote: > Great! Thank you. > > On Sun, May 27, 2012 at 10:47 PM, Borut Ražem wrote: > >> Yes, the problem are underscores :-(. I'll fix it A

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-27 Thread Diego Herranz
Great! Thank you. On Sun, May 27, 2012 at 10:47 PM, Borut Ražem wrote: > Yes, the problem are underscores :-(. I'll fix it ASAP. > > Borur > > > On Sun, May 27, 2012 at 1:49 PM, Diego Herranz < > diegoherr...@diegoherranz.com> wrote: > >> Sorry, line 31 was: >> >> 31 #pragma config FOSC = HSPLL_

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-27 Thread Borut Ražem
Yes, the problem are underscores :-(. I'll fix it ASAP. Borur On Sun, May 27, 2012 at 1:49 PM, Diego Herranz < diegoherr...@diegoherranz.com> wrote: > Sorry, line 31 was: > > 31 #pragma config FOSC = HSPLL_HS > > > On Sun, May 27, 2012 at 1:43 PM, Diego Herranz < > diegoherr...@diegoherranz.com>

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-27 Thread Diego Herranz
Sorry, line 31 was: 31 #pragma config FOSC = HSPLL_HS On Sun, May 27, 2012 at 1:43 PM, Diego Herranz < diegoherr...@diegoherranz.com> wrote: > With 18f4550 and sdcc #7792: > > [...] > 26 #pragma config PLLDIV = 1 > 27 #pragma config CPUDIV = OSC1_PLL2 > 28 #pragma config USBDIV = 2 > 29 > 30 > 3

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-27 Thread Diego Herranz
With 18f4550 and sdcc #7792: [...] 26 #pragma config PLLDIV = 1 27 #pragma config CPUDIV = OSC1_PLL2 28 #pragma config USBDIV = 2 29 30 31 #pragma config FOSC USBDIV = HSPLL_HS [...] Warnings: MIDI_PEDAL_fuses.h:27: warning 191: #pragma config: bad argument(s); pragma ignored MIDI_PEDAL_fuses.h:3

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-27 Thread Richard Hughes
On 26 May 2012 19:17, Borut Ražem wrote: > "allow space characters in #pragma config" problem fixed in svn revision > #7792. Great, thanks dude. Richard. -- Live Security Virtual Conference Exclusive live event will cov

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-26 Thread Borut Ražem
"allow space characters in #pragma config" problem fixed in svn revision #7792. Borut On 26. 05. 2012 10:58, Diego Herranz wrote: Thanks! On Sat, May 26, 2012 at 10:37 AM, Borut Ražem > wrote: #pragma config is correct. #pragma configure was a mistake in

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-26 Thread Diego Herranz
Thanks! On Sat, May 26, 2012 at 10:37 AM, Borut Ražem wrote: > #pragma config is correct. #pragma configure was a mistake in sdccman. I > alredy corrected it. > > Borut > > > On Sat, May 26, 2012 at 3:26 AM, Diego Herranz < > diegoherr...@diegoherranz.com> wrote: > >> sdccman says: >> >> #pragma

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-26 Thread Borut Ražem
#pragma config is correct. #pragma configure was a mistake in sdccman. I alredy corrected it. Borut On Sat, May 26, 2012 at 3:26 AM, Diego Herranz < diegoherr...@diegoherranz.com> wrote: > sdccman says: > > #pragma config setting=value [, setting=value] > > but just after: > > #pragma configure

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-25 Thread Diego Herranz
sdccman says: #pragma config setting=value [, setting=value] but just after: #pragma configure CP0=OFF,OSCS=ON The former is the correct one, isn't it? Thanks On Fri, May 25, 2012 at 9:27 PM, Borut Ražem wrote: > On 25. 05. 2012 18:43, Richard Hughes wrote: > > I've built master, and tried

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-25 Thread Borut Ražem
On 25. 05. 2012 18:43, Richard Hughes wrote: > I've built master, and tried that. On initial try it worked fine, but > trying to build my firmware image I'm getting: > > test.c:7: warning 191: #pragma config: bad argument(s); pragma ignored > > It seems sdcc expects: > > #pragma config WDTEN=ON > >

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-25 Thread Richard Hughes
On 25 May 2012 16:34, Borut Ražem wrote: > This is why there are no __config definitions in the gputils *.inc and > consequently in sdcc pic16 device *.h files. Ahh, right. > Have you tried to use #pragma config as described in sdccman? Be > careful: #pragma config was introduced 2012-03-16, whi

Re: [Sdcc-user] Fuse definitions for pic18f46j50.h

2012-05-25 Thread Borut Ražem
In p18f45j50.inc from gputils and from mpasm is written: ; IMPORTANT: For the PIC18 devices, the __CONFIG directive has been ; superseded by the CONFIG directive. The following settings ; are available for this device. This is why there are no __config definitions in