Re: [RESOLVED] Re: timeouts on USB ISP programmer

2022-04-21 Thread Tomek CEDRO
On Thu, Apr 21, 2022 at 7:05 PM Axel Rau wrote: > With the trace, recorded by Joerg Wunsch (author of avrdude), > Hans found the implementation bug in the device. > He wrote to Joerg: > > I see from the Ellisys .png's what is wrong. The device doesn't support > resetting the data-toogle

[RESOLVED] Re: timeouts on USB ISP programmer

2022-04-21 Thread Axel Rau
Hi Hans, Tomek, all Am 07.04.22 um 13:33 schrieb Axel Rau: my DIAMEX-AVR-USB gets timeouts while talking to the target: - - - With the trace, recorded by Joerg Wunsch (author of avrdude), Hans found the implementation bug in the device. He wrote to Joerg: I see from the Ellisys .png's

Re: timeouts on USB ISP programmer

2022-04-12 Thread Tomek CEDRO
On Tue, Apr 12, 2022 at 12:25 PM Axel Rau wrote: > Am 11.04.22 um 17:51 schrieb Tomek CEDRO: > > If that does not work I am out of ideas, sorry, maybe opening an Issue > > on the project github repo could help? > > > https://github.com/avrdudes/avrdude/issues/935 Perfect reporting :-) :-) Hope

Re: timeouts on USB ISP programmer

2022-04-12 Thread Axel Rau
Am 11.04.22 um 17:51 schrieb Tomek CEDRO: If that does not work I am out of ideas, sorry, maybe opening an Issue on the project github repo could help? https://github.com/avrdudes/avrdude/issues/935 Axel -- PGP-Key: CDE74120 ☀ computing @ chaos claudius

Re: timeouts on USB ISP programmer

2022-04-11 Thread Tomek CEDRO
On Mon, Apr 11, 2022 at 7:35 AM Axel Rau wrote: > root@home2l:~ # cat ~/.avrduderc > default_programmer = "diamex-avr-usb"; > programmer > id= "diamex-avr-usb"; > desc = "Diamex AVR USB Programmer"; > type = "stk500v2"; > connection_type = usb; > usbvid = 0x16c0; > usbpid =

Re: timeouts on USB ISP programmer

2022-04-10 Thread Axel Rau
> Am 11.04.2022 um 01:28 schrieb Tomek CEDRO : > > On Mon, Apr 11, 2022 at 1:08 AM Axel Rau wrote: >> Am 10.04.2022 um 23:59 schrieb Tomek CEDRO : >>> Okay, your local `~/.avrduderc` configuration needs an update. Remove >>> all from file and put only this: >>> >>> default_programmer =

Re: timeouts on USB ISP programmer

2022-04-10 Thread Tomek CEDRO
On Mon, Apr 11, 2022 at 1:08 AM Axel Rau wrote: > Am 10.04.2022 um 23:59 schrieb Tomek CEDRO : >> Okay, your local `~/.avrduderc` configuration needs an update. Remove >> all from file and put only this: >> >> default_programmer = "diamex-avr-usb"; >> programmer >> id= "diamex-avr-usb"; >>

Re: timeouts on USB ISP programmer

2022-04-10 Thread Axel Rau
> Am 10.04.2022 um 23:59 schrieb Tomek CEDRO : > > On Sun, Apr 10, 2022 at 10:46 PM Axel Rau wrote: >> root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t -P usb >> >> avrdude: Version 6.4 >> Copyright (c) Brian Dean, http://www.bdmicro.com/ >> Copyright (c) Joerg Wunsch >> >>

Re: timeouts on USB ISP programmer

2022-04-10 Thread Tomek CEDRO
On Sun, Apr 10, 2022 at 10:46 PM Axel Rau wrote: > root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t -P usb > > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright (c) Joerg Wunsch > > System wide configuration file is

Re: timeouts on USB ISP programmer

2022-04-10 Thread Axel Rau
> Am 10.04.2022 um 22:07 schrieb Tomek CEDRO : > > On Sun, Apr 10, 2022 at 6:59 PM Axel Rau wrote: >> root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t >> >> avrdude: Version 6.4 >> Copyright (c) Brian Dean, http://www.bdmicro.com/ >> Copyright (c) Joerg Wunsch >> >>

Re: timeouts on USB ISP programmer

2022-04-10 Thread Tomek CEDRO
On Sun, Apr 10, 2022 at 6:59 PM Axel Rau wrote: > root@home2l:~ # avrdude -c stk500v2 -p t85 -vvv -t > > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright (c) Joerg Wunsch > > System wide configuration file is

