Auto starting FemtoBasic programs on my StickBasic propeller
Duane C. Johnson
Posts: 955
To review:
1. My micros are essentially the same as the PropSticks, with no peripheral hardware except for the RS-232 and 32k EEPROM on pins [31..28].
2. While I have run other languages I prefer the FemtoBasic interpreter.
3. No SD card.
I've reviewed the archives and can't see how to autostart a Femto program in my minimalist system.
Yes, I can save a program to the EEPROM and load it again but it doesn't startup on its own.
Am I missing something?
Do I need to change something in FemtoBasic.spin?
What I would like it to do:
1. Start running the saved Femto program after a hard reset or after power up.
2. Drop into command mode after receiving an ESC soft reset.
This might be a separate issue:
I used Phil's nice unload_prop.exe to copy the EEPROM to my PC. This appears to work well for the basic code. However, when unloading the EEPROM that has a saved program in it it generates a .eeprom file. But when using spin to upload to the EEPROM it complains that there is:
"contains data after code space that was not generated by the Propeller Tool. This data will not be displayed or downloaded."
And after the upload this error:
"RAM checksum error on COM5." (COM5 is my current USB RS-232 port.)
I have confirmed Spin actually did not upload to the EEPROM. The old contents is still there. The proof is "forth" was there before the attempted upload and was still there afterward.
Is it possible there are settings in Spin that need to be changed?
1. My micros are essentially the same as the PropSticks, with no peripheral hardware except for the RS-232 and 32k EEPROM on pins [31..28].
2. While I have run other languages I prefer the FemtoBasic interpreter.
3. No SD card.
I've reviewed the archives and can't see how to autostart a Femto program in my minimalist system.
Yes, I can save a program to the EEPROM and load it again but it doesn't startup on its own.
Am I missing something?
Do I need to change something in FemtoBasic.spin?
What I would like it to do:
1. Start running the saved Femto program after a hard reset or after power up.
2. Drop into command mode after receiving an ESC soft reset.
This might be a separate issue:
I used Phil's nice unload_prop.exe to copy the EEPROM to my PC. This appears to work well for the basic code. However, when unloading the EEPROM that has a saved program in it it generates a .eeprom file. But when using spin to upload to the EEPROM it complains that there is:
"contains data after code space that was not generated by the Propeller Tool. This data will not be displayed or downloaded."
And after the upload this error:
"RAM checksum error on COM5." (COM5 is my current USB RS-232 port.)
I have confirmed Spin actually did not upload to the EEPROM. The old contents is still there. The proof is "forth" was there before the attempted upload and was still there afterward.
Is it possible there are settings in Spin that need to be changed?
Comments
Bean
That worked great!
Hard reset and power up reset both load and run the program.
And the soft ESC reset correctly drops to command mode.
Thanks!
Are there any restrictions on what can be put into that string?
How long can it be?
Such as presetting pins, or settings in the propeller?