PB with MACRO on Flowcode 5 AVR pro

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by DavidA »

Hello Yann,

I have given this to someone else with an ATMEGA128 and he has reported that all the programs linked in this thread have worked perfectly for him.

His boards are 16Mhz boards and his fuse settings are:

0x0, 0xdf (low)
0x1, 0xff (high)
0x2, 0xff (extended)

Can you reply with your fuse settings and clock speeds.

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by Spanish_dude »

Hmmm, that's true. No idea why you have that problem.

Could it be hardware related ? Fuses maybe ?

EDIT : Didn't see David's post, my bad

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

on AVR studio Prog page i have :

see the 2 pics,

LOW : 0xC4
HIGHT : 0x99
EXTENDED : 0xFD
Attachments
2012-08-01_195321.png
first pics
(36.6 KiB) Downloaded 6853 times

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

second pics
Attachments
2012-08-01_195337.png
(4.16 KiB) Downloaded 6853 times

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

poufffffff

i put the low, hight and extended fuses with the value you done to me, and now i can't connect with my jtag to my card, i have an error.
The avr prog doesn't recognize my µC.
it's look like i have kill my µC...

:cry:

So i couldn't test the flow you send.

:cry:

Yann.

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

My JTAG is no more able to read device information, i have a message error :

"
Timestamp: 2012-08-01 21:31:45.875
Severity: INFO
ComponentId: 20100
StatusCode: 0
"

I can read, and i could not prog anymore too. :cry:

What can i do to go back to my value ?

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

Little add,

When i connect my JTAG ICE MKII on my card, the ARV STUDIO couldn't read the signature of the chip.
i have a 0x00, 0x00, 0x00 signature.

i change the µC this morning, and i think i will never play again with the fuses :(

Yann.

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

I changed my µC and i put a new one on my card.
bye bye the other one :cry:

i read the fuse factory setup before doing anything else
Attachments
2012-08-02_111407__JTAG ATmega128 init usine.png
(67.07 KiB) Downloaded 1996 times

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

i just changed SUT_CKSEL with internal 8MHz

i flash a k2000 and my card is ok now :D

i tried the last flow you send me with 3 macro, it works on Flowcode, but when i want to flash it in my card i have an error.
when i flash one of my flowcode it's ok.

What is the different between mine and yours ?

What can i do to make flowcode v5 avr macro works ?
Why the same flow, with the default setting of flowcode, works on v4, and doesn't on v5 ?

i bought Flowcode, because i thought that what i simu is what i get, but for the moment it doesn't.

Is there a special configuration to make it work ?

Do have i to buy Matrix E-blocks card to make it work ?

Yann, :D

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by Spanish_dude »

yann.cosson wrote:i tried the last flow you send me with 3 macro, it works on Flowcode, but when i want to flash it in my card i have an error.
when i flash one of my flowcode it's ok.
What error do you get ?

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

i have a ATMEL STUDIO prog error.
a ATMEL STUDIO popup appears, saying that he was unable to prog because he couldn't find a valid file .hex,
But in the directory i have the file generated by flowcode.

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by dazz »

Hi yann
Can you post a screenshot showing the error as it will enable others to get a better idea of whats wrong

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by DavidA »

Hello Yann,

The fuse settings i posted were the standard recommended values for use with the AVRISP programmer. I did not intend for you to change them to that! I just wanted to check your values to ensure that the watchdog and brownout features were configured appropriately - to try to stop the chip from resetting.

These standard AVRISP fuse settings also disable the JTAG interface - to free up the associated I/O pins.

You seem to be using a JTAG programmer so this action has locked you out. The JTAG option can be re-enabled via the ISP interface if a compatible programmer is available. It is not possible for an ISP programmer to disable the ISP interface, but it looks like it is possible to disable JTAG via JTAG.
i bought Flowcode, because i thought that what i simu is what i get, but for the moment it doesn't.
We try our best to ensure that the Flowcode simulation is as accurate as possible, obviously this depends largely on the hardware used and that the settings that are in Flowcode are correct to ensure accurate simulation of hardware.
s there a special configuration to make it work ?
There may be specific fuse settings which you need to get it working, Clock source and programmer interface settings seem to be the two areas that can cause problems.
Do have i to buy Matrix E-blocks card to make it work ?
No not at all.

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

when i try this, build on v4
Attachments
FlasherTest_v4.fcf_avr
(6 KiB) Downloaded 194 times

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

the result is :
Attachments
2012-08-02_155459.png
(50.32 KiB) Downloaded 6825 times

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

and
Attachments
2012-08-02_155511.png
(54.58 KiB) Downloaded 6825 times

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

when i put a flow i have done and that works on v4, all is OK on my card
Attachments
2012-08-02_155536.png
(77.27 KiB) Downloaded 1981 times

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

i made another thing i read the fuse of my ATmega328P where the macro on v5 works
Attachments
2012-08-02_154539_FUSES ATmega328P.png
(68.62 KiB) Downloaded 1980 times

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

and i do the same on ATmega128 where MACRO doesn't work on v5
Attachments
2012-08-02_154832_FUSES ATmega128.png
(85.04 KiB) Downloaded 1980 times

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by dazz »

Hi yann
Dont throw out the avr with the locked fuses, heres a link to a probe that injects a voltage during programing to allow you to reset the fuse http://www.elektor.com/magazines/2011/j ... 2608.lynkx

theres also a lot of opensource circuits on the web to asllow you to do the same

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

yann.cosson
Posts: 52
Joined: Thu Jul 12, 2012 9:23 pm
Has thanked: 5 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by yann.cosson »

On ATmega128, where my flow doesn't work on v5, i have M103C and JTAGEN check, that are not on ATmega328 (but no jtag on ATmega328 only isp).

on ATmega328P where macro works i have "BOOTRST" check and the value size is different.

Can it be a reason why ...

Yann :D

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: PB with MACRO on Flowcode 5 AVR pro

Post by dazz »

Hi yann
read the attached pdf pages 8 to 10, it explains the use of the m103 fuse, from that pdf i would tick jtagen and untick m103( it a compatability mode which locks out some 128 features) let us know how you get on
doc2501.pdf
(121.11 KiB) Downloaded 229 times
regards
dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Post Reply