devehe / stm32flash

Automatically exported from code.google.com/p/stm32flash
1 stars 7 forks source link

Add target auto-reset with TX-break and RTS/DTR pulse #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is it possible to support dev.boards with auto-reset using TX-break and RTS/DTR 
pulse signals ?

Original issue reported on code.google.com by god...@gmail.com on 26 Sep 2011 at 8:40

GoogleCodeExporter commented 9 years ago
It is if you explain the procedure required to reset the board.

Original comment by ge...@spacevs.com on 4 Oct 2011 at 2:49

GoogleCodeExporter commented 9 years ago
  Some STM32 boards have possibility to reset in bootloader mode by setting RTS/DTR low or sending TX line break for 300..500ms before communication (such reprogramming not require manual reset, similar to Arduino auto-reset).

  So I suggest adding next actions before communication:
- set RTS,DTR to active state, set TX line to Break state;
- wait 300..500ms;
- set RTS,DTR to passive state, release TX line;
- wait for 20..100ms;
- proceed with communication.

Original comment by edar...@gmail.com on 4 Oct 2011 at 3:03