Tool/software:
Hi,
I am debugging the TMS570LS0714 flash with F021, and I found that the Fapi_initializeFlashBanks function returns the error Fapi_OtpChecksumMismatch.
I have set SYS_CLK_FREQ to 100MHz, RWAIT to 1,and EWAIT to 5.
The code as follows:
status = (Fapi_initializeFlashBanks((uint32_t)SYS_CLK_FREQ));
if (status == Fapi_Status_Success)
status = (Fapi_initializeFlashBanks((uint32_t)SYS_CLK_FREQ));
if (status == Fapi_Status_Success)
I have also noticed that FallbackPower mode register does not try to activate bank0 and bank 7, even though when i hardcode it to activate both of them
When I try to see FBusy register, it shows both of the banks are not implemented.
Is there anything Im missing while initializing the flash?
The initialization follows as:
flashWREG->FRDCNTL = 0x00000000U
| (uint32)((uint32)1U << 8U)
| 1U;
/** - Setup flash access wait states for bank 7 */
FSM_WR_ENA_HL = 0x5U;
EEPROM_CONFIG_HL = 0x00000002U
| (uint32)((uint32)5U << 16U) ;
/** - Disable write access to flash state machine registers */
FSM_WR_ENA_HL = 0xAU;
/** - Setup flash bank power modes */
flashWREG->FBPWRMODE = 0x00000000U
| (uint32)((uint32)3 << 14U) /* BANK 7 */
| (uint32)((uint32)3 << 0U); /* BANK 0 */
| (uint32)((uint32)1U << 8U)
| 1U;
/** - Setup flash access wait states for bank 7 */
FSM_WR_ENA_HL = 0x5U;
EEPROM_CONFIG_HL = 0x00000002U
| (uint32)((uint32)5U << 16U) ;
/** - Disable write access to flash state machine registers */
FSM_WR_ENA_HL = 0xAU;
/** - Setup flash bank power modes */
flashWREG->FBPWRMODE = 0x00000000U
| (uint32)((uint32)3 << 14U) /* BANK 7 */
| (uint32)((uint32)3 << 0U); /* BANK 0 */
Thanks