How do I reset to user code after ReinvokeISP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How do I reset to user code after ReinvokeISP

2,710件の閲覧回数
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,509件の閲覧回数
karimboallal
Contributor I

Hello,

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

Karim.

0 件の賞賛
返信

2,509件の閲覧回数
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,509件の閲覧回数
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,509件の閲覧回数
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,509件の閲覧回数
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 件の賞賛
返信