Hi folks,
I am learning to use the Flash API on F28379d Launchpad. Refering to https://www.ti.com/lit/ug/spnu629a/spnu629a.pdf?ts=1712174648571 , following the implemetation examples, my plan is to add the flash operations into my application code.
In the implementation examples the guide provided, before the flash API functions gets called, it has several function calls which seems to do initialization:
Sample Implementation
#include “F021_F2837xD_C28x.h”
#define CPUCLK_FREQUENCY 200 /* 200 MHz System frequency */
int main(void)
{
// Initialize System Control:
InitSysCtrl();
// Call Flash Initialization to setup flash waitstates
// This function must reside in RAM
InitFlash();
// Gain pump semaphore
// This function is available in the F2837xD device_support folder in the C2000Ware
SeizeFlashPump();
//Jump to RAM and call the Flash API functions
Example_CallFlashAPI();
}
I tried to put the function calls into my main() function too, before the flashAPI function used. However, I could not find in the guide doc, that where these init functions:
InitSysCtrl(),
InitFlash(),
SeizeFlashPump()
come from. I tried to include several possibly related header files, but doesn't work: (also ensured the include path have device_support/2837xD/common/include and /header/include)

After that, but checking example flash_programming_dcsm_cpu1 that TI provided, it seems functions InitSysCtrl(), InitFlash() come from F2837xD.SysCtrl.c:

However, I didn't find proper way to include correct header to use that. I tried to add this .c file to my project, but generates lot not-defined errors during build I guess I still missed something.
Could you share some information of proper way to use these functions, so that I can follow the flashAPI reference in my code?
Regards,
Wei



