Shop OBEX P1 Docs P2 Docs Learn Events
Fat32/RTC Compilation error in SimpleIde — Parallax Forums

Fat32/RTC Compilation error in SimpleIde

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...
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

Sign In or Register to comment.