Kinetis K10 Dflash (FlexNVM) using like PFlash for extra memory program???

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

Kinetis K10 Dflash (FlexNVM) using like PFlash for extra memory program???

1,064 Views
Saaac
Contributor I

I want to use part of FLEXNVM memory as program memory, ie:

From FlexNVM, I use to 0x10000000 to 0x10004FFF as memria to store data. and I want the 0x10005000 to 0x10007FFF is Use as program code.

No, for that reason with settings that I do, just takes my 1000 bytes of program. and I get the flash is full.

This is the configuration of the program, having if you see any explanation.

"

ProcessorExpert.lcf

MEMORY {

  m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001BC

  m_text      (RX) : ORIGIN = 0x00000410, LENGTH = 0x0000FBF0

  m_data      (RW) : ORIGIN = 0x1FFFE000, LENGTH = 0x00002000

  m_data_20000000 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00002000

  myrom       (RX) : ORIGIN = 0x10000800, LENGTH = 0x00007800

  m_cfmprotrom  (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010

}

.text :

  {

    * (.text)

    . = ALIGN(0x4);

  } > m_text

  .rom_symbols :

  {

  * (.rodata)

  . = ALIGN (0x4);

  ___ROM_AT = .;

  ___DATA_ROM = .;

  } > myrom

"

attached image of the error


Thanks.

0 Kudos
5 Replies

681 Views
Saaac
Contributor I

One more question, if I can help.

How many times you can erase and write the Flash?

And how many times you can erase and write the EEPROM?

0 Kudos

681 Views
yasuhikokoumoto
Senior Contributor I

Hi Isaac,

I think 0x10007FFF would be a typo of 0x1007FFFF and you need 192KB for the program (or data) flash. Is it correct? Even if it is correct, such the partitioning of FlexNVM will be impossible. Please find attached table shows the valid partitioning and 256KB Data Flash (or Program Flash) is the most nearest to your purpose. However in such the case, Data Flash is assigned from 0x10000000 to 0x1003FFFF and the rest is EEPROM backup area.

The 256KB Data Flash endurance will be forecasted about 10,000 times from the FlexNVM endurance when used as EEPROM.

Best regards,
Yasuhiko Koumoto.

0 Kudos

681 Views
Saaac
Contributor I

Hello Yasuhiko,

Especially thanks for your answer.

I do not understand what you mean to think 0x10007FFF be a typographical error 0x1007FFFF.

Where you see the typographical error 0x1007FFFF where you see it?

and the attached table shows the valid partition, I think you have not attached to the response.

and recordings EEPROM that can be done in the micro, I refer to the EEPROM. (not the FlexNVM working EEPROM), the previous data comes very well. number of recordings can be made in the EEPROM?

Yhank you.

0 Kudos

681 Views
yasuhikokoumoto
Senior Contributor I

Hi Isaac,

the reason is simple. The K10 part has 512KB FlexNVM. The attached table shows you can have only 2 partitions of FlexNVM. One is Data Flash and another is EEPROM backup area. Corresponding area of FlexNVM for EEPROM is unknown because it is controlled by EEE sequencer. Also the EEPROM area is assigned after Data Flash, If your intention is not incorrect, it would be impossible.

Best regards,
Yasuhiko Koumoto.

0 Kudos

681 Views
yasuhikokoumoto
Senior Contributor I

Hi Isaac,

I add an addition information. EEPROM is accessed via FlexRAM and its address is 0x14000000 to 0x14000FFF (4KB case).

Best regards,
Yasuhiko Koumoto.

0 Kudos