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.
I am working on flashing the AJSM registers along with the associated ECC bits. What I have found is that I can write the OTP bits assuming I don't use Fapi_AutoEccGeneration. If I do use Fapi_AutoEccGeneration, no errors are returned or aborts thrown, but nothing changes in flash. This may not be specific to the OTP bits, as I have not tried flashing ECC bits using the F021 library to any other flash either.
while( FAPI_CHECK_FSM_READY_BUSY != Fapi_Status_FsmReady ); Fapi_StatusType status = Fapi_setActiveFlashBank(Fapi_FlashBank0); if(status) return status; while( FAPI_CHECK_FSM_READY_BUSY != Fapi_Status_FsmReady ); status = Fapi_enableBanksForOtpWrite(0x1U); if(status) return status; while( FAPI_CHECK_FSM_READY_BUSY != Fapi_Status_FsmReady ); status = Fapi_issueProgrammingCommand((uint32_t *)(0xF0000000), key->key, 16, NULL, 0, Fapi_AutoEccGeneration);//TODO: Not sure if autogenerate works. if(status) return status; while(FAPI_CHECK_FSM_READY_BUSY != Fapi_Status_FsmReady); status = Fapi_disableBanksForOtpWrite(); while(FAPI_CHECK_FSM_READY_BUSY != Fapi_Status_FsmReady);
I was wondering if the issue was related to that, as I noticed that value in the ECC space. This really limits the range of possible keys. Is there any way on this platform to use an arbitrary AJSM key? Is there a way for me to generate a random key, zero out a few bits maybe, and have it work without getting an ECC error?