EmbeddedRelated.com
Forums

How to access data stored in FLASH and using label directive

Started by hema...@gmail.com April 7, 2008
Hello,
I am using eZdsp(F2812) as a standalone controler.I am having problems with FLASH programming.I am trying to execute simple addition program running from FLASH with initialized data stored in FLASH.But I am not getting any result stored in third variable which I am trying to store
back in FLASH.I feel I am unable to access the data stored in FLASH.Is there any way to access data stored in FLASH.
And In other programs I am trying to copy contents from FLASH to RAM using .label directive but I am unable to use this directive properly.I am following the example given in SPRU513(Assembly Language Tool's User Guide) but unsuccessful.I feel the explanation given in this manual is not sufficient on how to use this directive.
I am using assembly language programming.
Can any one help me in solving these two problems.
Thanks in advance.


Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
You can't write the result back to flash.
Put all the variables in ram. Initialize the variables
with content in flash.
Put those variables in a seperate section, and using
load and run address in link cmd file.
--- h...@gmail.comд

> Hello,
> I am using eZdsp(F2812) as a standalone
> controler.I am having problems with FLASH
> programming.I am trying to execute simple addition
> program running from FLASH with initialized data
> stored in FLASH.But I am not getting any result
> stored in third variable which I am trying to store
> back in FLASH.I feel I am unable to access the data
> stored in FLASH.Is there any way to access data
> stored in FLASH.
> And In other programs I am trying to copy
> contents from FLASH to RAM using .label directive
> but I am unable to use this directive properly.I am
> following the example given in SPRU513(Assembly
> Language Tool's User Guide) but unsuccessful.I feel
> the explanation given in this manual is not
> sufficient on how to use this directive.
> I am using assembly language programming.
> Can any one help me in solving these two problems.
> Thanks in advance.
>

Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
Hi
if your application are loaded into ram you can not access to Flash befor unsecure it.
several special requirments exist for running application from on chip flash memory.
for more info. refer to : SPRA958((running application from nternal flash memory on the TMS320F28xx))
Amin

h...@gmail.com wrote:
Hello,
I am using eZdsp(F2812) as a standalone controler.I am having problems with FLASH programming.I am trying to execute simple addition program running from FLASH with initialized data stored in FLASH.But I am not getting any result stored in third variable which I am trying to store
back in FLASH.I feel I am unable to access the data stored in FLASH.Is there any way to access data stored in FLASH.
And In other programs I am trying to copy contents from FLASH to RAM using .label directive but I am unable to use this directive properly.I am following the example given in SPRU513(Assembly Language Tool's User Guide) but unsuccessful.I feel the explanation given in this manual is not sufficient on how to use this directive.
I am using assembly language programming.
Can any one help me in solving these two problems.
Thanks in advance.


Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467