Other Parts Discussed in Thread: HALCOGEN, TMS570LS3137
Tool/software: Code Composer Studio
Can I use Internal memory of TMDS570LS31x to store the run time parameters or some user data (like EEPROM)?
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.
Tool/software: Code Composer Studio
Can I use Internal memory of TMDS570LS31x to store the run time parameters or some user data (like EEPROM)?
You can use following code as an example of using Flash APIs:
This flash API user guide is in the Flash Library installation folder:
Could you please provide me basic example code on how to read and write data to internal memory of TMS570LS3137.
SYS_CLK_FREQ = 160;
status=Fapi_initializeFlashBanks((uint32_t)SYS_CLK_FREQ);
Fapi_setActiveFlashBank((Fapi_FlashBankType)1);
Fapi_enableMainBankSectors(0xFFFF);
while( FAPI_CHECK_FSM_READY_BUSY != Fapi_Status_FsmReady );
while( FAPI_GET_FSM_STATUS != Fapi_Status_Success );
/*erase sector*/
Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector, ( uint32_t *)0x200000);
while( FAPI_CHECK_FSM_READY_BUSY == Fapi_Status_FsmBusy );
while(FAPI_GET_FSM_STATUS != Fapi_Status_Success);
Fapi_issueProgrammingCommand((uint32_t *)dst, (uint8_t *)src, (uint32_t)bytes, 0, 0, Fapi_AutoEccGeneration);
while( FAPI_CHECK_FSM_READY_BUSY == Fapi_Status_FsmBusy );
while(FAPI_GET_FSM_STATUS != Fapi_Status_Success);