Need help for LPC54628 random Flash Corruption Issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Need help for LPC54628 random Flash Corruption Issue

11,728 次查看
ritesh_prajapat
Contributor III

Hello Team,

We are using LPC54628 chip into few of our industrial products in which we are facing one issue while accessing flash of LPC54628.

Flash Memory was working fine till few days on LPC54628 Module but suddenly first 4 bytes location may be damaged after that and not able to erase first 4 bytes of Flash Memory.

Due to that we are not able to start boot loader and application image into that board. Also, We have faced same issue into 3 to 4 boards as of now in which there is no any specific steps for that. Sometimes, We flashed boot loader image and we got that issue while sometimes we got that issue runtime into development phase.

Please fine attached screen shot with highlighted 4 bytes of LPC54628 Flash Memory.

Let me know if you have any or any clue for this issue or let me know if need any more details regarding this issue.

标签 (1)
标记 (2)
29 回复数

2,088 次查看
ritesh_prajapat
Contributor III

Thanks.

We will check it and let you know if need any further help for same.

0 项奖励
回复

2,088 次查看
bernhardfink
NXP Employee
NXP Employee

From the description I don't get a clear picture of the issue. Let me try to sort it out:

  • You have an application running in the LPC54628 in your development, it worked for a while and then it stopped. So you started an investigation and saw that something is wrong with the first 4 bytes of the internal flash.
  • You used MCUXpresso and FlashMagic to check the flash content and to erase/program it.

  • The Link-2 adapter together with MCUXpresso seems to work, you can erase and program an application image. This uses SWD on the JTAG port.
  • If you use Flash Magic to read out a flash which is supposed to be programmed, you see the first 4 bytes as 0x00

The algorithms to erase/program/read/verify the internal flash are in ROM code, so whatever tool you use (Flash Magic, Link-2, J-Link, U-Link, i-Jet etc), they all talk to the ISP API in the ROM code. So whatever happens with the flash, the real action comes from the ROM code and not from the external tool. This external tool gives a command and provides the binary to be programmed, nothing else. So I don't expect any magic behavior from the SEGGER J-Link.

If I remember correctly, the Link-2 can be programmed with a SEGGER J-Link firmware, so it behaves like a J-Link adapter.

What remains is maybe a problem with Flash Magic. I tested the actual version 12.25 and also the Classic version 11.20, both read the first sector 0 - 0x7FFF with the first 4 bytes as 0. So I will try to find out what's going on here.

Regards,

Bernhard.

2,088 次查看
ritesh_prajapat
Contributor III

Hello Bernhard,

 

What remains is maybe a problem with Flash Magic. I tested the actual version 12.25 and also the Classic version 11.20, both read the first sector 0 - 0x7FFF with the first 4 bytes as 0. So I will try to find out what's going on here.

Do you have any update regarding this issue?

We are using Flash Magic 12.01 version for our firmware flash or erase purpose over serial or SWD.

 

So, Is it recommended to not to use Flash Magic Tool for Flash Erase or Firmware Flash Purpose? We have tried using MCUXpresso as well into one of faulty board and not getting issue.

 

Please suggest from your side regarding this so that we can have idea to move further for that.

Regards,

Ritesh Prajapati

0 项奖励
回复

2,088 次查看
bernhardfink
NXP Employee
NXP Employee
  • I can't see a useful output of this Read function in Flash Magic for the first 4 bytes in combination with the LPC54628.
  • I tested the latest Flash Magic version in combination with the LPC4357 and I can read the flash content correctly.
  • I also made a crosscheck with the KEIL µVision debugger on the LPC54628 board and I can see true content in the flash.

So it seems that the Read function for the LPC54xxx devices in FlashMagic is doing something wrong.

Or there is a blocking mechanism in the LPCF54628 which prevents a reading via ISP.

My recommendation at the moment is: don't use FlashMagic for this purpose, at least not if want to know the content of the first 4 bytes.

I will check with Embedded Academy what's the reason for this.

Regards,

Bernhard.

2,088 次查看
ritesh_prajapat
Contributor III

Thanks for your quick reply. 

 

So,  It means there is no prefered to use Flash Magic at this moment to flash firmware even if we have taken care for ISP lines for boot straping purpose. Correct? 

 

Would you please clarify that is there any relation between flash magic and ISP line configuration or will it create any issue into flash first 4 bytes while using Flash Magic tool? 

 

We will be waiting for your reply from Academy as well.

Any update for last reply which i have sent to get clarifications from your side as well? Still, I will be waiting for your reply from Academy as well.

Regards,

Ritesh Prajapati

0 项奖励
回复

2,088 次查看
ritesh_prajapat
Contributor III

Thanks for your quick reply. 

So,  It means there is no prefered to use Flash Magic at this moment to flash firmware even if we have taken care for ISP lines for boot straping purpose. Correct? 

Would you please clarify that is there any relation between flash magic and ISP line configuration or will it create any issue into flash first 4 bytes while using Flash Magic tool? 

We will be waiting for your reply from Academy as well. 

Regards, 

Ritesh Prajapati

0 项奖励
回复

2,088 次查看
ritesh_prajapat
Contributor III

Hello Bernhard,

Yes. Exactly we have also doubt to have problem while using Flash Magic. So, You have also faced same issue like we have faced into few of our boards.

We are using Flash Magic 12.01 version for our firmware flash or erase purpose over serial or SWD.

So, Is it recommended to not to use Flash Magic Tool for Flash Erase or Firmware Flash Purpose? We have tried using MCUXpresso as well into one of faulty board and not getting issue.

Please suggest from your side regarding this so that we can have idea to move further for that.

Regards,

Ritesh Prajapati

0 项奖励
回复

2,088 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Ritesh Prajapati,

Can you use the J-link tools to erase the flash and check the result instead of flash magic tools?

BR

XiangJun Rong

2,088 次查看
ritesh_prajapat
Contributor III

Hello XiangJun Rong,

Thanks for your reply.

Arr you asking J-Link Tool from software tool perspective or both software and hardware which supports J-Link? Can you please send me reference link for same if you have?

I will check it with that tool and let you know results ASAP.

0 项奖励
回复