pcbway

Mikroc ile mmc programlama sorunu

Başlatan yiğitbulut, 30 Kasım 2012, 22:40:28

yiğitbulut

30 Kasım 2012, 22:40:28 Son düzenlenme: 30 Kasım 2012, 22:41:52 yiğitbulut
merhaba arkadaşlar ben microc pro 5.61 versiyonunu kullanıyorum pic8f4520 işlemcisini programlıyarak mmc kullanmak istiyorum fakat parogramı derlerken şöyle bir sorunla karşılaşıyorum :

0 1 mikroCPIC1618.exe -MSF -DBG -pP18F4520 -RA -DL -O11111114 -fo8 -N\"C:\\Users\\Yılmaz\\Desktop\\robot\\mmc.mcppi\" -SP\"F:\\Labcenter Electronics\\mikroC PRO for PIC\\defs\\\" -SP\"F:\\Labcenter Electronics\\mikroC PRO for PIC\\uses\\P18\\\" -SP\"C:\\Users\\Yılmaz\\Desktop\\robot\\\" \"mmc.c\" \"__Lib_Math.mcl\" \"__Lib_MathDouble.mcl\" \"__Lib_System.mcl\" \"__Lib_Delays.mcl\" \"__Lib_CType.mcl\" \"__Lib_CString.mcl\" \"__Lib_CStdlib.mcl\" \"__Lib_CMath.mcl\" \"__Lib_MemManager.mcl\" \"__Lib_Conversions.mcl\" \"__Lib_Sprintf.mcl\" \"__Lib_PrintOut.mcl\" \"__Lib_Sprinti.mcl\" \"__Lib_Sprintl.mcl\" \"__Lib_Time.mcl\" \"__Lib_Trigonometry.mcl\" \"__Lib_Button.mcl\" \"__Lib_Keypad4x4.mcl\" \"__Lib_Manchester.mcl\" \"__Lib_OneWire.mcl\" \"__Lib_PS2.mcl\" \"__Lib_Sound.mcl\" \"__Lib_SoftI2C.mcl\" \"__Lib_SoftSPI.mcl\" \"__Lib_SoftUART.mcl\" \"__Lib_ADC_A_D.mcl\" \"__Lib_EEPROM_256.mcl\" \"__Lib_FLASH_w32_e64.mcl\" \"__Lib_I2C_c34.mcl\" \"__Lib_PWM_c21.mcl\" \"__Lib_SPI_c345.mcl\" \"__Lib_UART_c67.mcl\" \"__Lib_PortExpander.mcl\" \"__Lib_CANSPI.mcl\" \"__Lib_CF.mcl\" \"__Lib_CFFat16.mcl\" \"__Lib_GlcdFonts.mcl\" \"__Lib_Glcd.mcl\" \"__Lib_LcdConsts.mcl\" \"__Lib_Lcd.mcl\" \"__Lib_Mmc.mcl\" \"__Lib_MmcFat16.mcl\" \"__Lib_MmcFat16Constants.mcl\" \"__Lib_RS485.mcl\" \"__Lib_S1D13700.mcl\" \"__Lib_T6963C.mcl\" \"__Lib_SPIGlcd.mcl\" \"__Lib_SPILcd.mcl\" \"__Lib_SPILcd8.mcl\" \"__Lib_SPIT6963C.mcl\" \"__Lib_EthEnc28j60.mcl\" \"__Lib_TFT.mcl\" \"__Lib_TFT_16bit.mcl\" \"__Lib_TouchPanel_TFT.mcl\" \"__Lib_EthEnc24j600.mcl\" \"__Lib_TouchPanel.mcl\" 
0 1139 Available RAM: 1515 [bytes], Available ROM: 32768 [bytes] 
0 122 Compilation Started P18F4520.c
1469 123 Compiled Successfully P18F4520.c
0 122 Compilation Started __Lib_Delays.c
172 123 Compiled Successfully __Lib_Delays.c
0 122 Compilation Started __Lib_MemManager.c
34 1508 Implicit conversion of int to ptr __Lib_MemManager.c
231 123 Compiled Successfully __Lib_MemManager.c
0 122 Compilation Started __Lib_GlcdFonts.c
1207 123 Compiled Successfully __Lib_GlcdFonts.c
0 122 Compilation Started __lib_mmcfat16.h
71 123 Compiled Successfully __Lib_MmcFat16Constants.c
0 126 All files Preprocessed in 390 ms 
0 122 Compilation Started mmc.c
175 1509 Generated baud rate is 19231 bps (error = 0.16 percent) mmc.c
208 123 Compiled Successfully mmc.c
97 1164 Variable \'fsize\' has been eliminated by optimizer mmc.c
0 127 All files Compiled in 109 ms 
1078 362 Not enough RAM \'d\' __Lib_MmcFat16.c
1056 362 Not enough RAM \'dir\' __Lib_MmcFat16.c
1226 362 Not enough RAM \'d\' __Lib_MmcFat16.c
1198 362 Not enough RAM \'dir\' __Lib_MmcFat16.c
679 362 Not enough RAM \'s\' __Lib_MmcFat16.c
993 362 Not enough RAM \'offset\' __Lib_MmcFat16.c
640 362 Not enough RAM \'d\' __Lib_MmcFat16.c
797 362 Not enough RAM \'i\' __Lib_MmcFat16.c
798 362 Not enough RAM \'nbEnt\' __Lib_MmcFat16.c
800 362 Not enough RAM \'free\' __Lib_MmcFat16.c
801 362 Not enough RAM \'ss\' __Lib_MmcFat16.c
0 362 Not enough RAM \'?FLOC___Lib_MmcFat16_nameToUpper\' __Lib_MmcFat16.c
138 362 Not enough RAM \'pch\' __Lib_MmcFat16.c
143 362 Not enough RAM \'s\' __Lib_CString.c
76 362 Not enough RAM \'character\' __Lib_CType.c
507 362 Not enough RAM \'maxClust\' __Lib_MmcFat16.c
508 362 Not enough RAM \'cl\' __Lib_MmcFat16.c
510 362 Not enough RAM \'s\' __Lib_MmcFat16.c
511 362 Not enough RAM \'clEntry\' __Lib_MmcFat16.c
568 362 Not enough RAM \'d\' __Lib_MmcFat16.c
570 362 Not enough RAM \'i\' __Lib_MmcFat16.c
572 362 Not enough RAM \'nbEnt\' __Lib_MmcFat16.c
573 362 Not enough RAM \'ldir\' __Lib_MmcFat16.c
571 362 Not enough RAM \'s\' __Lib_MmcFat16.c
428 362 Not enough RAM \'c\' __Lib_MmcFat16.c
430 362 Not enough RAM \'s\' __Lib_MmcFat16.c
456 362 Not enough RAM \'v\' __Lib_MmcFat16.c
458 362 Not enough RAM \'i\' __Lib_MmcFat16.c
459 362 Not enough RAM \'o\' __Lib_MmcFat16.c
460 362 Not enough RAM \'s\' __Lib_MmcFat16.c
276 362 Not enough RAM \'dbuff\' __Lib_Mmc.c
277 362 Not enough RAM \'i\' __Lib_Mmc.c
278 362 Not enough RAM \'byte_start\' __Lib_Mmc.c
87 362 Not enough RAM \'s\' __Lib_MmcFat16.c
89 362 Not enough RAM \'fn\' __Lib_MmcFat16.c
90 362 Not enough RAM \'ptr\' __Lib_MmcFat16.c
91 362 Not enough RAM \'olds\' __Lib_MmcFat16.c
454 362 Not enough RAM \'dbuff\' __Lib_Mmc.c
455 362 Not enough RAM \'i\' __Lib_Mmc.c
0 362 Not enough RAM \'?FLOC__Mmc_Multi_Read_Sector\' __Lib_Mmc.c
231 362 Not enough RAM \'dbuff\' __Lib_Mmc.c
232 362 Not enough RAM \'i\' __Lib_Mmc.c
233 362 Not enough RAM \'byte_start\' __Lib_Mmc.c
0 362 Not enough RAM \'?FLOC__Mmc_Read_Sector\' __Lib_Mmc.c
469 362 Not enough RAM \'response\' __Lib_Mmc.c
470 362 Not enough RAM \'timeout\' __Lib_Mmc.c
210 362 Not enough RAM \'d\' __Lib_MmcFat16.c
212 362 Not enough RAM \'p1\' __Lib_MmcFat16.c
212 362 Not enough RAM \'p2\' __Lib_MmcFat16.c
213 362 Not enough RAM \'i\' __Lib_MmcFat16.c
0 362 Not enough RAM \'?FLOC___Lib_MmcFat16_f16_DirentToDir\' __Lib_MmcFat16.c
30 362 Not enough RAM \'n\' __Lib_CString.c
434 362 Not enough RAM \'sector\' __Lib_Mmc.c
435 362 Not enough RAM \'byte_start\' __Lib_Mmc.c
84 362 Not enough RAM \'n\' __Lib_CString.c
35 362 Not enough RAM \'character\' __Lib_CType.c
122 362 Not enough RAM \'s2\' __Lib_CString.c
44 362 Not enough RAM \'n\' __Lib_CString.c
77 362 Not enough RAM \'crc\' __Lib_Mmc.c
78 362 Not enough RAM \'response\' __Lib_Mmc.c
79 362 Not enough RAM \'timeout\' __Lib_Mmc.c
55 362 Not enough RAM \'s\' __Lib_MmcFat16.c
72 362 Not enough RAM \'s\' __Lib_MmcFat16.c
67 362 Not enough RAM \'buffer\' __Lib_SPI_c345.c
0 102 Finished (with errors): 30 Kas 2012, 22:33:00 mmc.mcppi

