LUFA AVRISP MKII and Flowcode v6

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

LUFA AVRISP MKII and Flowcode v6

Post by STibor »

Hi!

I have a homemade project LUFA AVRISP MKII programmer.

How can you use Flowcode6 program?
Currently, the generated HEX file to program the AVR Studio 4 software.

Image

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Post by Benj »

Hello,

Wow that looks really good for a homemade PCB! out of interest how did you do the solder resist layer and make it look so good?

AVR studio 3 came with drivers for the AVRISP that were compatible with the Flowcode AVRdude instance however it seems AVR studio 4 has different drivers which don't work so well across the board.

There is a newer version of AVR dude so first port of call would be to try this. We have included this in the current Flowcode build but not the latest 6.0.7 release so the updated files are below.
AVRDUDe.zip
(558.57 KiB) Downloaded 297 times
The files should be extracted into the "C:\Program Files (x86)\Flowcode 6\compilers\avr\bin" folder.

Let me know how you get on.

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Post by Kenrix2 »

Very nice work on your board, I am impressed. I have questions too, but yes the biggest question is - What are you using for the solder mask? How do you prevent the solder mask from coating the solder pads and thru holes? What method are you using for registration of the top and bottom artwork? What insert device are you using for the vias? Do you hand solder the thru hole devices? How do you cut the PCB with such perfect edges? Are you cutting the PCB to size as the first step?

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Post by STibor »

Thank you!

A friend made ​​it to the printed circuit board. (now rare) I just soldered.
The anti-solder layer Dynamask film.
http://www.octamex.de/shop/?page=shop/f ... aufen.html

The etching masking Riston dry film.
My amateur film:
https://www.youtube.com/watch?v=ckPpLUJ ... Ik7Km-R28Q

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Post by STibor »

Thank you!
I copied the files avrude.exe and avrdude.conf.
How to configure the options menu programmer?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Post by Benj »

Hello,

By default the AVR compiler options, programmer tab should refer to the AVRISP mkII.

Location: $(appdir)compilers\avr\batchfiles\avrc.bat
Parameters: AVRDUDE $(chipalt) $(chip:l) "$(outdir)$(target).hex" "$(target).hex" 0 $(cfg0) $(cfg1) $(cfg2) $(cfg3)

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Post by STibor »

Hello!
Launching the programmer...
C:\Program Files\Flowcode 6\compilers\avr\batchfiles\avrc.bat AVRDUDE m328p atmega328p "C:\PROGRA~1\FLOWCO~3\sajat\avr\rc5_test\rc5_test_v1.hex" "rc5_test_v1.hex" 0 255 255 255
C:\PROGRA~1\FLOWCO~3\sajat\avr\rc5_test>"C:\PROGRA~1\FLOWCO~3\COMPIL~1\avr\BATCHF~1\..\bin\avrdude.exe" -p m328p -P usb -c avrispmkii -U flash:w:"rc5_test_v1.hex"
avrdude.exe: usbdev_open(): did not find any USB device "usb"
Error returned from [avrdude]
C:\Program Files\Flowcode 6\compilers\avr\batchfiles\avrc.bat reported error code 1
FINISHED
Attachments
AVR Studio4.jpg
AVR Studio4.jpg (74.96 KiB) Viewed 5687 times
avrispmkii nw.FCS
(795 Bytes) Downloaded 220 times
rc5_test_v1.fcfx
(9.55 KiB) Downloaded 217 times

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Post by STibor »

Hi,
I managed to solve it.
Thanks for your help!

It works for me:

Code: Select all

$(appdir)compilers\avr\batchfiles\avrc.bat
STK500 $(chipalt) $(chip:l) "$(outdir)$(target).hex" "$(target).hex" 0 $(cfg0) $(cfg1) $(cfg2) $(cfg3)
Attachments
avrispmkii good.FCS
(794 Bytes) Downloaded 226 times

Post Reply