سلام.
Start بزرگوار، بنده در خط 57 برنامه که در پیوست هم آوردم یک خط اضافه کردم، به منظور خوندن اطاعات از یک سکتور.
کد:
res=SD_BOOL SD_ReadSector(10,bufi,1);
2 تا ارور میده که، متاسفانه موفق به رفع آنها نشدم.
در صورت امکان یه بررسی بفرمایید.
این لیست پیغام خطا ها است.
کد:
Rebuild target 'kavirelectronic'assembling startup_LPC17xx.s...
compiling main_sd_mmc.c...
Source\main_sd_mmc.c(33): warning: #9-D: nested comment is not allowed
/*UART0_SendString(BX);
Source\main_sd_mmc.c(57): error: #254: type name is not allowed
res=SD_BOOL SD_ReadSector(10,bufi,1);
Source\main_sd_mmc.c(57): error: #65: expected a ";"
res=SD_BOOL SD_ReadSector(10,bufi,1);
Source\main_sd_mmc.c(60): warning: #9-D: nested comment is not allowed
/* UART0_Init(); /* UART Initialization */
Source\main_sd_mmc.c(73): warning: #167-D: argument of type "int *" is incompatible with parameter of type "UINT *"
res = f_write (&fsrc, string1, sizeof(string1), &bw);
Source\main_sd_mmc.c(105): warning: #167-D: argument of type "int *" is incompatible with parameter of type "UINT *"
res = f_write (&fsrc, string2, sizeof(string2), &bw);
Source\main_sd_mmc.c(118): warning: #167-D: argument of type "int *" is incompatible with parameter of type "UINT *"
res = f_write (&fsrc, snum, sizeof(snum), &bw);
Source\main_sd_mmc.c(127): warning: #9-D: nested comment is not allowed
f_mount(0, NULL); /* Unregister work area prior to discard it */
Source\main_sd_mmc.c(46): warning: #177-D: variable "bufi" was declared but never referenced
uint8_t bufi[512];
Source\main_sd_mmc.c(52): warning: #550-D: variable "res" was set but never used
int res;
Source\main_sd_mmc.c: 8 warnings, 2 errors
compiling uart.c...
compiling system_LPC17xx.c...
compiling lpc17xx_spi.c...
compiling sd.c...
Source\SPI_SD\sd.c(619): warning: #177-D: variable "i" was declared but never referenced
uint32_t i;
Source\SPI_SD\sd.c(657): warning: #177-D: variable "i" was declared but never referenced
uint32_t i;
Source\SPI_SD\sd.c: 2 warnings, 0 errors
compiling ff.c...
".\OBJ\SD_MMC_kavirelectronic.axf" - 2 Error(s), 10 Warning(s).
Target not created