Hi all,
I'm the main developer for ColorHug, an open source colorimeter
device. I'm looking to port away from the Microchip tools, and compile
natively using Linux.
I'm using a PIC18F46J50 in the hardware, and need to set certain
config fuses to do things like turning on the watch dog timer and
s
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
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
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
>
>
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