Re: [Sdcc-user] Constant with SDCC 2.7.0 on PIC16F877

2007-10-25 Thread Raphael Neider
> #define __16f877 > #include > #include "../lib/projet877.h" > > const char *essai; /* Work around initializer bugs. */ void init_stuff(void) { essai = "bonjour"; } > void main(void) > { init_stuff(); /* initialize string arrays */ > init_serie(); > print (essai); > } >

[Sdcc-user] Constant with SDCC 2.7.0 on PIC16F877

2007-10-25 Thread plaunay1
I was working with sdcc 2.6.0 and i try to work with sdcc 2.7.0 The same program #define __16f877 #include #include "../lib/projet877.h" const char essai[8] = "bonjour" ; void main(void) { init_serie(); print (essai); } it work with sdcc 2.6.0 on usr/bin/ with Debian Etch SDCC : mcs51/

Re: [Sdcc-user] PIC not executing using any power supply other than the computer USB port

2007-10-25 Thread sdcc
Stanley Lee schrieb: > Configuration data: 0xc900 0x1e18 0x0700 0x0081 0xc00f 0xe00f 0x400f This config looks good to me: - XINST disabled - DEBUG = disabled - Fosc is 1001 (internal osc with clock out on ra6) One advise: Dont use FOSC=0x34 but use FOSCbits.IRCF0 etc. this makes your code more r