Page 2 of 2

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Wed Aug 01, 2012 3:34 pm
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.

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Wed Aug 01, 2012 5:08 pm
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

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Wed Aug 01, 2012 6:57 pm
by yann.cosson
on AVR studio Prog page i have :

see the 2 pics,

LOW : 0xC4
HIGHT : 0x99
EXTENDED : 0xFD

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Wed Aug 01, 2012 6:57 pm
by yann.cosson
second pics

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Wed Aug 01, 2012 8:10 pm
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.

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Wed Aug 01, 2012 8:45 pm
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 ?

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 7:37 am
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.

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 10:38 am
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

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 10:45 am
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

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 11:43 am
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 ?

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 12:09 pm
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.

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 12:31 pm
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

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 12:46 pm
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.

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 2:57 pm
by yann.cosson
when i try this, build on v4

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 2:58 pm
by yann.cosson
the result is :

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 2:58 pm
by yann.cosson
and

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 2:59 pm
by yann.cosson
when i put a flow i have done and that works on v4, all is OK on my card

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 3:00 pm
by yann.cosson
i made another thing i read the fuse of my ATmega328P where the macro on v5 works

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 3:01 pm
by yann.cosson
and i do the same on ATmega128 where MACRO doesn't work on v5

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 3:03 pm
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

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 3:08 pm
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

Re: PB with MACRO on Flowcode 5 AVR pro

Posted: Thu Aug 02, 2012 3:43 pm
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