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.
Thanks.
We will check it and let you know if need any further help for same.
From the description I don't get a clear picture of the issue. Let me try to sort it out:
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.
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
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.
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
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
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
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.