Is FlashX-SWAP available on TWR-K60N512?

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

Is FlashX-SWAP available on TWR-K60N512?

1,056 Views
michaelschwager
Contributor III

Hi, I'm looking for flashx-swap example for TWR-K60N512.

The chip, PK60N512VMD100, appears to support separate flash banks, based on the reference manual K60P144M100SF2V2RM.

However the only K60 examples that appear for flash are for twrk60d100m and twrk60f120m.

The flash_ftfl_prv.h file shows FTFL_SWAP_SUPPORT which is not defined.

So it looks like either a) I'm reading the datasheet wrong, or b) this functionality is not (yet?) supported in TWR-K60N512.

Is there any way to get flash swap functionality for this board/chip?

thanks

5 Replies

725 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi

You can read the following application note 4533, it describes flash memory swap on Kinetis MCU. And the software is based on TWR-K60N512

http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4533.pdf


Have a nice day,
Daniel

0 Kudos
Reply

725 Views
RadekS
NXP Employee
NXP Employee

It depends on maskset revision of MCU which is assembled on your TWR-K60N512 board.

According AN4533:

Kinetis 100 MHz revision 1.4 or later required. The mask set number marked on the

package is 4N30D. Subsequent revisions may be marked 5N30D, and so on. Revisions

earlier than revision 1.4, may not support swap or may disable the Erase-All-Blocks

command after swap initialized. Thus, on those early revisions, some debuggers will not

be able to re-download to flash if they rely on the Erase-All-Blocks command to preerase

the flash. Additionally, it was not possible to set the swap system back to

uninitialized on those early devices.

So, Flash swap as is described in this AN and as it works in flashX driver will not work with old masksets 0M33Z, 0N30D, 1N30D and 2N30D.

Since some of TWR-K60N512 was assembled with oldest maskset 0M33Z and some of them was assembled with 4N30D, MQX doesn't contain directly project for TWR-K60N512 board.

I hope it helps you.

725 Views
michaelschwager
Contributor III

Thank you again, this explains a lot of what I'm seeing.

My TWR-K60N512 has PK60N512VMD100-0M33Z (v1.0)

If I order a new TWR-K60N512 pcb will I get a >= 1.4 version of the chip that supports flash swap, ie >= 4N30D

This is to mimic my custom board based on MK60DN512ZCAB10-8N30D (v > 1.4?)

Also, must I order TWR-K60D100M to mimic my other custom board based on MK60DN512VLQ10-4N22D (v > 2.2?)

I'm trying to debug why flashx seems to work funny when ethernet is enabled.  I cannot so far reproduce the error on Tower systems, only on my hardware.

Thank you very much

0 Kudos
Reply

725 Views
RadekS
NXP Employee
NXP Employee

In fact, TWR-K60N512 is legacy board and it is no longer manufactured.

So, if you will be lucky and you will buy it, it will be from some stock and I cannot estimate exact version of maskset.

Yes, masksets 0N30D ~8N30D should be functionally the same and differences are mainly in bug fixes.

Yes, TWR-K60D100M is replacement for TWR-K60N512 and it will mimic chips from 2.x generation (part number with D/F and without Z)

Note: There is known issue with TWR-K53N512 board. This board was originally assembled by chip from 1.x generation and MQX BSP refers to that fact. Unfortunately current TWR-K53N512 boards are assembled by chips from 2.x generation and MQX BSP didn't fits to this MCU (board was not renamed). Customer must clone TWR-K60D100M BSP and reconfigure for work with new TWR-K53N512 board.

0 Kudos
Reply

725 Views
michaelschwager
Contributor III

Hi Radek,

Thank you for confirming.  I have requested an appropriate PCB for K60N512 from my local support guys (Ken and Chet).  I won't be using K53 anyway, but it's good to know the issues.

Thank you

Michael

0 Kudos
Reply