SpinEdit - Editor for Spin, Spin2 and FastBasic

13»

Comments

  • Wish I could launch the native Mac version of fastspin and loadp2 from SpinEdit under Wine, but don't think I can...
    Prop Info and Apps: http://www.rayslogic.com/
  • Does a Hello-World demo exist in pure spin2 anywhere, that will compile in SpinEdit?

    (Or just toggle P56/P57... doesn't actually need to say "HelloWorld")

  • Rayman wrote: »
    Wish I could launch the native Mac version of fastspin and loadp2 from SpinEdit under Wine, but don't think I can...
    As far as I can tell (after lots of searching wine forums) you are correct... No simple way to exec macOS executables from within wine.

    dgately

    Livermore, CA (50 miles SE of San Francisco)
  • VonSzarvas wrote: »
    Does a Hello-World demo exist in pure spin2 anywhere, that will compile in SpinEdit?

    (Or just toggle P56/P57... doesn't actually need to say "HelloWorld")

    I think any of the files from the spin2gui samples/ folder should compile in SpinEdit.
  • RaymanRayman Posts: 9,128
    edited 2019-01-11 - 22:48:54
    VonSzarvas: Sorry for the delay... If you mean samples that are not all assembly, but actual Spin code, then the samples in spin2gui are limited... And, I didn't have any at all...

    Problem is that many don't set the clock and so serial probably doesn't work...
    The new smartpin.spin2 example looks like it might work.

    I found an old example that I added clock settings to and it works.
    I just noticed "pausems" is a built in function, so added a delay with that.
    This one uses SimpleSerial.spin instead of the new SmartSerial.spin2.

    BTW: If a goal is to write code for both P1 and P2, looks tricky...
    Prop Info and Apps: http://www.rayslogic.com/
  • Mark_TMark_T Posts: 1,773
    edited 2019-01-12 - 20:43:29
    Rayman wrote: »
    Ok, I'm stuck... LoadP2.exe crashes on me now when trying to do this:
    cmd.exe /C loadp2.exe -m 010c1f08 -p /dev/tty.usbserial-P2EEJWO "C:\users\ray\Desktop\SpinEdit\SimpleSerial.binary" > loadp2.out/code] Do I need a different binary for Mac? I don't think so... Actually, I think I do... It's trying to run under Wine due to .exe extension. And, changing filename extension to .APP doesn't work...[/quote] Ah, that might be the problem I had, but after changing to using a symbollic link in .wine/dosdevices for the usb device it was happy.[code]cmd.exe /C loadp2.exe -m 010c1f08 -p /dev/tty.usbserial-P2EEJWO "C:\users\ray\Desktop\SpinEdit\SimpleSerial.binary" > loadp2.out/code]

    Do I need a different binary for Mac? I don't think so...
    Actually, I think I do... It's trying to run under Wine due to .exe extension.
    And, changing filename extension to .APP doesn't work...

    Ah, that might be the problem I had, but after changing to using a symbollic link in .wine/dosdevices
    for the usb device it was happy.
  • RaymanRayman Posts: 9,128
    edited 2019-01-12 - 20:50:43
    It works for me now for small binaries with the symbolic link

    But, big ones, like vga demo, gets stuck downloading. It frees itself after about 10 minutes if you are patient enough.

    Need to figure out how to build native loadp2.
    Then I can load from terminal at least...
    Prop Info and Apps: http://www.rayslogic.com/
  • build loadp2 for Mac using source in spin2gui. Doesn't work though...
    says 2000000 baud is unsupported so tried 230400.
    Still doesn't work, gets stuck after resetting P2.
    Prop Info and Apps: http://www.rayslogic.com/
Sign In or Register to comment.