]> rtime.felk.cvut.cz Git - sojka/sterm.git/commit
Add command mode
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 19 Aug 2015 22:00:28 +0000 (00:00 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 19 Aug 2015 22:09:13 +0000 (00:09 +0200)
commit47c1c50b804985913e7ca235af7bac9754354fb9
tree157d129b912cda3307323d9438158eee16ea70bf
parent4dc3c12cffaeb950909170185982c712e1a872f4
Add command mode

This mode is entered before serial line begins. Currently implemented
commands are: dtr, rst and go. "dtr" and "rst" are the same as -d and -r
options, "go" ends command mode and enters serial line interaction.

This is intended for use by novaboot in this way: Novaboot connects to
the serial line to be sure that the target is not occupied. Then it
copies the images, which can take long time, and after that it sends
reset command to reset the target. Without this, the target is reset (by
-d or -r) before copying the images and after that it may be too late to
communicate with the bootloader.
sterm.c