helena-project / imix

imix Low-Power IoT Research Platform
32 stars 6 forks source link

FTDI DTR connected directly to RESET #15

Closed shaneleonard closed 7 years ago

shaneleonard commented 7 years ago

When connected over the FTDI USB and attempting to program over JLink, JLink complains that it cannot pull RESET low. This is due to the fact that the DTR pin of the FTDI chip is connected directly to RESET instead of being connected via a pullup resistor. Adding a 1K resistor between DTR and RESET fixed this issue on the hail board and fixes it on imix as well. See #13.


Steps to reproduce the error:

  1. Power board using the FTDI USB port
  2. Connect over JLinkExe
  3. Run the reset command (r) in JLinkExe after connecting

JLinkExe will output the following warning:

**************************
WARNING: RESET (pin 15) high, but should be low. Please check target hardware.
**************************

When the resistor is added and the above procedure is repeated, the warning goes away and instead we get a successful result:

Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Found SWD-DP with ID 0x2BA01477
shaneleonard commented 7 years ago

Fixed for v1.3.