Hot!USB file error in pic24fj256da210

Page: 1234 > Showing page 1 of 4
Author
KMDN
Super Member
  • Total Posts : 184
  • Reward points : 0
  • Joined: 2014/03/08 03:40:44
  • Location: 0
  • Status: offline
2017/06/23 09:23:00 (permalink)
0

USB file error in pic24fj256da210

I am getting USB file error, I have added all the file which is required. 
 
 
USB Stack/USB.h:111:29: error: Common/Compiler.h: No such file or directory
USB Stack/USB.h:113:74: error: usb_config.h: No such file or directory
USB Stack/USB.h:115:76: error: USB Stack/usb_common.h: No such file or directory
USB Stack/USB.h:116:78: error: USB Stack/usb_ch9.h: No such file or directory
USB Stack/USB.h:130:82: error: USB Stack/usb_hal.h: No such file or directory
main.c:32:29: error: HardwareProfile.h: No such file or directory
In file included from main.c:33:
MDD File System/SD-SPI.h:41:22: error: FSconfig.h: No such file or directory
MDD File System/SD-SPI.h:42:36: error: MDD File System/FSDefs.h: No such file or directory
In file included from main.c:33:
MDD File System/SD-SPI.h: At top level:
MDD File System/SD-SPI.h:465: error: syntax error before '*' token
MDD File System/SD-SPI.h:465: warning: type defaults to 'int' in declaration of 'MDD_SDSPI_MediaInitialize'
MDD File System/SD-SPI.h:465: warning: data definition has no type or storage class
In file included from main.c:34:
MDD File System/FSIO.h:236: error: syntax error before 'DISK'
MDD File System/FSIO.h:236: warning: no semicolon at end of struct or union
MDD File System/FSIO.h:242: error: 'size' redeclared as different kind of symbol
:0: error: previous declaration of 'size' was here
MDD File System/FSIO.h:252: error: syntax error before '}' token
MDD File System/FSIO.h:252: warning: type defaults to 'int' in declaration of 'FSFILE'
MDD File System/FSIO.h:252: warning: data definition has no type or storage class
MDD File System/FSIO.h:271: error: syntax error before 'DISK'
MDD File System/FSIO.h:271: warning: no semicolon at end of struct or union
MDD File System/FSIO.h:294: error: syntax error before '}' token
MDD File System/FSIO.h:294: warning: type defaults to 'int' in declaration of 'FS_DISK_PROPERTIES'
MDD File System/FSIO.h:294: warning: data definition has no type or storage class
MDD File System/FSIO.h:392: error: syntax error before '*' token
MDD File System/FSIO.h:392: warning: type defaults to 'int' in declaration of 'FSfopen'
MDD File System/FSIO.h:392: warning: data definition has no type or storage class
MDD File System/FSIO.h:613: error: syntax error before '*' token
MDD File System/FSIO.h:638: error: syntax error before '*' token
MDD File System/FSIO.h:671: error: syntax error before 'FSFILE'
MDD File System/FSIO.h:706: error: syntax error before '*' token
MDD File System/FSIO.h:730: error: syntax error before '*' token
MDD File System/FSIO.h:756: error: syntax error before '*' token
In file included from main.c:36:
./USB Stack/usb_function_msd.h:84:29: error: Common/Compiler.h: No such file or directory
./USB Stack/usb_function_msd.h:86:36: error: MDD File System/FSDefs.h: No such file or directory
In file included from main.c:36:
./USB Stack/usb_function_msd.h:467: error: syntax error before 'MEDIA_INFORMATION'
./USB Stack/usb_function_msd.h:467: warning: no semicolon at end of struct or union
./USB Stack/usb_function_msd.h:486: error: syntax error before '}' token
./USB Stack/usb_function_msd.h:486: warning: type defaults to 'int' in declaration of 'LUN_FUNCTIONS'
./USB Stack/usb_function_msd.h:486: warning: data definition has no type or storage class
./USB Stack/usb_function_msd.h:492: error: 'MAX_LUN' undeclared here (not in a function)
./USB Stack/usb_function_msd.h:493: error: syntax error before 'SetupPkt'
./USB Stack/usb_function_msd.h:493: warning: type defaults to 'int' in declaration of 'SetupPkt'
./USB Stack/usb_function_msd.h:493: warning: data definition has no type or storage class
./USB Stack/usb_function_msd.h:494: error: 'USB_EP0_BUFF_SIZE' undeclared here (not in a function)
main.c:52: error: conflicting types for 'sec'

 
 
#1

