Re: [avrdude-dev] Using a FT232HL in slow bitbang mode

2013-06-19 Thread René Liebscher

Hi,

as this was now tested and in most cases work, sometimes there are usb 
problems at verifying using an FT232H. But not always, so I checked it 
in so everybody can test it now.


Kind regards

René Liebscher


On 17.06.2013 22:23, René Liebscher wrote:

Hi,

there was still a problem in the first patch, so it reads the 
samecontent for bitbanging and mpsse after the patch but this was both 
wrong compared to the state before.


This is now fixed, eeprom should now work, and it uses mpsse when the 
correct pins are used and falls back to bitbanging when using other pins.


Any comments?


René Liebscher


On 16.06.2013 23:03, René Liebscher wrote:

Hi,

for a first try you might test the attached patch. It modifies 
avrftdi (not ftdi_syncbb, so you have to modify your conf entry).


It changes the avrftdi to use bitbanging over mpsse (using the set 
bits commands) and disables the pin check for now. (eeprom writing 
might not work.)


With my FT2232D it reads an ATmega168 in 27s (which was 4s using 
mpsse). However I do not own any FT232H hardware so I can not do any 
further checks.



Kind regards

René Liebscher


On 15.06.2013 22:59, Ing. Daniel Rozsnyó wrote:

Hi,
  would somebody on this list try to implement this? We can lend the 
hardware for testing if required and even offer some compensation 
/payment/.


  Would be nice to have a really universal soft-BB for FTDI chips.

Thanks,

Daniel Rozsnyo


On 06/06/2013 11:25 PM, René Liebscher wrote:

Hi,

currently only FT232R/FT245R are supported, for other chips one had to
extend this module.

René


On 06.06.2013 21:44, Ing. Daniel Rozsnyó wrote:

Hi,
  how can I make use of pins AC3~AC7 on a FT232HL for bitbang
programming an AVR?

  I naturally tried to count the pins in order AD0..AD7,AC0-AC9, but
avrdude is complaining:


$ avrdude -p atmega32 -c prob-hand -P usb -b 9600
avrdude: BUFF: Following pins are not valid pins for this 
function: 16
avrdude: RESET: Following pins are not valid pins for this 
function: 12

avrdude: SCK: Following pins are not valid pins for this function: 13
avrdude: MOSI: Following pins are not valid pins for this 
function: 15
avrdude: MISO: Following pins are not valid pins for this 
function: 14

 Pin assignment  : 0..7 = DBUS0..7
   VCC =  (not used)
   BUFF=  16
   RESET   =  12
   SCK =  13
   MOSI=  15
   MISO=  14
   ERR LED =  (not used)
   RDY LED =  (not used)
   PGM LED =  (not used)
   VFY LED =  (not used)

avrdude done.  Thank you.


CONFIG:


programmer
  id= prob-hand;
  type  = ftdi_syncbb;
  connection_type = usb;
  usbvid = 0x0403;
  usbpid = 0x6014;
  reset = 12;
  sck   = 13;
  miso  = 14;
  mosi  = 15;
  buff  = 16;
;


Is there a trick or the support is just not there?

Thanks,

Daniel

___





___
avrdude-dev mailing list
avrdude-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avrdude-dev


Re: [avrdude-dev] Using a FT232HL in slow bitbang mode

2013-06-17 Thread René Liebscher

Hi,

there was still a problem in the first patch, so it reads the 
samecontent for bitbanging and mpsse after the patch but this was both 
wrong compared to the state before.


This is now fixed, eeprom should now work, and it uses mpsse when the 
correct pins are used and falls back to bitbanging when using other pins.


Any comments?


René Liebscher


On 16.06.2013 23:03, René Liebscher wrote:

Hi,

for a first try you might test the attached patch. It modifies avrftdi 
(not ftdi_syncbb, so you have to modify your conf entry).


It changes the avrftdi to use bitbanging over mpsse (using the set 
bits commands) and disables the pin check for now. (eeprom writing 
might not work.)


With my FT2232D it reads an ATmega168 in 27s (which was 4s using 
mpsse). However I do not own any FT232H hardware so I can not do any 
further checks.



