I think the left image may be better, need to also change the icons in the file explorer to be consistent.
If it matters, I prefer the image on the right where the external files (not in the project folder) are shown in blue. And I don't think you need to change the file explorer.
Ok, yes, in that case there is no need to change the file explorer.
Any chance you're going to the race at Imola this weekend?
Hi macca, all compile errors are gone.
But the generated Code is still buggy.
Here are 2 more Errors I found:
{Spin2_v51}
DAT
counter word 5
PUB start() | ^byte A, i
debug(sdec(counter)) 'OK, counter = 5
repeat counter with i
debug(sdec(i)) 'i counts not 0..4
debug("Start")
if [A] := 3 'crash the Prog.
debug(sdec([A]))
debug("End") 'never get here
In Spin Tools the repeat with loop works with a constant or an initialized variable, just not with a pre-initialized dat value. It does work in PNut v51.
I don't know what the other code is supposed to do so I didn't try testing.
@wummi said:
Hi macca, all compile errors are gone.
But the generated Code is still buggy.
Here are 2 more Errors I found:
{Spin2_v51}
DAT
counter word 5
PUB start() | ^byte A, i
debug(sdec(counter)) 'OK, counter = 5
repeat counter with i
debug(sdec(i)) 'i counts not 0..4
debug("Start")
if [A] := 3 'crash the Prog.
debug(sdec([A]))
debug("End") 'never get here
Thank you for all your reports, I really appreciate it.
@JonnyMac said:
In Spin Tools the repeat with loop works with a constant or an initialized variable, just not with a pre-initialized dat value. It does work in PNut v51.
Ah.. I was wondering why it doesn't work sice there is a test for it, haven't noticed it was a dat variable, need to modify the test.
All I did was extract the zip file and ran the exe. Then the error came up. That was on both versions.
I will work on it again and let you know.
Thanks.
Martin
@pilot0315 said:
Any ideas as to how to fix the error?
All I did was extract the zip file and ran the exe. Then the error came up. That was on both versions.
I will work on it again and let you know.
I already wrote how to fix, delete the .spin-tools file (after closing the program or it will be saved again), but if the error shows even with a clean setup there is something else I don't understand.
Please send a screenshot of the IDE window with the error dialog, and also the .spin-tools file, I really don't understand what happens.
Appears that the gui works but I get this error when launching.
Ok, unfortunately the screenshots aren't of much help, the tab that causes the error seems hidden just after pingtest.spin i guess.
If you switch to each tab what you see ? One of them should be empty, that's the failing file, close the tab and should be fixed (still don't know how that was opened).
You haven't attached the .spin-tools file, it is located in the home directory not the directory where the spin-tools archive was extracted.
But if you delete that file I'm pretty sure the problem goes away.
Also that Ariba x_band code can be downloaded ? I see two x band motion detector entries in Obex but doesn't seems to contain the same files.
What I sent you is how it opens up when launched. Three programs and the error message.
I will try again with your suggestion and let you know. It does not ask to attach anything. I will look for the.spin-tools file but you told me to delete it. I will start over from scratch.
Martin
@pilot0315 said:
What I sent you is how it opens up when launched. Three programs and the error message.
I will try again with your suggestion and let you know. It does not ask to attach anything. I will look for the.spin-tools file but you told me to delete it. I will start over from scratch.
Ok, english is not my mother language so maybe I don't always use the correct terminology and explain myself, let's see if this is more clear:
When you start Spin Tools IDE it reads the .spin-tools file from the user's home directory, for example C:\Users\marco\.spin-tools, this file constains the IDE's preference settings including the source files that were loaded in the editor's tabs the last time the program was closed. I asked you to attach that file to the post to see what's inside that causes the issue, I also asked to delete that file but apparently you didn't because the program still opens with some files loaded, one of which causes the error. If you just delete the spin-tools directory and unpack a freshly downloaded package it doesn't solve anything because the preference file is still there. The file is recreated each time the program is closed, so you need to close the IDE before acting on it.
So you have two options:
Close the IDE and delete the C:\Users\marco\.spin-tools file (or whatever is your user name, note there is a dot at the beginning of the file name), on reopen it should start with the default settings and no tabs open.
Close all tabs from the IDE, close the program, on reopen it should not load anything.
If these fails there is something else going on and I think I can't help.
Well I deleted all instances of the spin tools program.
Unpacked the _64 again. Launched Pinide and it opened up without an error message.
?????????????Oh well. I will see what happens. The magic Gremlin did some P F Magic.
Thanks for your time.
Martin
Comments
Can't wait!!!! (Though from a coach with Pizza!)
Ok, yes, in that case there is no need to change the file explorer.
Nope.
Hi macca, all compile errors are gone.
But the generated Code is still buggy.
Here are 2 more Errors I found:
In Spin Tools the repeat with loop works with a constant or an initialized variable, just not with a pre-initialized dat value. It does work in PNut v51.
I don't know what the other code is supposed to do so I didn't try testing.
Thank you for all your reports, I really appreciate it.
Ah.. I was wondering why it doesn't work sice there is a test for it, haven't noticed it was a dat variable, need to modify the test.
I think the "repeat loop with dat variable" thing was at one point a bug in flexspin -1bc mode as well :P Fun times.
@macca
Howdy,
Any ideas as to how to fix the error?
Thanks
Martin
@macca
All I did was extract the zip file and ran the exe. Then the error came up. That was on both versions.
I will work on it again and let you know.
Thanks.
Martin
I already wrote how to fix, delete the .spin-tools file (after closing the program or it will be saved again), but if the error shows even with a clean setup there is something else I don't understand.
Please send a screenshot of the IDE window with the error dialog, and also the .spin-tools file, I really don't understand what happens.
@macca
Here are four pictures.
1. The extracted files with the highlighted selection.
2. The error message.
3. The details.
4. Ariba x_band code in operation
Appears that the gui works but I get this error when launching.
Thanks for your time.
Martin
Ok, unfortunately the screenshots aren't of much help, the tab that causes the error seems hidden just after pingtest.spin i guess.
If you switch to each tab what you see ? One of them should be empty, that's the failing file, close the tab and should be fixed (still don't know how that was opened).
You haven't attached the .spin-tools file, it is located in the home directory not the directory where the spin-tools archive was extracted.
But if you delete that file I'm pretty sure the problem goes away.
Also that Ariba x_band code can be downloaded ? I see two x band motion detector entries in Obex but doesn't seems to contain the same files.
@macca
What I sent you is how it opens up when launched. Three programs and the error message.
I will try again with your suggestion and let you know. It does not ask to attach anything. I will look for the.spin-tools file but you told me to delete it. I will start over from scratch.
Martin
Ok, english is not my mother language so maybe I don't always use the correct terminology and explain myself, let's see if this is more clear:
When you start Spin Tools IDE it reads the .spin-tools file from the user's home directory, for example
C:\Users\marco\.spin-tools
, this file constains the IDE's preference settings including the source files that were loaded in the editor's tabs the last time the program was closed. I asked you to attach that file to the post to see what's inside that causes the issue, I also asked to delete that file but apparently you didn't because the program still opens with some files loaded, one of which causes the error. If you just delete the spin-tools directory and unpack a freshly downloaded package it doesn't solve anything because the preference file is still there. The file is recreated each time the program is closed, so you need to close the IDE before acting on it.So you have two options:
C:\Users\marco\.spin-tools
file (or whatever is your user name, note there is a dot at the beginning of the file name), on reopen it should start with the default settings and no tabs open.If these fails there is something else going on and I think I can't help.
@macca
No issue with the mother language.
I will follow the instructions shortly.
Thanks and let you know.
Martin
@macca
Well I deleted all instances of the spin tools program.
Unpacked the _64 again. Launched Pinide and it opened up without an error message.
?????????????Oh well. I will see what happens. The magic Gremlin did some P F Magic.
Thanks for your time.
Martin
That's good news. You should be cheering.