EmbeddedRelated.com
Forums

TMS320F2812 : reading Flash for version control

Started by "Shashi Kumar.M.S." June 20, 2006
Hi,

We are developing a product for avionics.

I have written the software using CCS on TMS320F2812. Also I
have programmed the flash to run on the software written.

Now I want to implement the version control for this.

What I thought was to read the flash and to calculate a key
and match with this key at the start of the program. So I
need to read the flash.

I wanted to know how to read the contents of the flash in my
program while running from the flash.

Or is there any other way than this to implement the version
control on the software.

All the suggestions are welcome.

With regards

Shashi Kumar.M.S.
Engineering Trainee,
Aspire Communications Pvt. Ltd.,
Mysore.
India.
http://www.aspirecommunication.com/

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.1/369 - Release
Date: 6/19/2006
hey,
i think u can transfer the flash contents to ram at run time and then read it
if u have a statement like
#pragma CODE_SECTION(InitFlash, "ramfuncs") and adjust the cmd file accordingly, the flash contents will be written to the ram during run time and can be used either as a program which runs from ram or data
the above statement copies program from flash to ram at run time
obviously there is a limited amoount of program that u can do this becasue of limitation of ram memory
use f2812.cmd file which is in tidcs
also this statement is necessary during the initialization
MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);

hope this helps
-Chirag Jagadish

"Shashi Kumar.M.S." wrote:
Hi,

We are developing a product for avionics.

I have written the software using CCS on TMS320F2812. Also I have programmed the flash to run on the software written.

Now I want to implement the version control for this.

What I thought was to read the flash and to calculate a key and match with this key at the start of the program. So I need to read the flash.

I wanted to know how to read the contents of the flash in my program while running from the flash.

Or is there any other way than this to implement the version control on the software.

All the suggestions are welcome.

With regards

Shashi Kumar.M.S.
Engineering Trainee,
Aspire Communications Pvt. Ltd.,
Mysore.
India.
http://www.aspirecommunication.com/