I am using MK10DX128 series.
I am using the Flash driver "Standard Software Driver for C90TFS/FTFx Flash" provided by Freescale to write to internal flash.
The FlashProgramPhrase() API fails with ACCERR. FlashEraseSector () API called just before this worked.
Went through the data sheet and driver manual. I am having no clue on this.
Any help will be really helpful