stephendpmurphy / shost

💻 shost - GUI, CLI and static library for connecting to FTDI MPSSE capable devices
MIT License
2 stars 1 forks source link

I²C: FT2232H receiving ACK while the slave did not ACKed #12

Open NoeelMoeskops opened 2 years ago

NoeelMoeskops commented 2 years ago

During testing of my branch I noticed that when there is no slave connected to the FT2232H and when checking for an ACK with (GetAck(mpsse) == ACK) returns true even when no I²C device is attached. This will require some further investigation. It did work before though (before the C++ part, and I did not alter the write/read code). So not sure why it suddenly stopped working.

stephendpmurphy commented 2 years ago

Sounds good. I don't know if you noticed, but I do have a C++ GDB launch config added if you are using VScode. If you look in .vscode > launch.json you'll see an args array. You can just fill that out with your "options". Once filled out you can start a debugging session by pressing F5

"args": ["i2c", "-x", "w"]