parallaxinc / Propeller-Tool

Propeller Tool software for Windows
MIT License
9 stars 2 forks source link

FSRW test goes sideways after load.. #21

Closed GitRayman closed 4 years ago

GitRayman commented 4 years ago

The fsrw test#2 code from here: http://forums.parallax.com/discussion/171619/

Appears to compile and load, but something goes wrong immediately after loading and appears to reboot...

This file works with both PNut and Fastspin.

PropGit commented 4 years ago

Have you tried loading to flash to see if it runs properly after the apparent reboot? Just curious; it should work just like with PNut.

This is one the P2-ES Rev B with a prewritten microSD card inserted?

GitRayman commented 4 years ago

I played with the jumpers to load to flash and the boot from flash... Same thing happens when booting from flash. I guess that means it compiled wrong. Not sure how that is possible. Works with PNut...

GitRayman commented 4 years ago

I can see it load up about 1/4 of the VGA screen from the bitmap on the uSD card and then stop.

So, it works, but only for a while... Then, something goes wrong...

GitRayman commented 4 years ago

All the files needed to reproduce are in the top link. Just copy bitmap2.bmp to uSD and set all jumpers off, except P59 pullup.

GitRayman commented 4 years ago

Ok, yes, looks like file directive is broke. Changing to this works:

orgh
BitmapFile 'something to show before load is complete and also storage for bitmap 'file "TestPat1.bmp" '640 x 480, 8bpp bitmap byte 0[350000] 'a little padding just in case metadata and/or block size makes SD file bigger

PropGit commented 4 years ago

@GitRayman I believe I have fixed it. Can you retest your fsrw test#2.spin2 object, and any other examples you have, to verify? Use the attached version of Propeller Tool v2.1.1.0-Alpha.

Propeller_v2.1.1.0-Alpha.zip

GitRayman commented 4 years ago

Thanks. Just tried test#2.spin2 and it works!

PropGit commented 4 years ago

You're welcome, and thank you too. The problem was something I had marked as questionable in code but failed to get back to before first alpha, and the result of the error showed up in a way I didn't expect. I'm glad to get confirmation that it works now. They'll be another official Alpha on 6/17 that includes this fix.

PropGit commented 4 years ago

This is included in v2.2.0.0-Alpha.