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  [ 1 post ] 
Author Message
 Post subject: execution from FLASH not working as expected
PostPosted: Mon Jul 04, 2011 8:12 am 
Offline

Joined: Tue May 31, 2011 11:26 am
Posts: 2
Hi,
We are using IAR workbench. We've tested our code by running it from SDRAM and it works 100%. But when it is executed from flash then any pointer referencing to any data in the flash area resolves to a value of zeros. e-g

void printString (char* str)
{
printf("String to print %s \n",str);
}

When executing from SDRAM :
printString("Print this string");

would work fine.
Output:
String to print Print this string

when executing from Flash
printString("Print this string");

would not work
Output:
String to print

I am not so sure why is that.


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 10 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: