LUFA AVRISP MKII and Flowcode v6

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

Moderator: Benj

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 115 times
Been thanked: 112 times
Contact:

LUFA AVRISP MKII and Flowcode v6

Postby STibor » Thu Apr 10, 2014 5:39 pm

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: 14790
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4752 times
Been thanked: 4358 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Postby Benj » Fri Apr 11, 2014 3:54 pm

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 148 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.
These users thanked the author Benj for the post:
STibor (Tue Apr 15, 2014 5:44 am)
Rating: 5%
 

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

Postby Kenrix2 » Fri Apr 11, 2014 9:28 pm

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: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 115 times
Been thanked: 112 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Postby STibor » Sat Apr 12, 2014 7:20 am

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/flypage&product_id=31&category_id=5848924494118370762daa6f026e22f7&/Dynamask__Loetstopplaminat_1m_kaufen.html

The etching masking Riston dry film.
My amateur film:
https://www.youtube.com/watch?v=ckPpLUJ8Qdw&list=UU4P1-RwdOagCbIk7Km-R28Q
These users thanked the author STibor for the post (total 3):
Benj (Mon Apr 14, 2014 11:08 am) • kersing (Mon Apr 14, 2014 10:08 pm) • Kenrix2 (Mon Apr 14, 2014 10:08 pm)
Rating: 15%
 

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 115 times
Been thanked: 112 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Postby STibor » Tue Apr 15, 2014 5:50 am

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

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

Re: LUFA AVRISP MKII and Flowcode v6

Postby Benj » Tue Apr 15, 2014 9:24 am

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)
These users thanked the author Benj for the post:
STibor (Tue Apr 15, 2014 5:14 pm)
Rating: 5%
 

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 115 times
Been thanked: 112 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Postby STibor » Tue Apr 15, 2014 4:45 pm

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 2986 times
avrispmkii nw.FCS
(805 Bytes) Downloaded 71 times
rc5_test_v1.fcfx
(9.55 KiB) Downloaded 78 times

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 115 times
Been thanked: 112 times
Contact:

Re: LUFA AVRISP MKII and Flowcode v6

Postby STibor » Tue Apr 15, 2014 5:14 pm

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
(804 Bytes) Downloaded 89 times
These users thanked the author STibor for the post:
Benj (Tue Apr 15, 2014 5:34 pm)
Rating: 5%