Kind regards

René Liebscher


On 15.06.2013 22:59, Ing. Daniel Rozsnyó wrote:

Hi,
  would somebody on this list try to implement this? We can lend the 
hardware for testing if required and even offer some compensation 
/payment/.


  Would be nice to have a really universal soft-BB for FTDI chips.

Thanks,

Daniel Rozsnyo


On 06/06/2013 11:25 PM, René Liebscher wrote:

Hi,

currently only FT232R/FT245R are supported, for other chips one had to
extend this module.

René


On 06.06.2013 21:44, Ing. Daniel Rozsnyó wrote:

Hi,
  how can I make use of pins AC3~AC7 on a FT232HL for bitbang
programming an AVR?

  I naturally tried to count the pins in order AD0..AD7,AC0-AC9, but
avrdude is complaining:


$ avrdude -p atmega32 -c prob-hand -P usb -b 9600
avrdude: BUFF: Following pins are not valid pins for this function: 16
avrdude: RESET: Following pins are not valid pins for this 
function: 12

avrdude: SCK: Following pins are not valid pins for this function: 13
avrdude: MOSI: Following pins are not valid pins for this function: 15
avrdude: MISO: Following pins are not valid pins for this function: 14
 Pin assignment  : 0..7 = DBUS0..7
   VCC =  (not used)
   BUFF=  16
   RESET   =  12
   SCK =  13
   MOSI=  15
   MISO=  14
   ERR LED =  (not used)
   RDY LED =  (not used)
   PGM LED =  (not used)
   VFY LED =  (not used)

avrdude done.  Thank you.


CONFIG:


programmer
  id= prob-hand;
  type  = ftdi_syncbb;
  connection_type = usb;
  usbvid = 0x0403;
  usbpid = 0x6014;
  reset = 12;
  sck   = 13;
  miso  = 14;
  mosi  = 15;
  buff  = 16;
;


Is there a trick or the support is just not there?

Thanks,

Daniel

___


___
avrdude-dev mailing list
avrdude-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avrdude-dev


Index: avrftdi_private.h
===
--- avrftdi_private.h	(Revision 1183)
+++ avrftdi_private.h	(Arbeitskopie)
@@ -78,8 +78,8 @@
 	int pin_limit;
 	/* internal RX buffer of the device. needed for INOUT transfers */
 	int rx_buffer_size;
-	/* pin checklist. */
- struct pin_checklist_t pin_checklist[N_PINS];
+	/* use bitbanging instead of mpsse spi */
+	bool use_bitbanging;
 } avrftdi_t;
 
 void avrftdi_log(int level, const char * func, int line, const char * fmt, ...);
Index: pindefs.c
===
--- pindefs.c	(Revision 1183)
+++ pindefs.c	(Arbeitskopie)
@@ -201,7 +201,7 @@
  * @param[in] size the number of entries in checklist
  * @returns 0 if all pin definitions are valid, -1 otherwise
  */
