+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Newbie level 5
    Points: 310, Level: 3

    Join Date
    May 2015
    Location
    ADDIS ABEBA, ETHIOPIA
    Posts
    9
    Helped
    0 / 0
    Points
    310
    Level
    3

    error when i compile sd card library on pic18f8722 mcu using microC

    i am working on project that uses sd card for storing data. for programming c code i am using micro c for pic 2011 version is 4.60. And micro-controller that i used pic18f8722 but when i compile the code it gives me an error says: (Undeclared identifier 'Mmc_Read_Sector' in expression). pleas tell me what should i do.

    •   AltAdvertisment

        
       

  2. #2
    Advanced Member level 2
    Points: 3,764, Level: 14

    Join Date
    Apr 2010
    Location
    UK
    Posts
    547
    Helped
    91 / 91
    Points
    3,764
    Level
    14

    Re: error when i compile sd card library on pic18f8722 mcu using microC

    The first thing to do is to install the latest version of your compiler.



    •   AltAdvertisment

        
       

  3. #3
    Advanced Member level 3
    Points: 3,996, Level: 14

    Join Date
    Aug 2015
    Posts
    773
    Helped
    142 / 142
    Points
    3,996
    Level
    14

    Re: error when i compile sd card library on pic18f8722 mcu using microC

    Are you trying the FAT16 or FAT32 code ?

    You need to declare that variable and I guess it is a array of char type.



    •   AltAdvertisment

        
       

  4. #4
    Super Moderator
    Points: 251,591, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    43,812
    Helped
    13322 / 13322
    Points
    251,591
    Level
    100

    Re: error when i compile sd card library on pic18f8722 mcu using microC

    As far as I know, Mmc_Read_Sector() is a built-in mikroC MMC library function. I'm not using mikroC and had thought the library routines would be visible all time. But may you are missing the SPI pin definitions required for operation of the library, review compiler manual. In case of doubt start with a sd card example provided for the compiler.



  5. #5
    Advanced Member level 3
    Points: 3,996, Level: 14

    Join Date
    Aug 2015
    Posts
    773
    Helped
    142 / 142
    Points
    3,996
    Level
    14

    Re: error when i compile sd card library on pic18f8722 mcu using microC

    If it is a function then you have not checked MMC library in the library manager.



    •   AltAdvertisment

        
       

  6. #6
    Advanced Member level 2
    Points: 3,764, Level: 14

    Join Date
    Apr 2010
    Location
    UK
    Posts
    547
    Helped
    91 / 91
    Points
    3,764
    Level
    14

    Re: error when i compile sd card library on pic18f8722 mcu using microC

    it is indeed a function in the MMC library.



--[[ ]]--