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.
Hello,
We are using below tool in our development:
CCS version : 8.0
Flash API : 02.01.01
HALCOGEN : 04.06
We have two images,
1. one which is generated using HALCOGEN tool and
2. another images which executes from RAM with Flash F021 libraries and API's calling to flash images.
Both the images work independently. when we flash HALCOGEN generated image (i.e. image mentioned in 1) using the image executing in RAM (i.e. image mentioned in 2), code is stuck at CheckFlashECC() which is generated by HALCOGEN. can you please help us in identifying the issue?
Thanks,
Kalyan
Hi Wang,
Thanks for your response. I think i haven't conveyed the issue correctly.
We are flashing an image (Image generated by HALCOGEN) using F021 library functions. Below are the PASS and FAIL scenarios:
PASS Scenario:
After successful flashing of image if i power cycle there is no issue in execution of the code.
FAIL Scenario:
After successful flashing of image if i reset just the controller code execution is stuck at CheckFlashECC() function.
NOTE: we are using "Fapi_issueProgrammingCommand" with "Fapi_AutoEccGeneration" as argument of FAPI function.
Can you please let us know why this scenario might happen?
Thanks,
Kalyan
Hello Kalyan,
The sys_startup.c in 2nd image might call CheckFlashECC(), and 1st image may call CheckFlashECC() this function again in its sys_startup.c.
In the PASS Scenario, what is the value in the ESM status registers before jumping to the 1st image?
Hello Kalyan,
Thanks for providing more info. Is the code stuck at the below if(..) statement?
if ((flashWREG->FEDACSTATUS & 0x2U) == 0U)
{
selftestFailNotification(CHECKFLASHECC_FAIL1);
}
What is the ESM value before calling CheckFlashECC(), and the ESM value when the code is stuck?