How do I reset to user code after ReinvokeISP

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

How do I reset to user code after ReinvokeISP

1,583 Views
seowwoo_quek
Contributor I

HI,

I am using LPC51U68. I have written a test application

ReinvokeISP and then program the firmware.bin. But how do I exit from ISP mode using my test application so hat LPC51U68 can reset to user mode.

Thanks.

Labels (1)
0 Kudos
5 Replies

1,382 Views
karimboallal
Contributor I

Hello,

You can use Watchdog to reboot automatically when it's reach the value (time) you pre-define.

Karim.

0 Kudos

1,382 Views
seowwoo_quek
Contributor I

Hi Omar,

I am using the ISP USB mode. Does the "SH_CMD_RESET (0xA2) command" works for USB mode?

Thanks.

0 Kudos

1,382 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello Seow Woo Quek

Unfortunately the "SH_CMD_RESET(0xA2) command" doesn´t work on USB mode because that command is designed for I2C/SPI mode.

Unfortunately there's no command available to exit the USB ISP mode

So, to reset the chip it needs to be made through hardware.

 

Let me know if this helps

Best regards,

 

Omar

0 Kudos

1,382 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello seowwoo.quek@oce.com

It depends on the protocol you are using.

If you are using I2C/SPI ISP mode you may use SH_CMD_RESET command.

Another way for this is though GO command if you are using USART ISP mode.

 

You can find this information at the LPC51U68 user manual. https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true

-4.5.8 "Go"

-4.8.2 "SH_CMD_RESET (0xA2) command"

 

Let me know if this helps

Best regards,

Omar

0 Kudos

1,382 Views
seowwoo_quek
Contributor I

Hi Omar,

I am using the ISP USB mode. How to reset to user code when in ISP USB mode

Thanks.

0 Kudos