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.

TMS320F28069: Can I copy Ram function into ROM before initializing Flash Waitstate and other system initialization?

Part Number: TMS320F28069

Hi,

I need to know  that can I copy RAM function into ROM ( memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (Uint32)&RamfuncsLoadSize)) before calling InitSysCtrl()? I have seen in example that InitSysCtrl() function call first than memcpy().

I have attached code please check this initialization sequence is right?

int main()
{
 
    memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (Uint32)&RamfuncsLoadSize);
    
    InitSysCtrl();

    Gpio_select();

    /* Clear all interrupts and initialize PIE vector table:
       Disable CPU interrupts
     */
    DINT;


    /* Initialize PIE control registers to their default state.
       The default state is all PIE interrupts disabled and flags
       are cleared.
     */
    InitPieCtrl();

.....
.....
}

  • Hello

    I assume you mean copying from ROM to RAM. 

    That will work, but just be slower. InitSysCtrl is going to enable the PLL for faster operation.

    Make sure to keep watchdog in mind as well. InitSysCtrl by default disables it.

    Best regards

    Chris