Re: timeouts on USB ISP programmer

2022-04-10 Thread Tomek CEDRO
Okay so the KT-LINK (FT2232H based) interface is ready :-) avrdude did not forsee the buffer switch between read / write, that would allow only one pin connection to Tiny10, but connecting with external resistors works too ;-) TDO --[470R]-- TPIDATA --[470]-- TDI Example run below: hexagon%

Re: timeouts on USB ISP programmer

2022-04-10 Thread Tomek CEDRO
On Sun, Apr 10, 2022 at 12:37 PM Axel Rau wrote: > Am 09.04.2022 um 01:39 schrieb Tomek CEDRO : > > Long story short: > > * Put both dip-switches to OFF if you use external board (no VCC > > connection required). They may stay ON if you program "bare" AVR (you > > need to connect VCC, SW1=ON, SW2

Re: timeouts on USB ISP programmer

2022-04-10 Thread Axel Rau
There are also reports of DIAMEX devices not working on linux (in German): https://www.mikrocontroller.net/topic/508937 I should better try to get an original ATmel tool. Unfortunately they no longer produce simple programmers. A > Am

Re: timeouts on USB ISP programmer

2022-04-10 Thread Axel Rau
> Am 09.04.2022 um 01:39 schrieb Tomek CEDRO : > > > Long story short: > * Put both dip-switches to OFF if you use external board (no VCC > connection required). They may stay ON if you program "bare" AVR (you > need to connect VCC, SW1=ON, SW2 OFF=3.3V ON=5V). My switches are always on; my

Re: timeouts on USB ISP programmer

2022-04-09 Thread Tomek CEDRO
Two importan things I have noted while reading AVR datasheets: 1. Programming voltage is 5V. Unless reset is disabled then 12V is required on reset line. This is important if we program bare chip or chip on the board surrounded by components (that may not be 5V tolerant). 2. There are various

Re: timeouts on USB ISP programmer

2022-04-08 Thread Tomek CEDRO
On Fri, Apr 8, 2022 at 11:02 PM Axel Rau wrote: > Am 08.04.2022 um 20:39 schrieb Tomek CEDRO : > > Is it possible to disassemble your interface and take photos of the > electronics inside? We need to make sure what exact chip is inside :-) > https://www.chaos1.de/downloads/diamex_photos.tar.gz

Re: timeouts on USB ISP programmer

2022-04-08 Thread Axel Rau
> Am 08.04.2022 um 20:39 schrieb Tomek CEDRO : > > Is it possible to disassemble your interface and take photos of the > electronics inside? We need to make sure what exact chip is inside :-) https://www.chaos1.de/downloads/diamex_photos.tar.gz Axel --- PGP-Key: CDE74120 ☀ computing

Re: timeouts on USB ISP programmer

2022-04-08 Thread Tomek CEDRO
On Fri, Apr 8, 2022 at 8:02 PM Axel Rau wrote: > Am 08.04.2022 um 18:04 schrieb Tomek CEDRO : > My 1st trial gives this (more trials in 2 hours): > > root@home2l:/ # avrdude -p t85 -t -vvv > > avrdude: Version 6.4 > Copyright (c) Brian Dean, http://www.bdmicro.com/ > Copyright

Re: timeouts on USB ISP programmer

2022-04-08 Thread Axel Rau
Hi Tomek, > Am 08.04.2022 um 18:04 schrieb Tomek CEDRO : > > Here is an example `~/.avrduderc` to try out. It should work out of Thanks a lot. My 1st trial gives this (more trials in 2 hours): root@home2l:/ # avrdude -p t85 -t -vvv avrdude: Version 6.4 Copyright (c) Brian Dean,

Re: timeouts on USB ISP programmer

2022-04-08 Thread Tomek CEDRO
On Fri, Apr 8, 2022 at 6:04 PM Tomek CEDRO wrote: > Good news is that you can only provide `-P usb` if you have one > Programmer Interface and it is defined in the configuration. In your > case if you want to use specific serial number that would probably be > `-P usb:552` parameter. Turns out

Re: timeouts on USB ISP programmer

2022-04-08 Thread Tomek CEDRO
On Fri, Apr 8, 2022 at 6:04 PM Tomek CEDRO wrote: > This is not the problem. It uses "real USB mode" to transport commands > between PC and FT2232 too. Most of those Programmer dongles uses > Virtual-COM-Port-over-USB (aka VCP / USB CDC). No matter if you use > dedicated IC like FT2232H that you

Re: timeouts on USB ISP programmer

