PIC18F4520 & MikroC & 16x2 LCD

General discussion on mikroC.
Post Reply
Author
Message
linspire
Posts: 20
Joined: 03 Sep 2011 08:31

PIC18F4520 & MikroC & 16x2 LCD

#1 Post by linspire » 03 Sep 2011 08:37

Hi guys,
I have done simple coding for testing the SD card interface with 16x2 LCD with following codes.

Code: Select all

// MMC module connections
sfr sbit Mmc_Chip_Select at RC2_bit;
sfr sbit Mmc_Chip_Select_Direction at TRISC2_bit;
// MMC module connections




char           filename[] = "TempLogF.TXT";



void main() {


  // Initialize SPI1 module and set pointer(s) to SPI1 functions
  SPI1_Init_Advanced(_SPI_MASTER_OSC_DIV64, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_LOW, _SPI_LOW_2_HIGH);
  Mmc_Fat_Assign(&filename,0xA0);
  Mmc_Fat_Write("Hello world",2);


}
However, I got compilation errors which states :
0 1 mikroCPIC1618.exe -MSF -DBG -pP18F4520 -DL -O11111114 -fo10 -N"C:\Users\User\Desktop\MikroC testing\MMC.mcppi" -SP"C:\Program Files (x86)\Mikroelektronika\mikroC PRO for PIC\defs\" -SP"C:\Program Files (x86)\Mikroelektronika\mikroC PRO for PIC\uses\P18\" -SP"C:\Users\User\Desktop\MikroC testing\" "MMC.c" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_Button.mcl" "__Lib_SPI_c345.mcl" "__Lib_UART_c67.mcl" "__Lib_Mmc.mcl" "__Lib_MmcFat16.mcl"
0 125 All files Preprocessed in 32 ms
0 121 Compilation Started MMC.c
22 122 Compiled Successfully MMC.c
0 126 All files Compiled in 62 ms
0 359 Unresolved extern 'islower' __Lib_MmcFat16.c
0 359 Unresolved extern 'islower' __Lib_MmcFat16.c
0 359 Unresolved extern 'toupper' __Lib_MmcFat16.c
0 359 Unresolved extern 'toupper' __Lib_MmcFat16.c
0 359 Unresolved extern 'islower' __Lib_MmcFat16.c

0 0
0 102 Finished (with errors): 03 Sep 2011, 15:15:55 MMC.mcppi
My MikroC version is MikroC Pro 2009.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: PIC18F4520 & MikroC & 16x2 LCD

#2 Post by filip » 05 Sep 2011 10:42

Hi,

Please, check the C_Type library in the Library Manager and it will compile without these errors.

Regards,
Filip.

Post Reply

Return to “mikroC General”