Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 3rd April 2009, 05:58 PM   #1
Smile pic18f4550

hello , I work with mplab c 18
can 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;
oussamasgh is offline  
Old 3rd April 2009, 06:05 PM   #2
Default

Looks like you are missing an #include someplace. You need to include the header file that defines T0CON.
smanches is offline  
Old 3rd April 2009, 06:10 PM   #3
Default

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
oussamasgh is offline  
Old 3rd April 2009, 06:15 PM   #4
Default

Actually, try replacing T0CON with T0CONbits.

I dont' have time at the moment to look up the headers.
smanches is offline  
Old 3rd April 2009, 06:35 PM   #5
Smile

hier is my hole project plz when you have time take alook
thx
Attached Files
File Type: zip Nouveau WinRAR ZIP archive.zip (17.0 KB, 16 views)
oussamasgh is offline  
Old 4th April 2009, 07:23 AM   #6
Default

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.
__________________
/felis

http://www.circuitsathome.com
felis is offline  
Old 4th April 2009, 01:53 PM   #7
Smile :)

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 ???
oussamasgh is offline  
Old 4th April 2009, 04:26 PM   #8
Exclamation

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
oussamasgh is offline  
Old 4th April 2009, 04:36 PM   #9
Default

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.
Is telling you that you have it included twice.

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)
3v0 is online now  
Old 4th April 2009, 05:02 PM   #10
Default

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)
3v0 is online now  
Old 4th April 2009, 05:53 PM   #11
Thumbs up

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?
oussamasgh is offline  
Reply

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



All times are GMT. The time now is 04:30 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker