Tool/software:
I am having issues writing to and erasing secured flash memory. All my flash and RAM sectors belong to zone 1 (verified by looking at the appropriate SECT/RAMSTAT registers) and my flash functions are running from RAMLS1 (which I have checked is a secure RAM block). Fapi_issueProgrammingCommand returns a success but Fapi_doVerify return the generic error. If I unlock the zone prior to writing/erasing the flash write and erase functions work as expected. Read access seems to work without unlocking. Is this the intended behaviour? Section 5.3 of the technical reference manual seems to suggest that as long as code is executing from the same secure zone, it should have full read/write/erase access.