Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [AT91SAM7S64] Reset is not handled properly
PostPosted: Tue Apr 06, 2010 8:27 pm 
Offline

Joined: Wed Mar 31, 2010 5:49 pm
Posts: 2
Hi, I have an issue with my SAM7P64 board. Let's say that the program with a blinking led is running. When i write the same program to flash with OpenOCD, the program continues running. But the again, when I flash the board using another .bin, the board freezes. Now i have to press the on-board reset button, and the new program is running perfectly. But I should be able to reset it automatically via OOCD, I don't know why it's not working.

I have a thought it might be something wrong with my startup.s/startup.c files? Or maybe it's something with the linker script? It's been adapted from AT91SAMX256 board, I can provide those files if necessary

PS. When telnet to OpenOCD server and 'poll', it says 'Target state: running' - so it's not really halted, it's running, but the led is not blinking. Also when I 'halt' the working program, PC always says something like '0x0010045c', but when I halt the other program, the PC is '0x00000010'.


Top
 Profile  
 
 Post subject: Re: [AT91SAM7S64] Reset is not handled properly
PostPosted: Thu Apr 08, 2010 6:13 pm 
Offline

Joined: Thu Mar 02, 2006 1:32 pm
Posts: 127
Location: Switzerland
Hi

The address 0x10 is the abort interrupt (often a branch to itself) so it would mean that that program is exceptioning due to an access error.

Regards

Mark

www.uTasker.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: chasmopolitan and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: