Hello,
I would like to use the eeprom on my k60 kinetis so I found the example supply with th TWRkit.
When I launch the program the EEPROM still lock and never ready, the program are still running at that sentence:
/* Wait for the command to complete */ | |
while(!(FTFL_FCNFG & FTFL_FCNFG_EEERDY_MASK)); |
Can someone help me?
Best regard.
I just notice that I get the TWR_K60N512 and there is not FLEXNVM memory, it is a devices with program flash only.
So I can use the flash to store all the data? How can I setup the flash part (at that range adress 0x1400_0000–0x17FF_FFFF) to b able to use it?
Is there any example?
More informations about my problem.
I try to put my program into RAM and try to write on flash blocks. But I still have Hard fault and vector 3 interrupt.
Is it really possible to write in flash memory?
Please ... :smileysad:
Hello Xavier:
I noticed you submitted a Service Request about these questions. Are your doubts clarified?
Just to summarize:
- You are correct, K60N512 does not have Flex NVM. But yes, you can still use part of the program flash to store non volatile data.
- You cannot use range 0x1400_0000–0x17FF_FFFF, since this is not present in your device.
- The available flash memory in K60N512 is from 0x00000000 to 0x0007FFFF.
- For Flash memory storage and code examples, you can refer to Freescale Standard Software Driver (C90TFS), downloadable from the next link:
http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe
I hope this helps.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello,
Thank you for your attention.
I finally achieve to ake it work. In my message I made a mistake, I did
wrote in the right part of the memory (0x00000000 to 0x0007FFFF.) but I
forget to setup the configuration of the flash memory.
Thank you again.
Best regard.
2014-09-09 4:02 GMT+02:00 Jorge_Gonzalez <admin@community.freescale.com>:
<https://community.freescale.com/>
EEPROM TWRkit
reply from Jorge_Gonzalez
<https://community.freescale.com/people/Jorge_Gonzalez?et=watches.email.thread>
in * Kinetis Microcontrollers* - View the full discussion
<https://community.freescale.com/message/433553?et=watches.email.thread#433553>