I'm having real problems achieving the above on a windows platform. I'm trying to provide firmware uploads in an automated production environment. I've had no problem achieving the same for the other boards in our system (via JTAG)
When I run this application from within my python code using the subprocess module I get the following error:
Unhandled Exception: System.InvalidOperationException: Cannot see if a key has been pressed when either application does not have a console or when console input has been redirected from a file. Try Console.In.Peek.
and sfh_OMAP-L138 then crashes.
As a workaround to this I tried running in a new terminal by using start, this works OK BUT I need the output logged. However, whenever I try to redirect the output to a file using >> or wintee I get the following error:
The handle is invalid. Interfacing to the OMAP-L138 via UART failed.
and the upload fails.