DSPRelated.com
Forums

Flash memory

Started by karine michalet July 11, 2002
I send you my project (memoire test). I want to write in P.Flash memory my
interrupt table (in test.asm) by creating my own section "section erwan". I want
to use the DSP56800 Stationary project with Flash 56807 set up.
The problem is none of my interrupt table is written in the memory as it
specified in a linker :

.irq (RWX) : ORIGIN = 0x0010, LENGTH = 0x0070

.irq_application :
{
* (erwan.text)

} > .irq

The question is why my code is not written in my memory ??

******** F'SATIE disclaimer ********
This message may contain privileged and confidential information intended only
for the use of the addressee named above.
If you are not the intended recipient of this message, you are hereby notified
that you must not disseminate, copy or take any action in reliance on it.
If you have received this message in error, please notify F'SATIE at
.

Any views expressed in this message are those of the individual sender, except
when the sender specifically states them to be the view of F'SATIE.


Attachment (not stored)
memoire test.zip
Type: application/x-zip-compressed


Karine

> The question is why my code is not written in my memory ??

We believe the problem is the fact that your linker command file references
the MEMORY segment as (RWX) instead of (RX).....since flash is read only.

Therefore, alter your linker command file to look as follows:
==============================================================
MEMORY {

.irq (RX) : ORIGIN = 0x0010, LENGTH = 0x0070 # (RX instead of RWX)
.text (RX) : ORIGIN = 0x0080, LENGTH = 0x00000000 # (RX instead of RWX)
.Ramdata (RW) : ORIGIN = 0x0000, LENGTH = 0x00000FFF
.FLASHdata (RW) : ORIGIN = 0x2000, LENGTH = 0x00001FFF
}

SECTIONS {

.irq_application :
{
* (erwan.text)

} > .irq Metrowerks Support via Ron Liechty

--
Free Programming Courses at CodeWarrior U
<http://www.codewarrioru.com>
Now Including Palm OS Programming & PowerPlant Courses

Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - - http://www.metrowerks.com