Forums

DSP56F805 PRAM

Started by yurubutugralb March 2, 2005


Making a Bootloader (that must not use interrupts).

Trying to write to PFIU from code resident in PRAM.

When run full-mode, outside the IDE, the code in PRAM is not
being jumped to. When in IDE, all OK.

(CodeWarrior 5.1 non-SDK, no libs, straight C)
(Call stack is its usual scrambled self!)

Would appreciate any sugg
thanks



When using the IDE, CodeWarrior may be initializing the PRAM for you. When not using the IDE, the PRAM must be initialized by your software (i.e. copy code from Flash to PRAM).

Since you are using the 56F805, I would recommend putting your Bootloader in the boot flash. The program and data flash can be modified by code executing from boot flash. This is how the serial bootloader, which Freescale supplies, works. >
>
>Making a Bootloader (that must not use interrupts).
>
>Trying to write to PFIU from code resident in PRAM.
>
>When run full-mode, outside the IDE, the code in PRAM is not
>being jumped to. When in IDE, all OK.
>
>(CodeWarrior 5.1 non-SDK, no libs, straight C)
>(Call stack is its usual scrambled self!)
>
>Would appreciate any sugg
>thanks >
>