-int pins_check(const struct programmer_t * const pgm, const struct pin_checklist_t * const checklist, const int size) {
+int pins_check(const struct programmer_t * const pgm, const struct pin_checklist_t * const checklist, const int size, bool output) {
   static const struct pindef_t no_valid_pins = {{0}, {0}}; // default value if check list does not contain anything else
   int rv = 0; // return value
   int pinname; // loop counter through pinnames
@@ -253,46 +253,53 @@
   already_used_all[segment] |= pgm-pin[pinname].mask[segment];
 }
 if(invalid) {
-  fprintf(stderr,
-  %s: %s: Following pins are not valid pins for this function: %s\n,
-  progname, avr_pin_name(pinname), pinmask_to_str(invalid_used));
-  if(verbose = 2) {
+  if(output) {
 fprintf(stderr,
-%s: %s: Valid pins for this function are: %s\n,
-progname, avr_pin_name(pinname), pinmask_to_str(valid_pins-mask));
+%s: %s: Following pins are not valid pins for this function: %s\n,
+progname, avr_pin_name(pinname), pinmask_to_str(invalid_used));
+if(verbose = 2) {
+  fprintf(stderr,
+  %s: %s: Valid pins for this function are: %s\n,
+  progname, avr_pin_name(pinname), pinmask_to_str(valid_pins-mask));
+}
   }
   is_ok 

Re: [avrdude-dev] Using a FT232HL in slow bitbang mode

2013-06-15 Thread Ing. Daniel Rozsnyó

Hi,
  would somebody on this list try to implement this? We can lend the 
hardware for testing if required and even offer some compensation /payment/.


  Would be nice to have a really universal soft-BB for FTDI chips.

Thanks,

Daniel Rozsnyo


On 06/06/2013 11:25 PM, René Liebscher wrote:

Hi,

currently only FT232R/FT245R are supported, for other chips one had to
extend this module.

René


On 06.06.2013 21:44, Ing. Daniel Rozsnyó wrote:

Hi,
  how can I make use of pins AC3~AC7 on a FT232HL for bitbang
programming an AVR?

  I naturally tried to count the pins in order AD0..AD7,AC0-AC9, but
avrdude is complaining:


$ avrdude -p atmega32 -c prob-hand -P usb -b 9600
avrdude: BUFF: Following pins are not valid pins for this function: 16
avrdude: RESET: Following pins are not valid pins for this function: 12
avrdude: SCK: Following pins are not valid pins for this function: 13
avrdude: MOSI: Following pins are not valid pins for this function: 15
avrdude: MISO: Following pins are not valid pins for this function: 14
 Pin assignment  : 0..7 = DBUS0..7
   VCC =  (not used)
   BUFF=  16
   RESET   =  12
   SCK =  13
   MOSI=  15
   MISO=  14
   ERR LED =  (not used)
   RDY LED =  (not used)
   PGM LED =  (not used)
   VFY LED =  (not used)

avrdude done.  Thank you.


CONFIG:


programmer
  id= prob-hand;
  type  = ftdi_syncbb;
  connection_type = usb;
  usbvid = 0x0403;
  usbpid = 0x6014;
  reset = 12;
  sck   = 13;
  miso  = 14;
  mosi  = 15;
  buff  = 16;
;


Is there a trick or the support is just not there?

Thanks,

Daniel

___
avrdude-dev mailing list
avrdude-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avrdude-dev



___
avrdude-dev mailing list
avrdude-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avrdude-dev



___
avrdude-dev mailing list
avrdude-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avrdude-dev


Re: [avrdude-dev] Using a FT232HL in slow bitbang mode

2013-06-06 Thread René Liebscher

Hi,

currently only FT232R/FT245R are supported, for other chips one had to 
extend this module.


René


On 06.06.2013 21:44, Ing. Daniel Rozsnyó wrote:

Hi,
  how can I make use of pins AC3~AC7 on a FT232HL for bitbang 
programming an AVR?


  I naturally tried to count the pins in order AD0..AD7,AC0-AC9, but 
avrdude is complaining:



$ avrdude -p atmega32 -c prob-hand -P usb -b 9600
avrdude: BUFF: Following pins are not valid pins for this function: 16
avrdude: RESET: Following pins are not valid pins for this function: 12
avrdude: SCK: Following pins are not valid pins for this function: 13
avrdude: MOSI: Following pins are not valid pins for this function: 15
avrdude: MISO: Following pins are not valid pins for this function: 14
 Pin assignment  : 0..7 = DBUS0..7
   VCC =  (not used)
   BUFF=  16
   RESET   =  12
   SCK =  13
   MOSI=  15
   MISO=  14
   ERR LED =  (not used)
   RDY LED =  (not used)
   PGM LED =  (not used)
   VFY LED =  (not used)

avrdude done.  Thank you.


CONFIG:


programmer
  id= prob-hand;
  type  = ftdi_syncbb;
  connection_type = usb;
  usbvid = 0x0403;
  usbpid = 0x6014;
  reset = 12;
  sck   = 13;
  miso  = 14;
  mosi  = 15;
  buff  = 16;
;


Is there a trick or the support is just not there?

Thanks,

Daniel

___
avrdude-dev mailing list
avrdude-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avrdude-dev



___
avrdude-dev mailing list
avrdude-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avrdude-dev