Fat32/RTC Compilation error in SimpleIde
JaanDoh
Posts: 129
in Propeller 1
As part of my C learning,
I thought I'd take ready made objects and compile them.
So I took Kyes DS1302_SD-MMC_FAT32Engine object and also his DS1302_RTCEngine object and try to compile them in SimpleIde.
I've used the same (unmodified) objects written in Spin and added them to a project and tried to compile (attached for the sake of reference).
Upon compilation I received the following error...
I'm shown the offending item is the invalid object file "DS1302_RTCEngine.spin.OBJ"
And that's where I get stumped, because in the DS1302_SD-MMC_FateEngine" object the link to the RTC object is declared as below
So as far as I can understand the compiler is looking for file "DS1302_RTCEngine.spin.OBJ"
Where-as the actual name of the file is "DS1302_RTCEngine.spin"
Also within the folder with the source files, there is a subfolder called "lmm" and inside there I can see a file "DS1302_RTCEngine.dat"
So it's not clear whats causing the issue? If any can tell me, that would be great.
Additionally, I guess there is some way of including the compiled (dat) file from the LMM folder into an application, but haven't progressed that far yet.
I thought I'd take ready made objects and compile them.
So I took Kyes DS1302_SD-MMC_FAT32Engine object and also his DS1302_RTCEngine object and try to compile them in SimpleIde.
I've used the same (unmodified) objects written in Spin and added them to a project and tried to compile (attached for the sake of reference).
Upon compilation I received the following error...
openspin.exe -c -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/spin/ -o lmm/DS1302_RTCEngine.dat DS1302_RTCEngine.spin Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor. Version 1.00.78 Compiled on May 28 2016 12:06:45 Compiling... DS1302_RTCEngine.spin Done. Program size is 3 bytes openspin.exe -c -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/spin/ -o lmm/DS1302_SD-MMC_FATEngine.dat DS1302_SD-MMC_FATEngine.spin Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor. Version 1.00.78 Compiled on May 28 2016 12:06:45 Compiling... DS1302_SD-MMC_FATEngine.spin |-DS1302_RTCEngine.spin [s][/s]DS1302_SD-MMC_FATEngine.spin(1:1) : error : Invalid object file DS1302_RTCEngine.spin.OBJ Line: Offending Item:
I'm shown the offending item is the invalid object file "DS1302_RTCEngine.spin.OBJ"
And that's where I get stumped, because in the DS1302_SD-MMC_FateEngine" object the link to the RTC object is declared as below
OBJ rtc: "DS1302_RTCEngine.spin"
So as far as I can understand the compiler is looking for file "DS1302_RTCEngine.spin.OBJ"
Where-as the actual name of the file is "DS1302_RTCEngine.spin"
Also within the folder with the source files, there is a subfolder called "lmm" and inside there I can see a file "DS1302_RTCEngine.dat"
So it's not clear whats causing the issue? If any can tell me, that would be great.
Additionally, I guess there is some way of including the compiled (dat) file from the LMM folder into an application, but haven't progressed that far yet.
Comments
Thanks for your help,
Actually there were some changes to the files that I had added.
I removed the edits by replacing the files from the original zip after re-downloading it from AN006-SD-FSS-Code-v1.1.zip
I saved the files, but I still get the same error, i've attached the new files since the other ones had some extra edits in them.
To me it seems like the compiler is looking for a .OBJ file instead of .Spin file...
I'm using SimpleIde V1.1.2
But in SimpleIde it fails with the error I displayed above.
I just wondered why?
Maybe there is a sample SD Card driver already in the examples/samples folder in SimpleIde,
I will take a look as I'm off to bed now.
I try not to use SPIN objects in my C code because it not needed.
FAT32 is built into the C so you don't need an object for it. The Simpletools library has it.
There are also libraries for the RTC and C has a Real time clock built in that can be used to keep time.
Mike
PS: Andy has work hard for several years now on providing libraries for most of the products Parallax sells. It would be a same not to use them.