SWAP Flash ACCERR Error AN4533 on TWR-K60N512

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

SWAP Flash ACCERR Error AN4533 on TWR-K60N512

Jump to solution
960 Views
alfredogualdron
Contributor III

Hello, I'm trying to implement the flash swap function in one of my projects in order to be able to update the firmware remotely.

I read the AN4533 and I try to run the example software on my K60 tower.

I'm using codewarrior Version: 10.3 Build Id:121211, and TWR-K60N512 (700-26548 RevB)

and currently I'm using the P&EMicro Multilink USB device instead of OSJTAG.

The problem is when I run the swap_demo code it returns the folowing:

External Pin Reset

K60-144pin      Silicon rev 1.0 

Flash parameter version 0.0.0.0

Flash version ID 0.0.0.0

512 kBytes of P-flash P-flash only

128 kBytes of RAM

/********************************************************/

/*              Flash Block Swap Demo                   */

/********************************************************/

Program Flash Block 0 located at address 0x0000

Executing from Program Flash Block 0

Initializing Flash Driver: Success!

Checking Swap System Status: Failed!

Error: FTFx_ERR_ACCERR

I checked the register in the reference manual, but still not understand what is wrong.

I'm trying to debug the example code to figure out where the error occurs, it seems to be at FlashCommandSequence() function when executing pPFlashGetSwapStatus().

I'm pretty new in this feature and I do not have any idea of what is wrong, where I have to check or what can I do to solve the problem. I'm lost.

If you have any idea I will be happy to know...

thanks

Labels (1)
0 Kudos
1 Solution
459 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Alfredo gualdron,

Actually the swap feature is not supported by the device on TWR-K60N512 Rev B, the mask set on the MCU is 0m33z, which has an errata as below:

e3855: FTFL: The SWAP feature is not supported.

Errata type: Errata

Description: The SWAP feature is not supported via the Swap Control Command.

Workaround: The SWAP feature is not supported and any attempt to use the Swap Control command will

result in an error (FSTAT[ACCERR] will be set).

Please try the 120MHz/150MHz demo on TWR-K60F120M or TWR-K70F120M instead.

Sorry for the confusion that has caused.

Please kindly let me know if you have any further issue.

B.R

Kan

View solution in original post

0 Kudos
1 Reply
460 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Alfredo gualdron,

Actually the swap feature is not supported by the device on TWR-K60N512 Rev B, the mask set on the MCU is 0m33z, which has an errata as below:

e3855: FTFL: The SWAP feature is not supported.

Errata type: Errata

Description: The SWAP feature is not supported via the Swap Control Command.

Workaround: The SWAP feature is not supported and any attempt to use the Swap Control command will

result in an error (FSTAT[ACCERR] will be set).

Please try the 120MHz/150MHz demo on TWR-K60F120M or TWR-K70F120M instead.

Sorry for the confusion that has caused.

Please kindly let me know if you have any further issue.

B.R

Kan

0 Kudos