How do I flash the bootloader on this board?

I'm extremely new to this so please be nice :slight_smile:

The board (attached img) is for a 2 axis gimbal (SimpleBGC) and somehow I managed to corrupt the bootloader. Now several sites have instructions on how to flash it using a USBisp programmer. The problem is that all the boards in the examples (this being one Loading...) have 6 pins (or 6 holes) in two rows of three. Would anybody know what they correspond to on my board?

Thanks!

Looks like you need one of these adapters. I use mine with an Atmel AVR ISP MKii for programming bootloaders and sketches with no bootloaders.
(MKii does not supply power, only monitors the level being used, so board must be provided power, or the MKii modified to supply power)

Has 6 pins that are pressed onto the TQFP package, you hold it in place while the programming occurs.

Why not purchase the hardware mentioned and then follow the instructions in the mentioned website?
There are 6 pins in what looks like a standard ISP header footprint on the PCB which should make the task relatively easy
As a possible method to get around the additional hardware requirements you might solder a six pin (2 X 3) standard male header and connect it to the programmer...
Then follow the rest of the flash procedure mentioned in the website you referenced...
Either do the above or just buy the appropriate hardware mentioned and follow the procedure to flash the new bootloader.
Simple...

Doc

Where do you see 6 pins n 2x3 configuration on the board? Or are you looking somewhere else?

Thanks @CrossRoads I'll try that adapter and see how it goes.
I'm guessing I also need this correct Radio Control Planes, Drones, Cars, FPV, Quadcopters and more - Hobbyking

I had the same question for Docedison: I don't see the 6 pins either...

Thanks both!

Yes.
I used to use one of those before I started using Atmega1284P & 2560 chips. Then I got the Atmel AVR ISP MKii and use the MKii for everything.

I also misplaced the USBASP for a while, which made it hard to go back to using it ...

Are you sure you have an AVR-based board, and not one of the newer "32bit" versions?

The 28-pin TQFP in the picture looks like an AVR to me. Looks like resonator in correct place for the clock pins too.

No I'm not sure but I'll give the flashing tool CrossRoads pointed out a try.

Thanks all for the help so far. Really appreciated!

The mistake I made was to not look at all of the pictures before offering simple advice that might n\be beyond the technical ability of the OP.
@ Crossroads... on the referenced website this was the picture I referenced http://www.infinity-hobby.com/main/images/article/201402-03xw/20140310xw04-02.jpg. and it clearly depicts a standard 6 pin ISP connector
I do apologize for the confusion I created but my idea is still a possible concept in that 'tack' soldering a 6 pin header to the ISP pins is no big deal...
Certainly less than that fancy clip on device that might be used once... Yes, I'v seen the part in several threads prior to this one and the sales price too.
What I fail to understand is what to do when/if the code is upgraded... scrap the old one or send it to the "Factory" for upgrading?.
IMO that part is a production device most useful to compensate for poor board layout... IE the lack of an ISP connector
I apologize for missing the photo of "His" board which is apparently much different that the "Solution" proposed on the referred.
website.
I keep a small stripboard with a 6 pin (2 X 3) and 6 small wires soldered to the pins just for that purpose...
WAAAY less expensive than the clip on device that was referenced... unless it is used as a production tool...
And yes I do make or repurpose boards with ATMega328P-AUs...

Doc

Not a clip-on tool, just press in place.

Some of the Lilypad boards have no way to rebootload without it. No ICSO header, and the SPI pins are not brought out to user IO pins.

I would disagree about poor board layout - someone might just want a really small footprint, and that's one way to help get there.

I would follow the traces from the ISP pins on the chip (15, 16, 17, 29) and see if they happen to show up at some other convenient connector or pads...

I went through that issue about 15 years back and I found with the 16CXXX controllers that I lost about 1 in 10 chips.. I tried pre-programmed devices as well as a "Glomper' Chip... Remember them?... and a connector to the programmer both were less than satisfactory and this fueled my comments... When the second order for that product was placed I got real intimate with Pogo pins...
I'd like to apologize for my comments about 6 pin connectors. I didn't look at the first picture picture carefully and "Ass u me d" that the board on the referred web page was the same as the OP was...
Tack Soldering 6 wires to a male two row X three pin header and soldering them to the relevant pins is for me no big deal.

Doc

I have received the tool and the USBasp, the problem is that the flashing tool has an 10 pin connector (2x5) while the USBasp (that was recommended on the website) has 6 (2x3). Is there an adapter or something else that can be done to connect the two?