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 on F28335 - remaining question...

All:

I have answers to the following questions Except the flash - is the InitFlash( ) still needed, or is that covered by SYS/BIOS setting(s)?

All other questions were answered in the C2000 forum.

 

(Below is main( ) from the Delfino multi-day workshop edition of DSP/BIOS.)

void main(void)
{
//--- CPU Initialization
 InitSysCtrl();      // Initialize the CPU (FILE: SysCtrl.c)   Question: Is this still required with SYS/BIOS?
 InitGpio();       // Initialize the shared GPIO pins (FILE: Gpio.c) - I can only assume that this is still required...  
 InitPieCtrl();      // Initialize and enable the PIE (FILE: PieCtrl.c)  Question:  Is this still required?
 InitWatchdog();      // Initialize the Watchdog Timer (FILE: WatchDog.c)  Again - is this still required?

//--- Copy all Flash sections that need to run from RAM (use memcpy() from RTS library)  -- I would assume this is still required...

// Section secureRamFuncs contains user defined code that runs from CSM secured RAM
 memcpy(&secureRamFuncs_runstart, &secureRamFuncs_loadstart, (Uint32)&secureRamFuncs_loadsize);

//--- Initialize the Flash and OTP  -- again, I would assume this is still required...
 InitFlash();      // Initialize the Flash (FILE: Flash.c)

//--- Peripheral Initialization -- I would assume this is still required, for each peripheral being used.
 InitAdc();       // Initialize the ADC (FILE: Adc.c)
 InitEPwm();       // Initialize the EPwm (FILE: EPwm.c)
 InitECap();       // Initialize the ECap (FILE: ECap.c)
 InitDma();       // Initialize the DMA (FILE: Dma.c)

//--- Enable global interrupts
         // DSP/BIOS will enable global interrupts (INTM and DBGM)

//--- Main Loop
         // while() loop removed to enable DSP/BIOS


} //end of main()

  • initFlash() is still required.  SYS/BIOS does not program the FLASH wait states for the 2833x device.   

    For Concerto, we do program the cache wait states using the 'ti.catalog.c2800.concertoInit.Boot' module.   

    Not sure why we don't do the same for older C28x devices.

    -Karl-