Xmega Running Timers in stoped mode

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Hello, I'm using ATxmega16E5 and IAR-EWB for programing. In my application I use a PWM pin to control a step-up regulator which is build arround a N-MOSFET, an inductor, an ultra fast diode and an output capacitor. The circuit is well designed and tested and is working as it should. My problem is that every time I push the brake button in C-Spy debugger (so that I can see some register values) the PWM pin stops randomly in either High or Low level. If it stays in Low level everything is OK but if it stays in High Level the step-up fries! In my previous design I used an ATmega88PA and I didn't have the same issue, because the debugger has an option for running Timers in stop mode. Why this feature is not available any more in the new series of 8-bit microcontrollers from ATMEL? Is there anything I'm missing?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Surely the reason you paid $3000 for the compiler/IDE is so that they could send someone round on a private jet with a bag full of MOSFETs for you? cheeky

 

(or at least rapidly answer support questions).

 

Presumably you could build in IAR and debug in Studio 6 (though inferior) as it has a "run clocks when debugging" option?

Last Edited: Mon. Feb 9, 2015 - 05:21 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

clawson wrote:

Surely the reason you paid $3000 for the compiler/IDE is so that they could send someone round on a private jet with a bag full of MOSFETs for you? cheeky

 

(or at least rapidly answer support questions).

 

Presumably you could build in IAR and debug in Studio 6 (though inferior) as it has a "run clocks when debugging" option?

 

You are very funny clawson. 

You must be stupid to work with Studio 6. Is the most slow and bug software i have ever worked.

I thought AVRfreak is to help people with their problem not to support Atmel and the company name.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

clawson wrote:

Surely the reason you paid $3000 for the compiler/IDE is so that they could send someone round on a private jet with a bag full of MOSFETs for you? cheeky

 

(or at least rapidly answer support questions).

 

Presumably you could build in IAR and debug in Studio 6 (though inferior) as it has a "run clocks when debugging" option?

 

If you had the intention to help me you would have read carefully what I mentioned, that I use the same compiler and debugger with mega88PA and the timer is running in stoped mode. The same option is available in IAR debugger optionσ for Xmega, but the option box is not enabled. I suppose this is not supported by the uC. What is your problem with IAR? Everyone here in this forum hate IAR. I have also tried to stop the program execution in AS6 and the timer stoped there also.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What is your problem with IAR?

I think for most of us poor people in the rest of the word the price is too high, but for rich Greek engineers it may be ok.  wink laugh

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

js wrote:

What is your problem with IAR?

I think for most of us poor people in the rest of the word the price is too high, but for rich Greek engineers it may be ok.  wink laugh

 

The financial problem of my country has nothing to do with the financial status of the company that I work for. We pay 3000$ for IAR, but we get many millions back from the products that we produce and sell. Now I understand how I can be a super freak with thousands of posts, by trolling! I was pretty sure that for one more time I wouldn't get an answer to my question. This forum is full of hobbyists and people that trying to have fun nothing more.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Folks take a chill pill already. Do you not recognise what this means?:

The idea was that it was a joke. But my other comments were a serious suggestion. An option here would be to build in IAR and debug in AS6 simply because it is a different debugger which may handle stopped timers in a different way. Sure I know that AS6 is not the greatest IDE/debugger in the world which is exactly why I said:

(though inferior)

but it is a potential stop gap to get you over the problem you are encountering until IAR support are able to either confirm that their debugger cannot offer the feature on Xmega or come up with a fix to make it work there.

 

Geesh!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

OK I take it as a joke!

 

Now to our topic. I have done something very simple. I loaded two example projects from ASF and the results are below! The Xmega family seems not to support running timers in stoped mode! If it is so, it is so pathetic. One more reason to get rid of all 8-bit micros and switch to ARM uControllers even for small projects.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

It certainly seems likely that if two independently written debuggers both behave the same then the issue is in the OCD component of the chip itself.

 

While you might ask for anecdotal evidence from other Xmega users here who have seen this I would contact Atmel and raise a support ticket to get a definitive answer from them about what to expect.

 

On the other hand Morten (I spelled it correct this time!) from Atmel may be along in a minute - he works on Studio and the debugger and may know or be able to verify the Xmega behaviour anyway.

 

On this page there is an "open support case" link:

 

http://www.atmel.com/design-supp...

 

(though in Firefox in Linux the link is partially hidden)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Yes, you did spell it correctly :)

 

The 'keep timers running' feature is not available on the xmegas, only on tiny and mega.

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

Last Edited: Tue. Feb 10, 2015 - 11:42 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Add capacitor in series and resistor to ground to gate of the MOSFET, so the step-up will not burn if the PWM stops in high level.

And it will not burn also if you program go wrong (not in case of debug) and set the pin to high level.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Thanks meolsen, that was helpful! So after discussing about the "bad" IAR EWB and the economic status of Greek engineers, finally we came to a conclusion! That Xmega sucks! No "run timers in stop mode", no live watch, poor framework (ASF), so it seems to me that we are having a failure here! Mega88 series rocks! Best uC ever! ATMEL should stick with them and get rid of Xmegas and all that ASF crap.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I think the moderators like js must rename the forum from AVRfreaks to AVRTrolls.

 

Think before answering.

 

Also the Atmel (http://www.atmel.com/design-support/) support it not very helpful. I am still waiting for a ticket more than 1 month. Other ticket have been answer quickly.

 

I think the best forum for electronis is www.edaboard.com!!!

 

 

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think the moderators like js must rename the forum from AVRfreaks to AVRTrolls.

 

Think before answering.

 

Yeah! And how he would become a superfreak then? At least clawson tried to help with everything he knew. Not post off topic and drive the thread from Greece to... Australia (heil Dave Jones). There is a guy here who needs to get help and you just joking around! Well you could use Facebook for that! You are the moderator dear js, you should be learning this to other members! 

 

PS: What's your problem in this forum with IAR? Why aren't you helping people who use IAR and be so ironic about it? I will pay 3000E if I like or even crack it!! What's your problem anyway? 

Last Edited: Tue. Feb 10, 2015 - 01:06 PM