Linspire
Full Member level 5
- Joined
- Sep 1, 2011
- Messages
- 303
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,298
- Location
- M'sia
- Activity points
- 3,279
Try this, it may help
extern sfr sbit Mmc_Chip_Select at RC0_bit;
extern sfr sbit Mmc_Chip_Select_Direction at TRISC0_bit;
Nope, still the same. Why you want change to RC0 ? I'm using PIC18F4520 , which PORT C pin 2 is CS .
Anyone know why this error occur ?
---------- Post added at 20:56 ---------- Previous post was at 19:46 ----------
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 78 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:46:44 MMC.mcppi
Those problem has been solved by including C_type library. =)
But right now I'm still have problem intializing and write a file to sd card.
Last edited: