gremi
Joined: 11 Mar 2008 Posts: 20 Location: Toulouse, France
|
Linker error |
Posted: Tue Mar 18, 2008 7:41 am |
|
|
Hi everybody, I'm trying to work with Miniman's fat32 driver.
I've an error at the linker step :
Quote: |
The target "D:\guillot\autre_driver\MMC_SPI_FAT32.o" is already up to date.
The target "D:\guillot\autre_driver\main.o" is already up to date.
Executing: "C:\Program Files\PICC\Ccsc.exe" +FH LINK="Autre_driver.hex=MMC_SPI_FAT32.o,main.o" +DF +LN +T +A +M +Z +Y=9 +EA
*** Error 146 "Autre_driver.C" Line 1(0,1): Import error dyn mem mis-match true!=false
*** Error 146 "Autre_driver.C" Line 1(0,1): Import error
2 Errors, 0 Warnings.
Skipping link step. Not all sources built successfully.
BUILD FAILED: Tue Mar 18 14:27:24 2008 |
This is my main.c :
Code: | #include <project.h>
#include <MMC_SPI_FAT32.h>
void main(void)
{
while(1){}
} |
My project.h :
Code: | #if defined(projet_inclus)
#else
#define projet_inclus
#include <18F4580.h>
#device PASS_STRINGS = IN_RAM
#fuses XT, NOWDT, NOPROTECT
#use delay(clock = 4000000)
#use rs232(baud=38400, xmit=PIN_C6,rcv=PIN_C7)
#include <string.h>
#use fast_io(c)
#use fast_io(e)
#endif |
My MMC_SPI_FAt32.C
Code: | #include <project.h>
#include <MMC_SPI_FAT32.h>
// If you want to use software SPI keep this line uncommented
// If you want to use hardware SPI comment this line..
// Software SPI are slower, but you can use any clock and data
// pins that you want..
#define MMC_SPI_SOFTWARE
[....................................]
|
The MMC_SPI_FAt32.h is the same as the original :
http://www.ccsinfo.com/forum/viewtopic.php?t=23969
I've tryed several things, but it doesn't work...
Anyone can help me??? (and sorry for my bad english, I'm french ;) )
Thanks.
ps : I'm using CCS V4, and MPLAB 8.02... |
|