2022-04-08 Thread Axel Rau
Hi Tomek, > Am 08.04.2022 um 05:33 schrieb Tomek CEDRO : > > Mystery solved ;-) > > For avrdude `-P` parameter defines the the programmer port __BUT__ (as > obviously stated in man page) if you use `usb:` device then you need > to provide programmer SERIAL NUMBER last bytes not the OS serial

Re: timeouts on USB ISP programmer

2022-04-07 Thread Tomek CEDRO
Mystery solved ;-) For avrdude `-P` parameter defines the the programmer port __BUT__ (as obviously stated in man page) if you use `usb:` device then you need to provide programmer SERIAL NUMBER last bytes not the OS serial port device ;-) If you run avrdude with `-vvv` switch then you get

Re: timeouts on USB ISP programmer

2022-04-07 Thread Tomek CEDRO
On Thu, Apr 7, 2022 at 8:35 PM Tomek CEDRO wrote: > Also I noticed that we have two ports devel/arduino-avrdude-6.3 and > devel/avrdude-6.4. My first remarks on avrdude port were in fact made on devel/arduino-avrdude-6.3, sorry, it may require some more patches to work with Adruino. The port of

Re: timeouts on USB ISP programmer

2022-04-07 Thread Tomek CEDRO
The problem is Diamex does not provide schematics for their interface. That could make things easier to compare with other interfaces to search for similar one. Are you sure it is FT2232H based? LibFTDI as dependency to avrdude may also some from other interfaces :-) But we both have VID:PID

Re: timeouts on USB ISP programmer

2022-04-07 Thread Tomek CEDRO
I have reported an issue on avrdude github project, hope they give us some hints and we all make our devices operational on FreeBSD :-) https://github.com/avrdudes/avrdude/issues/920 Regarding Diamex interface I would try one after another from the list of `-c "?"` until one of them works, then

Re: timeouts on USB ISP programmer

2022-04-07 Thread Tomek CEDRO
Sorry, this time a reply that is subscribed to the list :-) Hello world :-) Short story: * Try `-P usb:/dev/cuaU0` parameter. You need to use `usb:` prefix for the USB adapter. * Did that interface worked well on other OS with avrdude 6.4 (we currently have 6.3 port on FreeBSD)? * I have

Re: timeouts on USB ISP programmer

2022-04-07 Thread Hans Petter Selasky
On 4/7/22 15:46, Axel Rau wrote: Am 07.04.2022 um 15:26 schrieb Hans Petter Selasky : On 4/7/22 14:12, Hans Petter Selasky wrote: On 4/7/22 13:33, Axel Rau wrote: Hi all, my DIAMEX-AVR-USB gets timeouts while talking to the target: - - - root@home2l:/ #avrdude -c stk500v2 -p t85 -P

Re: timeouts on USB ISP programmer

2022-04-07 Thread Hans Petter Selasky
On 4/7/22 15:46, Axel Rau wrote: Hmm. What mewans ’serial’ in this case? Serial is this: iSerialNumber = 0x0003 <19331-49101-552> usb:19331-49101-552 --HPS

Re: timeouts on USB ISP programmer

2022-04-07 Thread Axel Rau
> Am 07.04.2022 um 15:26 schrieb Hans Petter Selasky : > > On 4/7/22 14:12, Hans Petter Selasky wrote: >> On 4/7/22 13:33, Axel Rau wrote: >>> Hi all, >>> >>> my DIAMEX-AVR-USB gets timeouts while talking to the target: >>> - - - >>> root@home2l:/ #avrdude -c stk500v2 -p t85 -P /dev/cuau1

Re: timeouts on USB ISP programmer

2022-04-07 Thread Hans Petter Selasky
On 4/7/22 14:12, Hans Petter Selasky wrote: On 4/7/22 13:33, Axel Rau wrote: Hi all, my DIAMEX-AVR-USB gets timeouts while talking to the target: - - - root@home2l:/ #    avrdude -c stk500v2 -p t85 -P /dev/cuau1 -t -v -i 10 avrdude: Version 6.4   Copyright (c) Brian Dean,

Re: timeouts on USB ISP programmer

2022-04-07 Thread Hans Petter Selasky
On 4/7/22 13:33, Axel Rau wrote: Hi all, my DIAMEX-AVR-USB gets timeouts while talking to the target: - - - root@home2l:/ # avrdude -c stk500v2 -p t85 -P /dev/cuau1 -t -v -i 10 avrdude: Version 6.4 Copyright (c) Brian Dean, http://www.bdmicro.com/ Copyright (c) Joerg Wunsch