Re: Problem viewing the output in Javakit (setDefaultStream()/resetDefaultStream())

Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Arrizabalaga, Saioa wrote:
> 1.-First of all, I have the call to TINIOS.setDefaultStream() in the flashable application (I perfectly see the output in Javakit).
> 2.-Before starting the new process, I call TINIOS.resetDefaultStream() in the flashable application (so that it doesn´t use the "serial0" any more)
> 3.-In the new process, I call TINIOS.setDefaultStream(), but with no success.

The function you are calling is Debug.setDefaultStreams() and is left 
over from early firmware revisions.  It has a limitation that it only 
works on the first Java process started.  If you wish to use the serial 
port from you application, you should use the javax.comm interface and 
ignore this function.


-- 
--
Bryan Armstrong
bryan.armstrong-6tN4nzCoH/[email protected]


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.