the flahx of k60 read fail some times

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

the flahx of k60 read fail some times

7,231件の閲覧回数
yangzhenshang
Contributor I

the flahx of k60 read fail some times,cannot run out of read()function ;and,eVen can not read by J-link8(see attachment),but,when erase full chip,all is OK,why?,the chip is  broken?

ラベル(1)
タグ(1)
0 件の賞賛
返信
15 返答(返信)

7,028件の閲覧回数
mjbcswitzerland
Specialist V

Hello

This effect is common when software has written to a Flash area more than once. Eg. A value in the Flash is not 0xffffffff but SW programs it again.

The software making the error could be embedded code incorrectly writing to Flash or it could be a debugger incorrectly programming an address more than once.

A chip erase recovers the Flash area.

The Flash/chip is therefore (probably) OK but you will need to find out what is writing the memory incorrectly.

Regards

Mark

Kinetis: µTasker Kinetis support

K60: µTasker Kinetis TWR-K60N512 support  / µTasker Kinetis TWR-K60D100M support  / µTasker Kinetis TWR-K60F120M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 件の賞賛
返信

7,028件の閲覧回数
yangzhenshang
Contributor I

I think  MQX write and read functions  have congirm all that, and how can I find out the "software making"?"thks.

0 件の賞賛
返信

7,028件の閲覧回数
yangzhenshang
Contributor I

Flash clock is 20MHz .divider is 6,now one chip broken down again ,can not write flash data second time ,first time  OK.

0 件の賞賛
返信

7,028件の閲覧回数
yangzhenshang
Contributor I

目前情况这样:

1、我分两次写入相邻的两块flash区域(连续地址0x7fe00-0x7ffff),每次写入29字节,第一次写入正常,第二次写入时候提示出错;但是写入字节数更改16字节,两次写入都正常;

2、考虑可能太靠近0x80000地址,我把写入地址更改为0x7f100,两次分别写入相邻的地址,每次写入29字节,第二次依然写入失败,通过JTAG看memory只写入了前5个字节;

3、把两次写入地址间隔开,即第一次写入地址0x7f100,第二次写入地址0x7f300,每次写入29字节,两次写入都正常;

MQX版本是4.1.2,如果更改MQX新版本的话改动太大,一时半会实现不了,请求继续分析,谢谢。

0 件の賞賛
返信

7,028件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

The MQX Flash write operation calls  Program Phrase command, which requires Flash address 8 bytes align.

So, it need the program byte number be integer times of 8.

Wish it helps.


Have a great day,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

7,028件の閲覧回数
yangzhenshang
Contributor I

But, why that is OK when Chang the  address ,and why the fitst time is OK?

0 件の賞賛
返信

7,028件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

If the issue was fixed with the latest MQX V4.2 flash driver?

Please let us know if the issue still there. Thanks.


Have a great day,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

7,028件の閲覧回数
yangzhenshang
Contributor I

I just changed the address,could you have a try with MQX4.2?  thanks。

0 件の賞賛
返信

7,028件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

I had tried MQX V4.2 Flash driver with TWR-K70F120M without any problem.


Have a great day,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

7,028件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Could you check the Flash address 0x40C's value?

I am concerning the Kinetis chip was secured and it could not be read out from the JTAG interface.

Please let me know if there still with the same issue.


Have a great day,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

7,028件の閲覧回数
egoodii
Senior Contributor III

Can you also confirm your flash-clock divider for us?

0 件の賞賛
返信

7,028件の閲覧回数
yangzhenshang
Contributor I

Hi,

Data can read out from the JTAG interface(see attachment),but “memory read fail(0x0007FFE0)”,Now I erase the full chip,all is ok。

why, I worry about all this, maybe that will broke down again

Also J-link can erase sections and program。

0 件の賞賛
返信

7,028件の閲覧回数
egoodii
Senior Contributor III

What is the mask-version text on the part?

0 件の賞賛
返信

7,028件の閲覧回数
yangzhenshang
Contributor I

mask-version text is:

MK60FX512VLQ15

3N96B

QCTAG1430L

0 件の賞賛
返信

7,028件の閲覧回数
yangzhenshang
Contributor I

mask-version text is:

MK60FX512VLQ15

3N96B

QCTAG1430L

0 件の賞賛
返信