PB with MACRO on Flowcode 5 AVR pro
Moderator: Benj
- 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
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.
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.
-
- 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
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
Could it be hardware related ? Fuses maybe ?
EDIT : Didn't see David's post, my bad
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
on AVR studio Prog page i have :
see the 2 pics,
LOW : 0xC4
HIGHT : 0x99
EXTENDED : 0xFD
see the 2 pics,
LOW : 0xC4
HIGHT : 0x99
EXTENDED : 0xFD
- Attachments
-
- 2012-08-01_195321.png
- first pics
- (36.6 KiB) Downloaded 6853 times
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
second pics
- Attachments
-
- 2012-08-01_195337.png
- (4.16 KiB) Downloaded 6853 times
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
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...
So i couldn't test the flow you send.
Yann.
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...
So i couldn't test the flow you send.
Yann.
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
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.
What can i do to go back to my value ?
"
Timestamp: 2012-08-01 21:31:45.875
Severity: INFO
ComponentId: 20100
StatusCode: 0
"
I can read, and i could not prog anymore too.
What can i do to go back to my value ?
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
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.
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.
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
I changed my µC and i put a new one on my card.
bye bye the other one
i read the fuse factory setup before doing anything else
bye bye the other one
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
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
i just changed SUT_CKSEL with internal 8MHz
i flash a k2000 and my card is ok now
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,
i flash a k2000 and my card is ok now
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,
-
- 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
What error do you get ?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.
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
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.
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.
-
- 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
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
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
- 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
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.
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.
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.i bought Flowcode, because i thought that what i simu is what i get, but for the moment it doesn't.
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.s there a special configuration to make it work ?
No not at all.Do have i to buy Matrix E-blocks card to make it work ?
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
when i try this, build on v4
- Attachments
-
- FlasherTest_v4.fcf_avr
- (6 KiB) Downloaded 193 times
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
the result is :
- Attachments
-
- 2012-08-02_155459.png
- (50.32 KiB) Downloaded 6825 times
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
and
- Attachments
-
- 2012-08-02_155511.png
- (54.58 KiB) Downloaded 6825 times
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
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
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
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
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
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
-
- 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
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
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
-
- Posts: 52
- Joined: Thu Jul 12, 2012 9:23 pm
- Has thanked: 5 times
- Contact:
Re: PB with MACRO on Flowcode 5 AVR pro
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
on ATmega328P where macro works i have "BOOTRST" check and the value size is different.
Can it be a reason why ...
Yann
-
- 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
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 regards
dazz
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 regards
dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php