63 Replies Related Threads

    CinziaG
    rome burns :D
    • Total Posts : 3070
    • Reward points : 0
    • Joined: 2016/12/07 14:20:36
    • Location: Wien
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/23 10:49:24 (permalink)
    3 (1)
    "No such file or directory" means your compiler cant find those files or folder. Then they go the other errors Smile
    #2
    RISC
    Super Member
    • Total Posts : 4406
    • Reward points : 0
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/24 03:22:26 (permalink)
    3 (1)
    Hi,
    It seems you are using MLA libraries.
    Did you install them ?
    Regards
     
    #3
    maxruben
    Super Member
    • Total Posts : 3072
    • Reward points : 0
    • Joined: 2011/02/22 03:35:11
    • Location: Sweden
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/24 04:23:25 (permalink)
    3 (1)
    Have you added the paths to your project configuration?
     
    /Ruben
    #4
    KMDN
    Super Member
    • Total Posts : 184
    • Reward points : 0
    • Joined: 2014/03/08 03:40:44
    • Location: 0
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/24 22:52:00 (permalink)
    0
    No Idea, How to do that.
    #5
    KMDN
    Super Member
    • Total Posts : 184
    • Reward points : 0
    • Joined: 2014/03/08 03:40:44
    • Location: 0
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/24 22:53:17 (permalink)
    3 (1)
    RISC
    Hi,
    It seems you are using MLA libraries.
    Did you install them ?
    Regards
     




     
    I have install MLA libraries. 
    #6
    maxruben
    Super Member
    • Total Posts : 3072
    • Reward points : 0
    • Joined: 2011/02/22 03:35:11
    • Location: Sweden
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/25 01:39:23 (permalink)
    3 (1)
    Adding paths to your project:
     
    Right click your project in the project pane and select Properties.
    Select xc16-gcc in the Categories list to the left for your configuration.
    Select Preprocessing and messages for the Option categories drop down.
    Add the paths to the C include dirs text box.
     
    Look at a MLA example project to see which paths you need.
     
    /Ruben
    #7
    KMDN
    Super Member
    • Total Posts : 184
    • Reward points : 0
    • Joined: 2014/03/08 03:40:44
    • Location: 0
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/25 07:34:41 (permalink)
    0
    Sorry go't get it.
    #8
    qhb
    Superb Member
    • Total Posts : 5512
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/25 13:33:21 (permalink)
    3 (1)
    If you don't explain what step you don't understand, no-one can help you.
     
    #9
    KMDN
    Super Member
    • Total Posts : 184
    • Reward points : 0
    • Joined: 2014/03/08 03:40:44
    • Location: 0
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/25 21:44:21 (permalink)
    0
    Through out process I do't understand. 
    #10
    KMDN
    Super Member
    • Total Posts : 184
    • Reward points : 0
    • Joined: 2014/03/08 03:40:44
    • Location: 0
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/29 11:51:18 (permalink)
    0
    USB code not writing data in USB storing device 
    #11
    VkPanchal
    New Users
    • Total Posts : 56
    • Reward points : 0
    • Joined: 2016/05/10 03:58:19
    • Location: India
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/29 22:19:05 (permalink)
    0
    File > Project Properties > In Compiler Option Select "Complier-ld"  i.e pic30-ld.
    Option categories > Libraries.
    Library Directories > ... > Select the Directory
     
     
    #12
    KMDN
    Super Member
    • Total Posts : 184
    • Reward points : 0
    • Joined: 2014/03/08 03:40:44
    • Location: 0
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/29 22:43:56 (permalink)
    0
    vkpanchal13
    File > Project Properties > In Compiler Option Select "Complier-ld"  i.e pic30-ld.
    Option categories > Libraries.
    Library Directories > ... > Select the Directory
     



    do you mean?
     
    project > build option > project > Directories
     
    Do you have sample code which can I use to write text file in USB.
     
     
    post edited by KMDN - 2017/06/29 22:48:25
    #13
    jtemples
    Super Member
    • Total Posts : 10150
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/29 22:58:24 (permalink)
    3 (1)
    There hasn't been a "Compiler.h" in the MLA code for years.  Are you using an old version?  If so, why?
    #14
    VkPanchal
    New Users
    • Total Posts : 56
    • Reward points : 0
    • Joined: 2016/05/10 03:58:19
    • Location: India
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/29 23:18:59 (permalink)
    0
    for MPLAB IDE, yes.
    #15
    KMDN
    Super Member
    • Total Posts : 184
    • Reward points : 0
    • Joined: 2014/03/08 03:40:44
    • Location: 0
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/29 23:31:47 (permalink)
    0
    jtemples
    There hasn't been a "Compiler.h" in the MLA code for years.  Are you using an old version?  If so, why?




    Which version should I use. 
    can you provide me link. 
    my device is p24fj256da210
    post edited by KMDN - 2017/06/29 23:49:12
    #16
    jtemples
    Super Member
    • Total Posts : 10150
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/30 00:13:50 (permalink)
    #17
    KMDN
    Super Member
    • Total Posts : 184
    • Reward points : 0
    • Joined: 2014/03/08 03:40:44
    • Location: 0
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/30 00:31:10 (permalink)
    0
    Which files should I added and how to initialize.
    post edited by KMDN - 2017/06/30 03:01:53
    #18
    KMDN
    Super Member
    • Total Posts : 184
    • Reward points : 0
    • Joined: 2014/03/08 03:40:44
    • Location: 0
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/30 04:19:47 (permalink)
    0
    usb_host.h:76:6: error: #error The application must define USB_INITIAL_VBUS_CURRENT as 100 mA for Host or 8-100 mA for OTG.
    #19
    KMDN
    Super Member
    • Total Posts : 184
    • Reward points : 0
    • Joined: 2014/03/08 03:40:44
    • Location: 0
    • Status: offline
    Re: USB file error in pic24fj256da210 2017/06/30 08:43:56 (permalink)
    0
    Can anyone send me example how to write and read text file in pen drive. 
    #20
    Page: 1234 > Showing page 1 of 4
    Jump to:
    © 2017 APG vNext Commercial Version 4.5