PyFixate / Fixate

Framework for hardware test fixtures and automatic test environments
MIT License
22 stars 16 forks source link

add set_dtr and clr_dtr methods needed for J504 #195

Closed Dylan-Cahill closed 2 months ago

Dylan-Cahill commented 2 months ago

Development of test script for Jig 504 requires DUT MCU to be held in reset whilst checking voltage levels of DUT power supplies prior to programming. The following methods have been added to ftdi.py:

Documentation source: https://ftdichip.com/wp-content/uploads/2020/08/D2XX_Programmers_GuideFT_000071.pdf

Dylan-Cahill commented 2 months ago

I should have added, FT_SetDtr and FT_ClrDtr allow the DTR pin on FTDI chips to be set HIGH and LOW respectively.

josh-marshall-amp commented 2 months ago

@clint-lawrence it looks fine to me, but I have zero knowledge of ftdi driver internals... so pushing this to you

josh-marshall-amp commented 2 months ago

DTR is really a function of using the IC as a uart and can be accessed using pyserial.

Good point.

@Dylan-Cahill does serial.Serial.dtr do the job?

Dylan-Cahill commented 2 months ago

DTR is really a function of using the IC as a uart and can be accessed using pyserial.

Good point.

@Dylan-Cahill does serial.Serial.dtr do the job?

Clint is correct again, and I can accomplish the same results with pyserial :) image