Can't get spi to read data

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

garryp4
Posts: 104
Joined: Mon May 21, 2007 7:18 am
Location: Loveland, CO USA

Re: Can't get spi to read data

Post by garryp4 » Fri Aug 21, 2020 10:37 pm

Jerry:

I still got the compile errors with the intOSC.bas and setdigitalio.bas. Saw your comment "Clock = 8 // current intosc.bas v2.1 limit". Checked the rev of intOSC.bas when I clicked on it and I have v1.6. Did a search of my hard drive and found v2.1. How can I make the IDE point to the correct library directory? I suspect this may have been a lot of my problems.

Thanks,
Garry

Jerry Messina
Swordfish Developer
Posts: 1246
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Can't get spi to read data

Post by Jerry Messina » Sat Aug 22, 2020 10:08 am

What are the full paths for the two copies of intosc.bas you found and what OS are you running?

According to the installer script, the various library and include files should end up in:
C:\ProgramData\Mecanique\Swordfish
Includes
Library
Plugin
Samples
UserLibrary

garryp4
Posts: 104
Joined: Mon May 21, 2007 7:18 am
Location: Loveland, CO USA

Re: Can't get spi to read data

Post by garryp4 » Sat Aug 22, 2020 4:10 pm

The path to intOSC that opens up automatically is c:\users\g\documents\swordfish\userlibrary\intocs.bas. Is there someplace I can define the path? I have not been able to find a way.

garryp4
Posts: 104
Joined: Mon May 21, 2007 7:18 am
Location: Loveland, CO USA

Re: Can't get spi to read data

Post by garryp4 » Sat Aug 22, 2020 4:12 pm

I am running windows 10 on this laptop.

Jerry Messina
Swordfish Developer
Posts: 1246
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Can't get spi to read data

Post by Jerry Messina » Sat Aug 22, 2020 7:36 pm

some files like intosc.bas are now included as part of the standard libraries. The compiler will look in the user library folder first, and then the library folder.

Remove any old files from the user library folder and you'll get the new ones.

After you compile a project,open the .idf file (it's a text file) and you can see the paths for all the files that were used.

Post Reply