Technical discussions about the TI C28x DSPs (including the C2810, C2811, C2812, F2801, F2806, F2808, F2810,, F2811, F2812, R2811 and R2812).
Hi everyone,
Can anybody help me how to copy code from FLASH to RAM.Because I think we cann't
execute directly our code from FLASH with INTERRUPTS.So I need to copy my code from FLASH to
RAM.If anybody has done already this,can you give me the example codes,so that I can better
understand.Is there any other method to execute code from FLASH without copying to RAM with
interrupts.
You can post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/c28x/1.php
_____________________________________
>>> I think we cann't execute directly our code from FLASH with INTERRUPTS
I don't know why you say this. Explain please, I see no reasons about=20
that.
To copy Flash to RAm, see this :
// Copy time critical code and Flash setup code to RAM
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, &RamfuncsLoadEnd -=20
&RamfuncsLoadStart);
// Call Flash Initialization to setup flash waitstates
// This function must reside in RAM
InitFlash();
RamfuncsRunStart, RamfuncsLoadStart, and RamfuncsLoadEnd variables are=20
defined from the cmd file as this :
internfuncs :
{
main.obj(.text) // Replace with=20
all object that needed run in RAM
}=20
LOAD =3D FLASH_CODE, PAGE =3D 0 // Load in Flash
RUN =3D H0RAM_P, PAGE =3D 0 // Run in=20
Internal RAM
LOAD_START(_RamfuncsLoadStart),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart)
I hope it will help? There is SPRU*** Ti documentations about this, don't=20
remember the numbers.
Veuillez r=E9pondre =E0 h...@gmail.com
Envoy=E9 par : c...@yahoogroups.com
Pour : c...@yahoogroups.com
cc :=20=20=20=20=20
Objet : [c28x] how to copy from FLASH to RAM
Hi everyone,
Can anybody help me how to copy code from FLASH to RAM.Because=
=20
I think we cann't execute directly our code from FLASH with INTERRUPTS.So=20
I need to copy my code from FLASH to RAM.If anybody has done already=20
this,can you give me the example codes,so that I can better understand.Is=20
there any other method to execute code from FLASH without copying to RAM=20
with interrupts.=20
You can post a message or access and search the archives of this group on D=
SPRelated.com:
http://www.dsprelated.com/groups/c28x/1.php
_____________________________________
=20