Menu

My flashforth turnkey program only runs if USB plugged in

2020-07-06
2020-07-08
  • Bob Edwards

    Bob Edwards - 2020-07-06

    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
  • Mikael Nordman

    Mikael Nordman - 2020-07-07

    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?

     
  • Mikael Nordman

    Mikael Nordman - 2020-07-07

    Your problem exist in all FF versions after 6.1.2019 and before 13.6.2019.
    It was fixed 13.6.2019.

     
  • Bob Edwards

    Bob Edwards - 2020-07-07

    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.

     
  • Bob Edwards

    Bob Edwards - 2020-07-08

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.