Hy, i am beginner and i make simple program for blink LED. I use linux, ubuntu, piklab, sdcc 2.5, gputil 3.17 and pic 18f2550. Compiler do the job until end, but link send error code 256. Problem with delay10tcy().
Please help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Command line option --use-non-free not present.
4:
pic18f2550.h:1: warning 190: ISO C forbids an empty source file
pic18f2550.h:5: 24: fatal error: pic18f2455.h: No such file or directory
compilation terminated.
When compiling for PIC14/PIC16, please provide --use-non-free
to get access to device headers and libraries.
If you do not use these, you may provide --no-warn-non-free
to suppress this warning (not recommended).
Exited with status: 1
/ Template source file ge
nerated by piklab /
include <pic18f2550.h>
/ ----------------------------------------------------------------------- /
/ Configuration bits: adapt to your setup and needs /
code char at CONFIG1L CONFIG1L = _PLLDIV_NO_DIVIDE4MHZ_INPUT1L & _CPUDIVOSC1_OSC2_SRC1__96MHZ_PLL_SRC21L & _USBPLL_CLOCK_SRC_FROM_OSC1_OSC2_1L;
code char at CONFIG1H CONFIG1H = _OSC_INTOSCINTOSC_RA6USB_EC_1H & _FCMEN_OFF_1H & _IESO_OFF_1H;
code char at CONFIG2L CONFIG2L = _PUT_OFF_2L & _BODEN_ON_2L & _BODENV_2_0V_2L & _VREGEN_OFF_2L;
code char at CONFIG2H CONFIG2H = _WDT_ON_2H & _WDTPS_1_32768_2H;
code char at CONFIG3H CONFIG3H = _CCP2MUX_RC1_3H & _PBADEN_PORTB_4_0CONFIGURED_AS_DIGITAL_I_O_ON_RESET_3H & _LPT1OSC_OFF_3H & _MCLRE_MCLR_OFF_RE3_ON_3H;
code char at CONFIG4L CONFIG4L = _STVR_ON_4L & _LVP_ON_4L & _ENHCPU_OFF_4L & _BACKBUG_OFF_4L;
code char at CONFIG5L CONFIG5L = _CP_0_OFF_5L & _CP_1_OFF_5L & _CP_2_OFF_5L & _CP_3_OFF_5L;
code char at CONFIG5H CONFIG5H = _CPB_OFF_5H;
code char at CONFIG6L CONFIG6L = _WRT_0_OFF_6L & _WRT_1_OFF_6L & _WRT_2_OFF_6L & _WRT_3_OFF_6L;
code char at CONFIG6H CONFIG6H = _WRTC_OFF_6H & _WRTB_OFF_6H;
code char at CONFIG7L CONFIG7L = _EBTR_0_OFF_7L & _EBTR_1_OFF_7L & _EBTR_2_OFF_7L & _EBTR_3_OFF_7L;
code char at __CONFIG7H CONFIG7H = _EBTRB_OFF_7H;
void main() {
TRISA=0X00;
PORTAbits.RA1=0;
while(1){
PORTAbits.RA1=0;
}
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Command line option --use-non-free not present.
4:
pic18f2550.h:1: warning 190: ISO C forbids an empty source file
pic18f2550.h:5: 24: fatal error: pic18f2455.h: No such file or directory
compilation terminated.
When compiling for PIC14/PIC16, please provide --use-non-free
to get access to device headers and libraries.
If you do not use these, you may provide --no-warn-non-free
to suppress this warning (not recommended).
Exited with status: 1 *
/ Template source file ge nerated by piklab /
include <pic18f2550.h>
Hy, i am beginner and i make simple program for blink LED. I use linux, ubuntu, piklab, sdcc 2.5, gputil 3.17 and pic 18f2550. Compiler do the job until end, but link send error code 256. Problem with delay10tcy().
Please help.
Attach your code if you want help.
Anyway, SDCC 2.5 is extremely old. Please try with SDCC 3.4. About gputils, don't know which version 3.17 is but try to use 1.4.0.
There are some tutorials about using SDCC with PICs, including blink LED examples, here:
http://sdcc.sourceforge.net/mediawiki/index.php/SDCC_tutorial
Diego
tnx, but now i have more big problem.
Command line option --use-non-free not present.
4:
pic18f2550.h:1: warning 190: ISO C forbids an empty source file
pic18f2550.h:5: 24: fatal error: pic18f2455.h: No such file or directory
compilation terminated.
When compiling for PIC14/PIC16, please provide --use-non-free
to get access to device headers and libraries.
If you do not use these, you may provide --no-warn-non-free
to suppress this warning (not recommended).
Exited with status: 1
/ Template source file ge
nerated by piklab /
include <pic18f2550.h>
/ ----------------------------------------------------------------------- /
/ Configuration bits: adapt to your setup and needs /
code char at CONFIG1L CONFIG1L = _PLLDIV_NO_DIVIDE4MHZ_INPUT1L & _CPUDIVOSC1_OSC2_SRC1__96MHZ_PLL_SRC21L & _USBPLL_CLOCK_SRC_FROM_OSC1_OSC2_1L;
code char at CONFIG1H CONFIG1H = _OSC_INTOSCINTOSC_RA6USB_EC_1H & _FCMEN_OFF_1H & _IESO_OFF_1H;
code char at CONFIG2L CONFIG2L = _PUT_OFF_2L & _BODEN_ON_2L & _BODENV_2_0V_2L & _VREGEN_OFF_2L;
code char at CONFIG2H CONFIG2H = _WDT_ON_2H & _WDTPS_1_32768_2H;
code char at CONFIG3H CONFIG3H = _CCP2MUX_RC1_3H & _PBADEN_PORTB_4_0CONFIGURED_AS_DIGITAL_I_O_ON_RESET_3H & _LPT1OSC_OFF_3H & _MCLRE_MCLR_OFF_RE3_ON_3H;
code char at CONFIG4L CONFIG4L = _STVR_ON_4L & _LVP_ON_4L & _ENHCPU_OFF_4L & _BACKBUG_OFF_4L;
code char at CONFIG5L CONFIG5L = _CP_0_OFF_5L & _CP_1_OFF_5L & _CP_2_OFF_5L & _CP_3_OFF_5L;
code char at CONFIG5H CONFIG5H = _CPB_OFF_5H;
code char at CONFIG6L CONFIG6L = _WRT_0_OFF_6L & _WRT_1_OFF_6L & _WRT_2_OFF_6L & _WRT_3_OFF_6L;
code char at CONFIG6H CONFIG6H = _WRTC_OFF_6H & _WRTB_OFF_6H;
code char at CONFIG7L CONFIG7L = _EBTR_0_OFF_7L & _EBTR_1_OFF_7L & _EBTR_2_OFF_7L & _EBTR_3_OFF_7L;
code char at __CONFIG7H CONFIG7H = _EBTRB_OFF_7H;
void main() {
TRISA=0X00;
PORTAbits.RA1=0;
}
For PICs you need "--use-non-free" option. It seems that it was added to
piklab on revision 2856
http://sourceforge.net/p/piklab/code/2856/tree//trunk/piklab_kde4/Changelog
(March 2012). If you're using an older version, again, try to use the
latest stable one.
By the way, I guess you're missing something on the while loop if you want
a blinking LED.
Regards,
Diego
On Wed, Nov 5, 2014 at 7:42 PM, matko2000 matko2000@users.sf.net wrote: