Hi All,
I'm using DSP 56f8367. Programming with CodeWarrior.
My software is handled by MicroC/OS-II RTOS.
The problem is that when I try to save some data writing into the flash memory the DSP lose the control.
If I'm in debug mode the code execution finish into:
"#pragma interrupt alignsp
void Cpu_Interrupt(void)
{
asm(DEBUGHLT);
}"
this are the steps I use to call the processor expert routine that write the flash memory:
OSIntEnter();
err = Flash_SetByte(address*2 , *cast_byte);
OSIntExit();
The OSIntEnter() is used to tell to the RTOS that the DSP is about to service an interrupt service routine (ISR).
The address I use starts from the:
DATA_FLASH_START 16384
till 16484
any Ideas on what I wrong?