Shop OBEX P1 Docs P2 Docs Events
Spin Tools IDE - Page 12 — Parallax Forums

Spin Tools IDE

167891012»

Comments

  • maccamacca Posts: 675

    @"R Baggett" said:
    I have narrowed down the problem to line 32. If i remove the array reference from the first 'Times' variable, the red tab goes away and it will compile. (But clearly won't work as intended that way)

    Yes, that line cause a weird internal error (this is why you see the red tab title but no other indication), will look at it.

  • maccamacca Posts: 675

    Released version 0.32.1 with the fixes reported.

    • Unary float operators
    • Repeat variable compile
    • Sub address rfvar arguments
    • Range expression parsing
    • Object array method navigation

    Added a couple missing unary constants folding, and toggle RTS with DTR to reset the propeller.

  • @macca

    Thanks for this release! My code execution issue is now resolved!

  • Macca,

    Array variable problem resolved!

  • @macca

    I recently loaded spinIDE (along with the latest Java SDK/runtime) on my Debian laptop and it runs great. This is a nice tool. However, I would like to run on my raspberrypi(s) too. It turns out that the default Java SDK (SE 17) for raspian uses 32 bit library compilation. Unfortunately, spinIDE seems to be compiled with 64 bit libraries and throws a non-compatible java runtime error on startup. Would it be possible to get a 32bit library compiled version available for rpi use put up on your download page? I think this would allow the default java load for rpi's to run spinIDE.

  • maccamacca Posts: 675

    @Phonos
    Unfortunately, the SWT library is available for 64-bit ARM only.
    You need to install the 64-bit OS, however I haven't tested it and there isn't a build for it (waiting for the Raspberry Pi 5 to arrive).

  • Thank you for the response. I am on the waitlist for rpi5. My workaround is to ssh p2.binary files and run a P2 loader script on the rpi3b/4. This is for use where the robot is actually being used and is detached from the workstation.

    I appreciate the good work you have done with this tool!

  • maccamacca Posts: 675

    Released version 0.33.0

    • Fixed floating point math op size
    • Implemented lstring, longs, words and bytes functions (PNut v42)
    • Bytecode compiler refactoring to allow keywords override

    The addition of the new keywords should be backward compatible with existing sources that are already using variables or methods with the same name.
    Hope to not have broken something else in the process.

  • Hi,
    I love the new Spin Tools IDE (use the latest 0.33.0), it gives a big extra back ground information. I use the propeller 1. The only problem i have, is that it error gives in syntax, but not in Propeller Tools v1.3.2. There are no issues. Here an example, with using RX.spin object

    statement spr[8+i] := %01000 << 26 + long[pins_address][i] 'set the mode and pin for ctra/b
    error > undefined symbol spr

    statement phsa~ 'counter set to zero
    gives > expression syntax error

    is there a workaround ?

    Regards Rob.

  • maccamacca Posts: 675

    @"Rob v.d. berg" said:
    statement spr[8+i] := %01000 << 26 + long[pins_address][i] 'set the mode and pin for ctra/b
    error > undefined symbol spr

    Forgot the SPR register... in that case you can work around it by using the actual register names.
    Replace the loop with:

      ctra := ctrb  := %01000 << 26 + long[pins_address][i]   'set the mode and pin for ctra/b
      frqa := frqb := 1                                      ' set frqa/b
    

    statement phsa~ 'counter set to zero
    gives > expression syntax error

    This is a bit weird since the post-clear should be supported... anyway, for now, you can work around by using the assignment:

            phsa := 0                                              'counter set to zero
    

    I'll look at fixing the compiler.

    Thanks for reporting.

  • @macca said:
    Forgot the SPR register...

    We all do. I think that one was unimplemented in flexspin bytecode (and bugged in the asm backend) for a long time.

  • great!, thanks for your work

  • @macca said:

    @JonnyMac said:
    The only thing missing for me is the "blob/block select" (Alt + drag-select) in Propeller Tool. I have found this in other editors, too, and make use of it. Not a deal-breaker at all, but a really nice-to-have.

    The widget I'm using as text editor supports the block selection, however it is a toggle so it needs a button somewhere and/or a keyboard shortcut to enable/disable it.
    Using Alt+drag, or something like that to detect the action, doesn't seems possible.

    Hi macca, I love the work you have done on "Spin tools", thank you for your hard work.

    You mentioned the "block selection" function and I have found it in the [Edit] menuand turned it on, but how can I use it?
    I thought I could use this to indent a block of text when changing existing code rather then going to every line and pressing TAB but I can't get it to do much.
    If I turn it on I can then select a block of text & copy or past it but I can't seem to get this new text indent relative to the old text, other then the first line every line is in the same location as before.
    If it isn't meant for this function can you please tell me where I can use this??

  • maccamacca Posts: 675

    @lab_ges said:
    Hi macca, I love the work you have done on "Spin tools", thank you for your hard work.

    Thank you.

    You mentioned the "block selection" function and I have found it in the [Edit] menuand turned it on, but how can I use it?
    I thought I could use this to indent a block of text when changing existing code rather then going to every line and pressing TAB but I can't get it to do much.
    If I turn it on I can then select a block of text & copy or past it but I can't seem to get this new text indent relative to the old text, other then the first line every line is in the same location as before.
    If it isn't meant for this function can you please tell me where I can use this??

    As of now, copy/paste, more or less like the normal selection, is the only thing it does.

  • JonnyMacJonnyMac Posts: 8,798

    One of the nice features of Propeller Tool is the ability to select a group of lines and indent (Tab) or un-indent (Shift+Tab) them together. I hope this feature finds its way into Spin Tools.

Sign In or Register to comment.