How do I reset to user code after ReinvokeISP

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

How do I reset to user code after ReinvokeISP

2,708 次查看
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.

标签 (1)
0 项奖励
回复
5 回复数

2,507 次查看
karimboallal
Contributor I

Hello,

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

Karim.

0 项奖励
回复

2,507 次查看
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 项奖励
回复

2,507 次查看
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 项奖励
回复

2,507 次查看
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 项奖励
回复

2,507 次查看
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 项奖励
回复