yazici67

Hata metnine bakılırsa Yeterli RAM yok diyor. 18F4520\'nin 1536 byte SRAM belleği var. Daha geniş RAM belleği olan bir MCU için derlemeyi deneyin. Eğer derlenirse, sorun RAM demektir. Derlenmiyorsa MikroC \'yi güncellemeyi deneyin.

engin.763

yazdığınız program 2kb ı geçerse microC nin demo sürümü daha fazlasını derlemez  bildiğim kadarıyla sorun orda olabilir.....yinede bi araştırın.
Bir insan iyi bir mühendis olabilir,yada iyi bir doktor,çok iyi bir yöneticide olabilir ,ama ne olursa olsun insan iyi yumruk atmayı ve iyi nişan almayı mutlaka bilmeli....

yiğitbulut

demo limite geldiğinde demo limit diye yazyor zaten

yazici67

Tekrarlıyorum;
Alıntı1078 362 Not enough RAM \'d\' __Lib_MmcFat16.c
dendiğine göre Demo ile ya da Program Memory ile ilgili değil. RAM yetmiyor.
Çok fazla kütüphane var.
Alıntı\"__Lib_Math.mcl\" \"__Lib_MathDouble.mcl\" \"__Lib_System.mcl\" \"__Lib_Delays.mcl\" \"__Lib_CType.mcl\" \"__Lib_CString.mcl\" \"__Lib_CStdlib.mcl\" \"__Lib_CMath.mcl\" \"__Lib_MemManager.mcl\" \"__Lib_Conversions.mcl\" \"__Lib_Sprintf.mcl\" \"__Lib_PrintOut.mcl\" \"__Lib_Sprinti.mcl\" \"__Lib_Sprintl.mcl\" \"__Lib_Time.mcl\" \"__Lib_Trigonometry.mcl\" \"__Lib_Button.mcl\" \"__Lib_Keypad4x4.mcl\" \"__Lib_Manchester.mcl\" \"__Lib_OneWire.mcl\" \"__Lib_PS2.mcl\" \"__Lib_Sound.mcl\" \"__Lib_SoftI2C.mcl\" \"__Lib_SoftSPI.mcl\" \"__Lib_SoftUART.mcl\" \"__Lib_ADC_A_D.mcl\" \"__Lib_EEPROM_256.mcl\" \"__Lib_FLASH_w32_e64.mcl\" \"__Lib_I2C_c34.mcl\" \"__Lib_PWM_c21.mcl\" \"__Lib_SPI_c345.mcl\" \"__Lib_UART_c67.mcl\" \"__Lib_PortExpander.mcl\" \"__Lib_CANSPI.mcl\" \"__Lib_CF.mcl\" \"__Lib_CFFat16.mcl\" \"__Lib_GlcdFonts.mcl\" \"__Lib_Glcd.mcl\" \"__Lib_LcdConsts.mcl\" \"__Lib_Lcd.mcl\" \"__Lib_Mmc.mcl\" \"__Lib_MmcFat16.mcl\" \"__Lib_MmcFat16Constants.mcl\" \"__Lib_RS485.mcl\" \"__Lib_S1D13700.mcl\" \"__Lib_T6963C.mcl\" \"__Lib_SPIGlcd.mcl\" \"__Lib_SPILcd.mcl\" \"__Lib_SPILcd8.mcl\" \"__Lib_SPIT6963C.mcl\" \"__Lib_EthEnc28j60.mcl\" \"__Lib_TFT.mcl\" \"__Lib_TFT_16bit.mcl\" \"__Lib_TouchPanel_TFT.mcl\" \"__Lib_EthEnc24j600.mcl\" \"__Lib_TouchPanel.mcl\"
Belleğe sığmaması normal değil mi?

yiğitbulut


yazici67

Ek olarak, bu çapta kütüphaneler kullanıyorsanız, büyük proje demektir. Bu tarz projeleri PIC18\'lerle yapmak çok zor olacak. 32-Bit ARM veya PIC32 türü işlemcilere geçmeniz size kolaylık sağlayacaktır.
İyi çalışmalar...