![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
hello , I work with mplab c 18can u plz help me with those error C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:86:Warni ng [2066] type qualifier mismatch in assignment C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:114:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:115:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:116:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:117:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:118:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:119:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:120:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:121:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:122:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:129:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:132:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:133:Erro r [1151] struct or union object designator expected C:\Documents and Settings\oussama\Bureau\projet3\projet3.c:141:Erro r [1105] symbol 'ADIF' has not been defined Halting build on first failure as requested. BUILD FAILED: Fri Apr 03 18:47:45 2009 it is about th convert A/N void init_timer0(void) { T0CON.TMR0ON=1; T0CON.PSA =0; T0CON.T0CS= 0; T0CON.PS2 = 1; T0CON.PS1 = 1; T0CON.PS0= 1; T0CON.RP0 = 0 ; T0CON.T0IE = 1; T0CON.GIE = 1; | |
| |
| | #2 |
|
Looks like you are missing an #include someplace. You need to include the header file that defines T0CON.
| |
| |
| | #3 |
|
thx for th reply hier are my include #include <p18f4550.h> #include "typedefs.h" #include "usb.h" #include "io_cfg.h" #include "usbdrv.h" but it still the same problems | |
| |
| | #4 |
|
Actually, try replacing T0CON with T0CONbits. I dont' have time at the moment to look up the headers. | |
| |
| | #5 |
|
hier is my hole project plz when you have time take alook thx | |
| |
| | #6 |
|
You need to use T0CONbits.xxx with bit names. In addition, some of the bits are not from T0CON, specifically GIE and some others. Just count them - it is impossible to have more than 8.
| |
| |
| | #7 |
|
thx for the help ![]() I have no more error in my source file but now a new one MPLINK 4.01, Linker Copyright (c) 2005 Microchip Technology Inc. Error - could not find definition of symbol 'ep1Bi' in file 'C:\Documents and Settings\oussama\Bureau\projet3\projet3.o'. Errors : 1 what dos it mean ??? | |
| |
| | #8 |
|
well if I add c018i.o the error become MPLINK 4.01, Linker Copyright (c) 2005 Microchip Technology Inc. Error - section '_entry_scn' type is non-overlay and absolute but occurs in more than one input file. Errors : 1 | |
| |
| | #9 |
|
You are hiding the first error by adding the c018i.o. That file is already included and now you have it twice. the error Code: Error - section '_entry_scn' type is non-overlay and absolute but occurs in more than one input file. You need to find what what ep1Bi. Search for that symbol in your project. From what I can tell it is part of the USB code. I am guessing that you need to add a USB related .o file to your project.
__________________ Please post questions to the forums. PM's are for personal communication. BCHS/3v0's Tutorials Junebug USB PIC programmer kit., USB Bit Whacker, The 15 Minute Printed Circuit Board! (+drill time) | |
| |
| | #10 |
|
It looks like it is in usbmmap.c from usbdrv.h Code: * Input: byte buffer_dsc: Root name of the buffer descriptor group. * i.e. ep0Bo, ep1Bi, ... Declared in usbmmap.c * Names can be remapped for readability, see examples in * usbcfg.h (#define HID_BD_OUT ep1Bo) *
__________________ Please post questions to the forums. PM's are for personal communication. BCHS/3v0's Tutorials Junebug USB PIC programmer kit., USB Bit Whacker, The 15 Minute Printed Circuit Board! (+drill time) | |
| |
| | #11 |
|
yes in usbcfg.h I have this #define HID_INTF_ID 0x00 #define HID_UEP UEP1 #define HID_BD_OUT ep1Bo #define HID_INT_OUT_EP_SIZE 64 #define HID_BD_IN ep1Bi #define HID_INT_IN_EP_SIZE 64 #define HID_NUM_OF_DSC 1 #define HID_RPT01_SIZE 4 what can I do? | |
| |
|
| Tags |
| pic |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| pic18f4550 and lcd | neelam29 | Micro Controllers | 16 | 1st March 2009 11:23 AM |
| about PIC18f4550 microcontroller | control ENG. | Micro Controllers | 0 | 5th December 2008 08:30 AM |
| Pic18f4550!! | watzmann | Micro Controllers | 1 | 20th March 2008 11:59 AM |
| PIC18F4550 and USB | max2005 | Micro Controllers | 3 | 5th July 2005 06:39 PM |
| PIC18F4550 and USB connection | Hopperito | Micro Controllers | 5 | 12th February 2005 09:08 PM |