Hi!
I need your help in debugging. At this moment i have implemented in "libusb-patches" branch the functions for bit-banging. All HW connections are like here: i2c rs232 but without z-diodes and instead RS232 connectors i use this board ch341 board at hackaday in UART mode
Description for connectors from my file in branch:
/**
* ch341a modem connections:
*
* rs232 -> ch341 description
* 1 -> 18 data carrier detect
* 2 -> 6 Rx
* 3 -> 5 Tx
* 4 -> 20 Data Terminal Ready
* 5 Ground
* 6 -> 16 Data Set Ready
* 7 -> 21 Request To Send
* 8 -> 15 Clear To Send
* 9 -> 17 Ring Indicator
**/
And i'm getting from PonyProg followed debugging list (project compiled with enabled debug option):
ch341::Open( 6790 21795 )
ch341::Configure()
Open device [1a86:5523].
Claim interface 0
Device reported its revision [4.03]
SIProgInterface::OpenUSB() = 0 OUT
e2App::OpenBus() ** OpenUSB = 0
e2App::OpenBus() ** SetPower
e2App::OpenBus() ** Reset
I2CBus::Reset() - IN
I2CBus::SetDelay() = 5
I2CBus::Read( 0 , 0x7fffffffc127 , 0 ) - IN
I2CBus::StartRead( 0 , 0x7fffffffc127 , 0 ) - IN
I2CBus::StartRead() = 1 , err_no = 0 - OUT
I2CBus::Read() = 1 , err_no = 0 - OUT
I2CBus::Reset() - OUT
e2AppWinInfo::Read() ** OpenBus = 0
E24xx::Probe( 1 ) - IN
I2CBus::Read( 160 , 0x7fffffffc18b , 1 ) - IN
I2CBus::StartRead( 160 , 0x7fffffffc18b , 1 ) - IN
I2CBus::Read() = 0 , err_no = -13 - OUT
I2CBus::Read( 162 , 0x7fffffffc18b , 1 ) - IN
I2CBus::StartRead( 162 , 0x7fffffffc18b , 1 ) - IN
I2CBus::Read() = 0 , err_no = -13 - OUT
I2CBus::Read( 164 , 0x7fffffffc18b , 1 ) - IN
I2CBus::StartRead( 164 , 0x7fffffffc18b , 1 ) - IN
I2CBus::Read() = 0 , err_no = -13 - OUT
I2CBus::Read( 166 , 0x7fffffffc18b , 1 ) - IN
I2CBus::StartRead( 166 , 0x7fffffffc18b , 1 ) - IN
I2CBus::Read() = 0 , err_no = -13 - OUT
I2CBus::Read( 168 , 0x7fffffffc18b , 1 ) - IN
I2CBus::StartRead( 168 , 0x7fffffffc18b , 1 ) - IN
I2CBus::Read() = 0 , err_no = -13 - OUT
I2CBus::Read( 170 , 0x7fffffffc18b , 1 ) - IN
I2CBus::StartRead( 170 , 0x7fffffffc18b , 1 ) - IN
I2CBus::Read() = 0 , err_no = -13 - OUT
I2CBus::Read( 172 , 0x7fffffffc18b , 1 ) - IN
I2CBus::StartRead( 172 , 0x7fffffffc18b , 1 ) - IN
I2CBus::Read() = 0 , err_no = -13 - OUT
I2CBus::Read( 174 , 0x7fffffffc18b , 1 ) - IN
I2CBus::StartRead( 174 , 0x7fffffffc18b , 1 ) - IN
I2CBus::Read() = 0 , err_no = -13 - OUT
E24xx::Probe() = 0 - OUT
e2App::CloseBus() iniBus= 0x7fffffffd758
I2CBus::Close() busI= 0x7fffffffd398
SIProgInterface::Close() IN *** Inst= true
SerialInterface::CloseSerial()
SIProgInterface::Close() OUT
e2AppWinInfo::Read() = 0 - OUT
CmdWindow->Read -- Error
I'm trying to find the find the bug(s), but possible with more eyes we can find this faster :)
Do not forget under Linux to install the file uart/rules.d/99-ponyprog.rules under /etc/udev/rules.d/ and restart udev for user access to HW
Hi! I need your help in debugging. At this moment i have implemented in "libusb-patches" branch the functions for bit-banging. All HW connections are like here: i2c rs232 but without z-diodes and instead RS232 connectors i use this board ch341 board at hackaday in UART mode Description for connectors from my file in branch:
And i'm getting from PonyProg followed debugging list (project compiled with enabled debug option):
I'm trying to find the find the bug(s), but possible with more eyes we can find this faster :) Do not forget under Linux to install the file uart/rules.d/99-ponyprog.rules under /etc/udev/rules.d/ and restart udev for user access to HW
Originally posted by @eduard-x in https://github.com/lancos/ponyprog/issues/3#issuecomment-476394289