dspic 33f RAM area

  • Follow


Hi im using DSPIC33f for bootloader development. is it possible to put code
in the ram memory and execute it? nowhere in the manual it s given that we
can use RAM for code execution. can anybody suggest me how to execute
program from ram?

or is it possible to program flash memory using a code resides in flash
itself??




0
Reply nithyaa (1) 10/13/2009 10:09:32 AM

nithya11111 wrote:
> Hi im using DSPIC33f for bootloader development. is it possible to put code
> in the ram memory and execute it? nowhere in the manual it s given that we
> can use RAM for code execution. can anybody suggest me how to execute
> program from ram?
> 
> or is it possible to program flash memory using a code resides in flash
> itself??

What does the manual say?

Jerry
-- 
Engineering is the art of making what you want from things you can get.
�����������������������������������������������������������������������
0
Reply jya (12866) 10/13/2009 2:43:44 PM


On Oct 13, 3:09=A0am, "nithya11111" <nith...@kpitcummins.com> wrote:
> Hi im using DSPIC33f for bootloader development. is it possible to put co=
de
> in the ram memory and execute it? nowhere in the manual it s given that w=
e
> can use RAM for code execution. can anybody suggest me how to execute
> program from ram?

It's not possible to execute from RAM - the dsPIC series is a modified
Harvard architecture, and while program store is readable as data,
data store is not executable. Note for example that the program store
is 24 bits wide, while the data store is only 16 bits wide.

> or is it possible to program flash memory using a code resides in flash
> itself??

Yes. Program store can be selectively erased and written. The
Microchip website contains numerous datasheets, user guides and
application notes that explain this.

Eric
0
Reply ebrombaugh (78) 10/13/2009 10:38:00 PM

2 Replies
34 Views

(page loaded in 0.075 seconds)


Reply: