This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

sys bios: TMS320F2808: code within ramfunc not working

Other Parts Discussed in Thread: TMS320F2808, SYSBIOS

Hi

I am using TMS320F2808 for sysbios.

I have created CAN TX HWI  (ICan_Ch1_HWI) interrupt using sysbios. But when I # pragma this code with ramfunc it does not work but if i comment it out it works.

I am using tms320f2808.cmd  (project wizard created)

I want to run by calling it from RAM. Why it is not working please guide me.... I searched it lot but not found suitable answer.

#pragma CODE_SECTION( "ramfuncs" )
extern "C"
void ICan_Ch1_HWI(void)
{
    InternalCan.Channel1_HWI();
}

Thanks

newbee

  • You will need to make sure your application code actually copies this section from flash to RAM prior to any execution of this code.

    Have you done this?

    This may not be the issue, but it certainly is an issue if a copy has not been done.