DSPRelated.com
Forums

Running programme from Flash memory

Started by manoj upadhye May 20, 2002
i am running my .out file by keeping some part of it
in external memory SRAM.If I keep it in the FLASH will
it be faster in comparision to SRAM access?
(I am suspicious due to increase in wait states
inserted).If I want to keep the part in FLASH how
shall I do it?the help file says I should set
'flashnb' bit?where in CNTL1?
how to access CNTL1 and set the FLASHNB bit?

thanks and regards.




Subject: Re: Running programme from Flash memory

** Proprietary **

Message: 1
Date: Mon, 20 May 2002 05:35:38 +0100 (BST)
From: manoj upadhye <>
Subject: Running programme from Flash memory

i am running my .out file by keeping some part of it
in external memory SRAM.If I keep it in the FLASH will
it be faster in comparision to SRAM access?
(I am suspicious due to increase in wait states
inserted).If I want to keep the part in FLASH how
shall I do it?the help file says I should set
'flashnb' bit?where in CNTL1?
how to access CNTL1 and set the FLASHNB bit?

thanks and regards. HI manjoj

yes u are correct when u put some code into flash and try to run then it will be
a lot slower because of the acess time.ur DSP runs at 10 ns while flash will be
somewhere at 45ns or 90 ns so every time u acess some program memory DSP will
run slower because of wait states, but this is not the case with SRAM in DSK
which like DSP has a 10ns acess time.U can transfer the full program into FLASH
memory using flash programmer and after transfering replace the jumper j2 to
connect pin 1 & 2.After that if u are debugging from ccs then goto view memory
for 0x0004 of I/O
and there change the FLASHENB bit set to 1.

u can also acess the CNT1 (0x0004 of I/O) thru c or assembly regards

Vinodh Rathna. N.Vinodh Rathna
Associate Software Engineer
L&T Emsys Mysore
phone : 91-821-402561 ext 2716
FAX : (91)-821-403752