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: internal flash access...
PostPosted: Fri Aug 07, 2009 8:50 am 
Offline

Joined: Wed Nov 14, 2007 9:05 am
Posts: 3
SAM7S and IAR 5.11.

Hi,
I'm testing "basic-internalflash-project" from ek-board examples.

It works fine with "at91sam7s_ram" configuration by IAR EWARM.
However, "at91sam7s_flash" configuration is not working...

so, I traced into the code and find out the exception when excuiting EFC_PerformCommand() function.
(PC goes to the Undefined_Handler.)

EFC_PerformCommand() was defined __ramfunc.
in this case, I think that it would be fine.
it's ATMEL example project,but, the code is not working...

please tell me, why this function makes exception?

thanks


Top
 Profile  
 
 Post subject: Re: internal flash access...
PostPosted: Mon Aug 10, 2009 1:47 am 
Offline

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

I don't known the project but maybe it is not designed to be run from FLASH? When commanding FLASH it is necessary to run the routine from SRAM - is this the case?
Also ensure that interrupts are blocked when commanding FLASH if interrupt handlers are in FLASH too.

If it is a more standard program exception you should be able to debug this quite easily in IAR - see the following guide to debugging exceptions on the SAM7:
http://www.utasker.com/forum/index.php?topic=535.0

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: No registered users and 3 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: