Flashforth 5 and a PIC18f4550 - my program runs reliably from the terminal via USB. I can create a turnkey app. which runs when I press reset. It will only do that if the USB port is connected to my laptop, though. I can pull the USB cable out once it's running and it keeps going reliably.
If I switch on with no USB connected, the program does not run. I plug the USB in and have to press one key on the terminal and only then the program starts.
The program runs an interrupt driven shaft encoder and I use multitasking to drive an LCD, read a button and drive a stepper motor.
The program makes no attempt to read from the terminal input. I'm thinking of fitting a bluetooth module and a serial link to eliminate USB.
Any hints please?
Last edit: Bob Edwards 2020-07-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Mikael, I'll get the latest version and retry. I'm a ham radio constructor and myself and a friend are building 1.6 metre diameter magnetic loop antennas. These are tuned with a motorized capacitor and Flashforth is in the controller back in the house. As always I enjoy making things with Flashforth.
Flashforth 5 and a PIC18f4550 - my program runs reliably from the terminal via USB. I can create a turnkey app. which runs when I press reset. It will only do that if the USB port is connected to my laptop, though. I can pull the USB cable out once it's running and it keeps going reliably.
If I switch on with no USB connected, the program does not run. I plug the USB in and have to press one key on the terminal and only then the program starts.
The program runs an interrupt driven shaft encoder and I use multitasking to drive an LCD, read a button and drive a stepper motor.
The program makes no attempt to read from the terminal input. I'm thinking of fitting a bluetooth module and a serial link to eliminate USB.
Any hints please?
Last edit: Bob Edwards 2020-07-06
It should work.
I am away for some weeks so I cannot test now.
I remember introducing that kind of bug and possibly fixing it. Are you using the latest version of FF ?
If you make simple led blinker and start it up from turnkey. Can you then start the blinker without a USB cable attached?
Your problem exist in all FF versions after 6.1.2019 and before 13.6.2019.
It was fixed 13.6.2019.
Thanks Mikael, I'll get the latest version and retry. I'm a ham radio constructor and myself and a friend are building 1.6 metre diameter magnetic loop antennas. These are tuned with a motorized capacitor and Flashforth is in the controller back in the house. As always I enjoy making things with Flashforth.
Mikael,
Just to confirm with the latest Flashforth revision, my program works fine turn-key without the USB cable in. Thanks again for the tip.