I’m attempting to get a default app running on the camera without it being started via the IDE. My ultimate goal is to establish a data stream from the camera, via a serial connection, to a python script when it is powered up. I intend to do downstream manipulations of that data and want to offload it from the camera.
One issue:
When I attempt to Tools > Reset OpenMV Cam, I get an error alert: Failed to eject “A:/”!
The timestamp on the main.py file is current, so I’m sure the Tools > “Save open script to MV CAM” was successful. The code in the A:/ RAMdisk file is also correct.
If main.py is supposed to run automatically when restarted, why might it not run? As an indicator, I have set an LED to turn on when running, but it doesn’t turn on:
**** snip *********
green_led = pyb.LED(2)
…
pyb.LED.on(green_led)
**** snip *********
It does function when initiated via the IDE, but not on its own before starting the IDE.
If I can’t be assured that the script automatically starts, then I can’t proceed with the downstream development.