From: Jan K. <kro...@ho...> - 2018-12-13 10:10:16
|
Hi, Flashing the Arduino Uno is giving no problems. Try to flash the Leonardo. I’m using the Pololu AVR programmer v2.1 This is my command. MacBook-Pro-van-Jan-10:avrdude jankromhout$ avrdude -p m32u4 -c avrispv2 -P /dev/tty.usbmodem00230362 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m -U flash:w:leonardo.hex:i -U eeprom:w:leonardo.eep.hex:i It isn’t working Can someone help me with this problem. Cheers, Jan |
From: Tristan W. <ho...@tj...> - 2018-12-13 11:25:29
|
Jan, What error is avrdude reporting? Kind regards, Tristan On 13Dec18 10:09, Jan Kromhout wrote: > Hi, > > Flashing the Arduino Uno is giving no problems. > > Try to flash the Leonardo. > I’m using the Pololu AVR programmer v2.1 > This is my command. > > MacBook-Pro-van-Jan-10:avrdude jankromhout$ avrdude -p m32u4 -c avrispv2 -P /dev/tty.usbmodem00230362 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m -U flash:w:leonardo.hex:i -U eeprom:w:leonardo.eep.hex:i > > It isn’t working > Can someone help me with this problem. > > > Cheers, > > Jan > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |
From: Jan K. <kro...@ho...> - 2018-12-13 11:34:57
|
Tristan, This is what I get Perhaps the fuse values are incorrect! MacBook-Pro-van-Jan-10:avrdude jankromhout$ avrdude -p m32u4 -c avrispv2 -P /dev/tty.usbmodem00230362 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m -U flash:w:leonardo.hex:i -U eeprom:w:leonardo.eep.hex:i avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9587 (probably m32u4) avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "0xFF" avrdude: writing efuse (1 bytes): Writing | ################################################## | 100% 0.01s avrdude: 1 bytes of efuse written avrdude: verifying efuse memory against 0xFF: avrdude: load data efuse data from input file 0xFF: avrdude: input file 0xFF contains 1 bytes avrdude: reading on-chip efuse data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: verification error, first mismatch at byte 0x0000 0xcf != 0xff avrdude: verification error; content mismatch avrdude: safemode: efuse changed! Was ff, and is now cf Would you like this fuse to be changed back? [y/n] Op 13 dec. 2018, om 12:24 heeft Tristan Williams <ho...@tj...<mailto:ho...@tj...>> het volgende geschreven: Jan, What error is avrdude reporting? Kind regards, Tristan On 13Dec18 10:09, Jan Kromhout wrote: Hi, Flashing the Arduino Uno is giving no problems. Try to flash the Leonardo. I’m using the Pololu AVR programmer v2.1 This is my command. MacBook-Pro-van-Jan-10:avrdude jankromhout$ avrdude -p m32u4 -c avrispv2 -P /dev/tty.usbmodem00230362 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m -U flash:w:leonardo.hex:i -U eeprom:w:leonardo.eep.hex:i It isn’t working Can someone help me with this problem. Cheers, Jan _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amf...@li...<mailto:Amf...@li...> https://lists.sourceforge.net/lists/listinfo/amforth-devel _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amf...@li...<mailto:Amf...@li...> https://lists.sourceforge.net/lists/listinfo/amforth-devel |
From: Peter C. H. <Pet...@un...> - 2018-12-13 16:52:38
|
Jan, Have a look at this: https://github.com/arduino/Arduino/pull/5182 <https://github.com/arduino/Arduino/pull/5182> At some stage AVRDude changed the way it reads back the unused fuse bits and thus the e-fuse parameter in the command line had to be adjusted. I had this problem with the Arduino Uno. While I am not familiar with the Leonardo, your problem might be the same. It appears to me that you are probably using the new settings with an old version of AVRDude… Implying that you should probably change efuse:w:0xFF:m to efuse:w:0xCF:m or update AVRDude. Peter > On 13 Dec 2018, at 12:34, Jan Kromhout <kro...@ho...> wrote: > > Tristan, > > > This is what I get > Perhaps the fuse values are incorrect! > > > MacBook-Pro-van-Jan-10:avrdude jankromhout$ avrdude -p m32u4 -c avrispv2 -P /dev/tty.usbmodem00230362 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m -U flash:w:leonardo.hex:i -U eeprom:w:leonardo.eep.hex:i > > avrdude: AVR device initialized and ready to accept instructions > > Reading | ################################################## | 100% 0.00s > > avrdude: Device signature = 0x1e9587 (probably m32u4) > avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed > To disable this feature, specify the -D option. > avrdude: erasing chip > avrdude: reading input file "0xFF" > avrdude: writing efuse (1 bytes): > > Writing | ################################################## | 100% 0.01s > > avrdude: 1 bytes of efuse written > avrdude: verifying efuse memory against 0xFF: > avrdude: load data efuse data from input file 0xFF: > avrdude: input file 0xFF contains 1 bytes > avrdude: reading on-chip efuse data: > > Reading | ################################################## | 100% 0.00s > > avrdude: verifying ... > avrdude: verification error, first mismatch at byte 0x0000 > 0xcf != 0xff > avrdude: verification error; content mismatch > > avrdude: safemode: efuse changed! Was ff, and is now cf > Would you like this fuse to be changed back? [y/n] > > Op 13 dec. 2018, om 12:24 heeft Tristan Williams <ho...@tj...<mailto:ho...@tj...>> het volgende geschreven: > > Jan, > > What error is avrdude reporting? > > Kind regards, > > Tristan > > On 13Dec18 10:09, Jan Kromhout wrote: > Hi, > > Flashing the Arduino Uno is giving no problems. > > Try to flash the Leonardo. > I’m using the Pololu AVR programmer v2.1 > This is my command. > > MacBook-Pro-van-Jan-10:avrdude jankromhout$ avrdude -p m32u4 -c avrispv2 -P /dev/tty.usbmodem00230362 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m -U flash:w:leonardo.hex:i -U eeprom:w:leonardo.eep.hex:i > > It isn’t working > Can someone help me with this problem. > > > Cheers, > > Jan > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li...<mailto:Amf...@li...> > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li...<mailto:Amf...@li...> > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |
From: Erich W. <ew....@na...> - 2018-12-13 11:39:53
|
Hello Jan, Jan Kromhout writes: > Hi, > > Flashing the Arduino Uno is giving no problems. > > Try to flash the Leonardo. > I’m using the Pololu AVR programmer v2.1 > This is my command. > > MacBook-Pro-van-Jan-10:avrdude jankromhout$ avrdude -p m32u4 -c avrispv2 -P /dev/tty.usbmodem00230362 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m -U flash:w:leonardo.hex:i -U eeprom:w:leonardo.eep.hex:i > > It isn’t working > Can someone help me with this problem. looking into old files of mine ... 2013-05-01 I have not succeeded with a leonardo either. Attaching did create a serial interface (/dev/ttyACM0), however, after erasing leonardo's flash, this disappeared. So maybe usb connection is not through a FTDI chip? THIS is a highly questionable idea, be warned. But might be worth to check the schematics. https://www.arduino.cc/en/Main/Arduino_BoardLeonardo https://www.arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf There is no FTDI, as far as I can see, however, how erasing the atmega32u4 flash results in not responding to the ISP programmer, is not obvious to me. I succeeded in erasing once. Nothing after that. Please note that the _atmega_32_u4_ is a quite different beast from the atmega_328p. So fuse settings would be another candidate to check. I didn't find my leonardo just now ... so I can't play with it. Cheers, Erich -- May the Forth be with you ... |
From: Fred Z. <fze...@gm...> - 2018-12-13 12:16:54
|
Connect the Arduino Leoardo via a USB Hub to your Macbook. Most of the times that solves the USART logic voltage level problem. This way I solved a problem I had with a Chinese Arduino clone. (Used a USB 2.0 Hub then). Fred > Op 13 dec. 2018, om 12:39 heeft Erich Wälde <ew....@na...> het volgende geschreven: > > Hello Jan, > > Jan Kromhout writes: > >> Hi, >> >> Flashing the Arduino Uno is giving no problems. >> >> Try to flash the Leonardo. >> I’m using the Pololu AVR programmer v2.1 >> This is my command. >> >> MacBook-Pro-van-Jan-10:avrdude jankromhout$ avrdude -p m32u4 -c avrispv2 -P /dev/tty.usbmodem00230362 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m -U flash:w:leonardo.hex:i -U eeprom:w:leonardo.eep.hex:i >> >> It isn’t working >> Can someone help me with this problem. > > looking into old files of mine ... 2013-05-01 > > I have not succeeded with a leonardo either. Attaching did create a > serial interface (/dev/ttyACM0), however, after erasing leonardo's > flash, this disappeared. So maybe usb connection is not through a FTDI > chip? THIS is a highly questionable idea, be warned. But might be worth > to check the schematics. > > https://www.arduino.cc/en/Main/Arduino_BoardLeonardo <https://www.arduino.cc/en/Main/Arduino_BoardLeonardo> > https://www.arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf <https://www.arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf> > > There is no FTDI, as far as I can see, however, how erasing the > atmega32u4 flash results in not responding to the ISP programmer, is not > obvious to me. I succeeded in erasing once. Nothing after that. > > > Please note that the _atmega_32_u4_ is a quite different beast from the > atmega_328p. So fuse settings would be another candidate to check. > > I didn't find my leonardo just now ... so I can't play with it. > > > Cheers, > Erich > > > -- > May the Forth be with you ... > > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ <http://amforth.sf.net/> > Amf...@li... <mailto:Amf...@li...> > https://lists.sourceforge.net/lists/listinfo/amforth-devel <https://lists.sourceforge.net/lists/listinfo/amforth-devel> |
From: Tristan W. <ho...@tj...> - 2019-03-10 11:13:56
|
Hello Jan, Erich, I came across my Leonardo and remembered this thread. I think Eric is correct. There is no FTDI USB to serial chip. The USB connection is provided by the ATmega32U4 itself. The Leonardo bootloader enumerates to the host as a CDC Class device (virtual serial port). However, once the Leonardo has been flashed with the amforth hex files there is no bootloader, and so no serial port via the USB connection. If you have access to a USB to TTL serial adaptor (5V) it is still possible to use the RX1 and TX1 connection to the hardware USART to host the AmForth interpreter. The file /appl/arduino/leonardo.asm seems already setup to do this. > warm amforth 6.8 ATmega32U4 Forthduino > unused . 2266 ok > The fuses on my Leonardo were Fuses OK (E:C7, H:99, L:CF) Best wishes, Tristan On 13Dec18 12:39, Erich Wälde wrote: > Hello Jan, > > Jan Kromhout writes: > > > Hi, > > > > Flashing the Arduino Uno is giving no problems. > > > > Try to flash the Leonardo. > > I’m using the Pololu AVR programmer v2.1 > > This is my command. > > > > MacBook-Pro-van-Jan-10:avrdude jankromhout$ avrdude -p m32u4 -c avrispv2 -P /dev/tty.usbmodem00230362 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m -U flash:w:leonardo.hex:i -U eeprom:w:leonardo.eep.hex:i > > > > It isn’t working > > Can someone help me with this problem. > > looking into old files of mine ... 2013-05-01 > > I have not succeeded with a leonardo either. Attaching did create a > serial interface (/dev/ttyACM0), however, after erasing leonardo's > flash, this disappeared. So maybe usb connection is not through a FTDI > chip? THIS is a highly questionable idea, be warned. But might be worth > to check the schematics. > > https://www.arduino.cc/en/Main/Arduino_BoardLeonardo > https://www.arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf > > There is no FTDI, as far as I can see, however, how erasing the > atmega32u4 flash results in not responding to the ISP programmer, is not > obvious to me. I succeeded in erasing once. Nothing after that. > > > Please note that the _atmega_32_u4_ is a quite different beast from the > atmega_328p. So fuse settings would be another candidate to check. > > I didn't find my leonardo just now ... so I can't play with it. > > > Cheers, > Erich > > > -- > May the Forth be with you ... > > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |