|
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.
|