Processor Expert FLASH_LDD erase function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Processor Expert FLASH_LDD erase function

556 Views
superdiode2
Contributor I

Hi,

I'm working on a Mk10DX128VLH7 kinetis device. I try to erase a sector in the FlexNVM memory (there isn't partitions).

The problem is on function FLASH1_Erase (the name of the bean is FLASH1) that verify the size of the sector with 2K, but the datasheet of the microcontroller specify 1Kb size for the FlexNVM memory. If I modify these check to run with 1Kb sector, the microcontroller resets itself. With original code (writing to erase a 2Kb sector), the first 1Kb of sector is erased, but not the other 1Kb. In a large operation, the results is a 1Kb erased, 1Kb not erased, 1Kb erased, 1Kb not erased....

How can I erase these sectors of FlexNVM?

Thanks in advance.

0 Kudos
1 Reply

308 Views
marek_neuzil
NXP Employee
NXP Employee

Hello,

This is known issue of CW MCU 10.6.x, see below. The Processor Expert development team has provided hot fix for this defect, see the attached file.

ENGR00353885

The FLASH_LDD component does not support different block size of FLASH memory on one CPU. E.g. MK10dX128 has PFLASH area (2KB) and DFLASH area (1KB). The generated code of this

component erases only larger blocks.

Best Regards,

Marek Neuzil

0 Kudos