K64 - Non-FlexNVM - Programming Acceleration RAM

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

K64 - Non-FlexNVM - Programming Acceleration RAM

Jump to solution
1,008 Views
JHinkle
Senior Contributor I

The K64 - Non-FlexNVM device has 4K of Programming Acceleration Ram that is intended to be used when programming a Sector of Flash Memory.

Outside of Flash Programming - can that 4K of ram be used?  As data storage ram?

Thanks.

Joe

1 Solution
749 Views
mjbcswitzerland
Specialist V

Hi Joe

The "Programming Acceleration RAM" is used only by the "PROGRAM SECTION" command (FCMD_PROGRAM_SECTOR 0x0b).


If this programming method is not used (it is not a particularly interesting method - it may be a little faster but can only be used when programming a buffer starting on a 4k boundary) the RAM can be used for any other purpose.
It can also be used temporarily since it is the Flash programming code that needs it (and so changes it) and otherwise its content is stable - it is in fact initialised to all 0xff after a reset.

Regards

Mark

Kinetis for professionals: http://http://www.utasker.com/kinetis.html

View solution in original post

5 Replies
750 Views
mjbcswitzerland
Specialist V

Hi Joe

The "Programming Acceleration RAM" is used only by the "PROGRAM SECTION" command (FCMD_PROGRAM_SECTOR 0x0b).


If this programming method is not used (it is not a particularly interesting method - it may be a little faster but can only be used when programming a buffer starting on a 4k boundary) the RAM can be used for any other purpose.
It can also be used temporarily since it is the Flash programming code that needs it (and so changes it) and otherwise its content is stable - it is in fact initialised to all 0xff after a reset.

Regards

Mark

Kinetis for professionals: http://http://www.utasker.com/kinetis.html

749 Views
scottm
Senior Contributor II

Hi Mark,

I can see the program acceleration RAM in the IDE's memory view, but past 0x14000800 I'm seeing a repeating pattern with 00 00 mixed in with the FFs.  Is this an indication that the memory is being used?  Or to put it another way, are you sure about it getting filled with FF?  I'm only using flash self-programming just prior to firmware updates (commands are passed to the bootloader in a temporary flash area in case it needs to resume an interrupted update) and I can safely lose the contents of the acceleration RAM when that happens - I just want to make sure it's not getting clobbered by something else if I use it for general-purpose RAM.  Because I could always use an extra 4 kB...

Thanks,

Scott

0 Kudos
749 Views
mjbcswitzerland
Specialist V

Scott

The all FF is something that I have observed but it may be that it is a copy of a part of Flash (0xff when erased) whereby your Flash has data in it.

I haven't seen any information about what it is expected to be so it would be prudent to assume that it is unknown after a reset, for example, to avoid any risks.

Regards

Mark

0 Kudos
749 Views
scottm
Senior Contributor II

Unknown after reset is fine, and it's what I would have assumed until I saw your message.  =]  Just wanted to make sure you didn't have some inside knowledge that it was always supposed to be wiped at reset.  Thanks!

Scott

0 Kudos
749 Views
JHinkle
Senior Contributor I

Thanks Mark -- I thought it was available for non-flash usage.

Joe