totalspectrum / flexprop

Simple GUI for Propeller development (both P1 and P2)
Other
38 stars 15 forks source link

flexprop version 5.9.4 doesn't load to P2 Edge on macOS without "-SINGLE" option #48

Closed dgately closed 2 years ago

dgately commented 2 years ago

When trying to load any compiled binary during "Compile & Run on P2", a timeout error returns unless the "-SINGLE" option is added to the Run Command line in Configure Commands panel... This happens on .bas and .spin2 compile/run attempts.

$ /Users/altergator/flexprop//bin/loadp2 -p /dev/cu.usbserial-A601RZ6G -b230400 /Users/altergator/Desktop/rayTest.binary -9/Users/altergator/Desktop -k -T; osascript -e 'tell application "flexprop.mac" to activate'; exit 0 ERROR: timeout waiting for initial checksum: got -1 Try increasing the FIFO setting if not large enough for your setup Press enter to continue...

Attempt with "-SINGLE" option:

$ /Users/altergator/flexprop//bin/loadp2 -p /dev/cu.usbserial-A601RZ6G -b230400 /Users/altergator/Desktop/rayTest.binary -9/Users/altergator/Desktop -k -T -SINGLE; osascript -e 'tell application "flexprop.mac" to activate'; exit 0 ( Entering terminal mode. Press Ctrl-] or Ctrl-Z to exit. )

totalspectrum commented 2 years ago

Thanks for the bug report. I don't have a P2 Edge to test with, unfortunately. Do you happen to know how large of a FIFO is required to make loadp2 work?

dgately commented 2 years ago

Is there a command line option to try different sized FIFO buffers? I'm using the current Prop Plug Rev E (with: FTDI FT231X USB bridge IC)

totalspectrum commented 2 years ago

Yes, I think it's "-FIFO n", where n is the number of bytes. So you could try "-FIFO 1024" or "-FIFO 2048" and see if one of those helps.

Thanks

dgately commented 2 years ago

OK, tried "-FIFO 1024" and it succeeds loading RAM as well as FLASH! Looks like 512 is default at this time. Should the default be set to 1024? Or should flexprop's command configuration change or get a FIFO option?

totalspectrum commented 2 years ago

I'll change the default to 1024. Thanks for checking this!