Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sandusky
PostPosted: Jan 23, 2012 - 11:44 AM
Newbie


Joined: Jan 23, 2012
Posts: 2


Hey guys! I have a strange problem, and I'm obviously not experienced enough to solve it myself. I'm running AVR Studio 4 with WinAVR and a dragon connected with JTAG to an ATmega128. The problem is that in debugger, or when running on the target, the program can't return from the first called function, no matter how it looks like. When trying to look at it in the debugger the cursor either jumps to some completely random place in the project or after hanging for a bit jumps back to the start of main. Using some LEDs showed the same behavior when programming the target. I have turned off all optimization and started new really basic projects, still with the same problem. Does anyone know how to solve the problem or have any suggestions of how to proceed?
 
 View user's profile Send private message  
Reply with quote Back to top
sternst
PostPosted: Jan 23, 2012 - 11:51 AM
Raving lunatic


Joined: Jul 23, 2001
Posts: 2472
Location: Osnabrueck, Germany

Switch off the M103C fuse.

_________________
Stefan Ernst
 
 View user's profile Send private message  
Reply with quote Back to top
sandusky
PostPosted: Jan 23, 2012 - 11:55 AM
Newbie


Joined: Jan 23, 2012
Posts: 2


Well, that was simple enough, thanks!
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits