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()