Trouble with eeprom on mk22fx512avll12 with kds pe

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

Trouble with eeprom on mk22fx512avll12 with kds pe

573 Views
pem
Contributor I

when i use pe to generate code with eeprom. i found fuction 'Cpu_GetFlexNVMPartitionCode()' always return 0x0.

then i look up the source code, i found that the code generated with pe use wrong 'DFLASH_IFR_READRESOURCE_ADDRESS' with fuction 'FTFE_PDD_Cmd_ReadPartition_Init()'.

it must be 0x8003f8,but it was 0x8000fc just like 'FTFL' module.

the chip must be 'FTFE' module.

also i found that 'FTFE_PDD_Cmd_ReadPartition_GetEepromDataSize()' and 'FTFE_PDD_Cmd_ReadPartition_GetEepromBackUpSize' read wrong register.

it used like 'FTFL' module,that is 'FTFE_FCCOB4_REG' and 'FTFE_FCCOB5_REG'.

it must be 'FTFE_FCCOBA_REG' and 'FTFE_FCCOBB_REG'.

i corrected the source code, then it return the right PartitionCode.

!Please update the package as soon as possible to correct the error

0 Kudos
1 Reply

369 Views
marek_neuzil
NXP Employee
NXP Employee

Hello,

Thank you for reporting of this issue. I have reproduced the issue in the KDS 3.0.0, in Kinetis project with Processor Expert. But it seems that the issue is related to the MK22FX512VLL12 derivative (MK22FX512AVLL12 CPU does not support the Cpu_GetFlexNVMPartitionCode() method).

The issue will be fixed by Processor Expert development team.

Best Regards,

Marek Neuzil

0 Kudos