FlexProp Spin2 possible problems
Rsadeika
Posts: 3,837
This is the results of trying to compile, using FlexProp GUI, a Spin2 file, jm_dhtxx_demo.spin2. Below I have included the zip file that Jon provided.
I wanted to run the Spin2 code visually to see what the program looked like, before I started to port it to FlexBasic.
Ray
I wanted to run the Spin2 code visually to see what the program looked like, before I started to port it to FlexBasic.
Ray
"D:/flexprop/bin/flexspin" -2 -l -D_BAUD=230400 -O1 -I "D:/flexprop/include" "D:/programs/flexprop/spin2/cm2302/jm_dhtxx_demo.spin2"
Propeller Spin/PASM Compiler 'FlexSpin' (c) 2011-2021 Total Spectrum Software Inc.
Version 5.0.6 Compiled on: Jan 10 2021
jm_dhtxx_demo.spin2
|-jm_dhtxx.spin2
|-jm_fullduplexserial.spin2
|-|-jm_nstr.spin2
|-jm_ansi.spin2
/programs/flexprop/spin2/cm2302/jm_dhtxx.spin2:163: error: Cannot handle expression yet
/programs/flexprop/spin2/cm2302/jm_dhtxx.spin2:200: error: Cannot handle expression yet
/programs/flexprop/spin2/cm2302/jm_dhtxx.spin2:278: warning: ret instruction in inline asm converted to jump to end of asm
/programs/flexprop/spin2/cm2302/jm_dhtxx.spin2:282: warning: ret instruction in inline asm converted to jump to end of asm
/programs/flexprop/spin2/cm2302/jm_dhtxx.spin2:287: warning: ret instruction in inline asm converted to jump to end of asm
/programs/flexprop/spin2/cm2302/jm_dhtxx.spin2:291: warning: ret instruction in inline asm converted to jump to end of asm
/programs/flexprop/spin2/cm2302/jm_dhtxx.spin2:297: error: Cannot handle this condition on instruction in inline asm
/programs/flexprop/spin2/cm2302/jm_dhtxx.spin2:301: error: Cannot handle this condition on instruction in inline asm
child process exited abnormally
Finished at Mon Jan 11 09:33:29 2021
Comments
It took about 2 minutes to modify the code to run in FlexProp. I'm documenting the changes here to assist @ersmith.
This is a known issue that was reported a few days ago.
Syntax changes: ...is changed to ...for FlexProp.
...changes to ...for FlexProp.
Visual proof is attached. Make sure you add -T to the Run command line.