#avr Logs

Jan 14 2020

#avr Calendar

12:06 AM day__ is now known as day
08:50 AM vmt: --
10:00 AM rue_mohr: I still need the flagging
11:18 AM vmt: consider leaving #avrs
02:08 PM RoBo_V: I am trying to burn bootloader on custom atmega32u4 board with resonator using Arduino Uno ISP programmmer but I am always getting "Inavlid device Signature"
02:08 PM djph: and the uno is properly running the "Arduino ISP" sketch, right?
02:08 PM RoBo_V: I think it has to do something with fuses as I am using resonator. But how to even set fuse
02:09 PM djph: with a programmer
02:09 PM RoBo_V: djph: Sketch uploaded well
02:09 PM djph: although the device will be held in reset while it's being programmed, so it shouldn't even care about the crystal
02:10 PM RoBo_V: djph: so I press on Uno reset while I am uploading bootlaoder then release ?
02:11 PM RoBo_V: Oh u mean by default. ok
02:28 PM twnqx: avr programming doesn't work without clocking
02:29 PM Fuchikoma: If the uno you're using as a programmer has the Arduino-isp sketch loaded onto it, you should be able to use avrdude in interactive mode
02:29 PM Fuchikoma: Assuming you haven't borked it by setting the fuses to the wrong clock source yeah
02:32 PM RoBo_V: I haven't got device signature from the begining, it alwways saying "invalid device sginature". I think it means it cannot write fuses setting even if I command it to do so.
02:32 PM twnqx: no, it means it can't read the target's device signatur
02:33 PM twnqx: it always checks the signature before anything else
02:33 PM RoBo_V: Right, so my connections are all intact. What can be the issue here.
02:34 PM RoBo_V: so I have to use external program to set fuses first then I can use avr ISP when clock source is back - right ?
02:34 PM RoBo_V: programmer**
02:35 PM Fuchikoma: Load up avrdude in interactive mode
02:35 PM Fuchikoma: avrdude comes bundled with the Arduino software
02:38 PM Fuchikoma: avrdude -p m32u4 -c avrisp -P COMxx -t
02:39 PM Fuchikoma: I'm fairly certain "avrisp" is appropriate, and of course "COMxx' should be the appropriate COM port
02:39 PM RoBo_V: and baud ? -b
02:40 PM Fuchikoma: you can try leaving it out as default
02:40 PM djph: Fuchikoma: IIRC if he's using arduino-as-isp, he has to use "arduino"
02:41 PM RoBo_V: well comes out to be same "Yikes~ Inavlid device signature"
02:41 PM RoBo_V: avrdude -p m32u4 -c avrisp -P COM22 -b 19200 -t
02:41 PM RoBo_V: tried both avrisp and arduino
02:41 PM Fuchikoma: djph: I thought the whole point of using the arduino as an ISP is that it behaves like a generic ISP programmer. AFAIK (it's been a long time) the "-p arduino" is for the actual programming of the ardunio's own MCU
02:42 PM Fuchikoma: okay so... I don't suppose the ardunio you're using is the kind with the socketed DIP?
02:42 PM djph: Fuchikoma: tbh, I can't remember :D
02:45 PM RoBo_V: Programmer is Arduino Uno DIP, Target is custom atmega32u4 smd board
02:46 PM Fuchikoma: Also something to verify; try using -p m328p and see if that works. It might be seeing the Uno instead of the chip you actually want to program
02:46 PM Fuchikoma: If it is... try removing the 328P from the socket
02:46 PM Fuchikoma: (Unplug it first ofc)
02:53 PM RoBo_V: No, stil same.
02:54 PM Fuchikoma: so even trying to connect with the m328p option gives nada
02:55 PM RoBo_V: Yes
02:55 PM RoBo_V: I think I may have to use programmer or provide external lcock to set correct fuses.
02:58 PM djph: This sounds very much like you're getting something wrong
02:58 PM Fuchikoma: Well if you can't connect to it through avrdude then nothing else will work
02:59 PM Fuchikoma: avrdude can set the fuses for you, for example
02:59 PM djph: Fuchikoma: hmm, just tried it here (nano -> mega88) and it needed the programmer set as "arduino"
02:59 PM djph: or rather, it worked when I selected that one
02:59 PM Fuchikoma: Fair enough it's been awhile like I said
03:00 PM djph: Fuchikoma: hehe, same, I was just poking around trying to upload something
03:01 PM RoBo_V: I see
07:12 PM rue_shop5: vmt, you idiot I'm one of the channel ops...
09:31 PM rue_mohr: Fuchikoma, you didn't get it?