Hi,
I need to program the DCSM OTP flash memories for TMS320F28377S device and I have some questions.
In the control suite example folder "controlSUITE\device_support\F2837xS\vX\F2837xS_examples_Cpu1\flash_programming" I can see in the flash_programming_cpu01.c file, the procedures which are needed to run before programing the Bank 0 and Bank 1 flash memories. Concretely this procedures are:
For Bank 0 flash:
InitFlash_Bank0();
SeizeFlashPump_Bank0(), or other pump semaphore command(eg. PUMPREQUEST = 0x5A5A0002;)
Fapi_initializeAPI(F021_CPU0_W0_BASE_ADDRESS, 194);
:Fapi_setActiveFlashBank(Fapi_FlashBank0);
For bank 1 flash:
InitFlash_Bank1();
SeizeFlashPump_Bank1(), or other pump semaphore command(eg. PUMPREQUEST = 0x5A5A0001;)
Fapi_initializeAPI(F021_CPU0_W1_BASE_ADDRESS, 200);
:Fapi_setActiveFlashBank(Fapi_FlashBank1);
My question is: which Fapi_xxx procedures is needed to run before programming the User configurable DCSM OTP Bank 0 and User configurable DCSM OTP Bank ? Procedures for bank 0 or for bank 1? Or DCSM OTP Bank 0 belongs to the bank 0 procedures and DCSM OTP Bank 1 belongs to the bank 1 procedures?
Thanks and regards,
Tomas