can anyone send me kinetis L emmulate eeprom sample code under Codewarrior? I referred an2296, the program routine works under IAR, but can't under Codewarrior.

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

can anyone send me kinetis L emmulate eeprom sample code under Codewarrior? I referred an2296, the program routine works under IAR, but can't under Codewarrior.

803 Views
hotashu
Contributor III

hello,

 

can anyone send me kinetis L emmulate eeprom sample code under Codewarrior? I referred an2295sw, the program routine works under IAR, but can't under Codewarrior10.6.

after copying flash routine from rom to ram, FLASH_FlashCommandSequence can't work, program got fly everytime when run this code.

anyone please send me a demo code on Codewarrior KL flash programming is very appreciated.

Labels (1)
2 Replies

555 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hi hotas,

FLASH_FlashCommandSequence is copied to RAM flash programming routines. from my experience, the CW version flash programming routine code size is larger than IAR version's, increase buffer[128] to buffer[200] to make sure all the flash programming routine is copied to RAM. please try it.


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

555 Views
hotashu
Contributor III

I followed your suggestion that solved our problem.

0 Kudos
Reply