I did not see anything like this specific issue in the E2E.
I am trying to use the Flash API (2.01) to use for user-configuration storage in flash, which only partially works. On boot-up, I am enable to erase the flash, and write in the default values; however, during run-time, if I attempt to erase the flash and program new values, I get a data-abort. The abort consistently occurs after the second-erase and within the Fapi_initializeFlashBanks prior to programming.
My code adheres to the flowcharts shown in F021 API Vers2_01 spnu501h.pdf, and I also tried adding in a Fapi_enableAutoEccCalculation, but that had no effect. All of my Fapi calls return Fapi_Status_Success and the initial flash writes appear to be good data, but I could not find the associated ECC values for a flash-write to 0x00200000(Flash1). I am also calling Fapi_issueProgrammingCommand with 8 bytes of data at a time (tried 16) with an argument of Fapi_AutoEccGeneration.
I suspect this is an ECC issue, but I don't know how to confirm that -- is there a status register that indicates a flash-ECC error occurred?
Also do you have sample Flash-API code that fits/integrates within the HalCoGen-generated code?
Thanks,
Jim