LPC54628: Using LPCScrypt program loads but does't run

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

LPC54628: Using LPCScrypt program loads but does't run

1,525 Views
jbhoi
Contributor II

Hi, 

I am using LPCScrypt to flash the firmware into the LPC54628 board. Program (bootloader and application) loads successfully but doesn't run. So I have checked the memory content of flash using memDisplay command and found that memory content remains the same as the bootloader has after flashing the application image. see below snapshot. 

no_run.PNG

Any idea what wrong with it?

Also, the erase command failed to erase the flash. Using memDisplay i can see flash is partially erased. see the below image. 

eraseerror.PNG

why erase failed? 

Labels (1)
Tags (2)
0 Kudos
8 Replies

1,418 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello jayesh bhoi ,

You can use Flash Magic https://www.flashmagictool.com/   

Regards,

Alice

0 Kudos

1,418 Views
jbhoi
Contributor II

Alice_Yang

Thanks for your suggestion. I already tried Flash Magic before which constantly gives below error.

Flash Magic Tool Failed to Autobaud

So I moved to use LPCScrypt. 

converse

But using LPCScrypt I am able to successfully program the LPC54628. 

Now I have further updated is like bootloader which I programmed using LPCscrypt is running fine as I verified it by prints coming on the serial port. Now a new problem is started that every time that bootloader ran even I programmed new or erase that.

So not sure what is the issue? is it possible bootloader written somewhere else in memory and locked once it programmed?  

0 Kudos

1,418 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jayesh,

How about your this case now?

When just open Flash magic it shows the error you mentioned before?

0 Kudos

1,418 Views
jbhoi
Contributor II

Yes, the same error which I mentioned.

Operation failed. Failed to autobaud-step1 -see

https://www.flashmagictool.com/autobaud.html

0 Kudos

1,418 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

About Flash magic you can ask help from flashmagic website you mentioned.

And I have another suggestion, you can create a secondary bootloader by yourself,  then update your firware.

There is a UART bootloader, you can have look:

https://www.nxp.com/docs/en/application-note/AN12384.pdf  

https://www.nxp.com/docs/en/application-note-software/AN12384SW.zip  

0 Kudos

1,418 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jayesh,

Yes, as Con Verse said, LPCscrypt just support lpc43xx and LPC18xx.

Maybe just program lpc54628 by chance, while we can't confirm it can work well.

And you Flash Magic error link can't open on my side.

Regards,

Alice

0 Kudos

1,418 Views
converse
Senior Contributor V

The info for LPCscrypt says

LPCScrypt is a command-line based, fast flash, EEPROM, OTP and security programming tool for LPC1800 and LPC4300 series microcontrollers.

it doesn’t mention LPC54...

0 Kudos

1,418 Views
jbhoi
Contributor II

But i can flash the LPC54628 successfully.

0 Kudos