reset through JLink after program

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
xiaojie
Offline
Last seen:1 year 8 months ago
Joined:2017-08-13 06:56
reset through JLink after program

Hello,

I am building an DA14680 application with a customized board. I have connected the RST pin to J-Link's nRST pin with an inverter. I would like to know how to reset the MCU automatically after program the built file to the MCU. I have to unplug and replug the power cable each time after I program the MCU. Could you please tell me how to:

1) send a signal to J-Link's nRST pin so it will trigger a HW reset on MCU?
2) how to write to SWD_RESTET_REG to trigger a HW reset through J-Link, as mentioned in da14680-01_ds_v3.0.pdf page 44?

Thanks.

Device:
MHv_Dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2013-12-06 15:10
Hi,

Hi,

我已经要求我们的团队来调查这个工具。我们should get a reply shortly.

/MHv

MHv_Dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2013-12-06 15:10
Hi,

Hi,

I received the following response from the team:

Once, the JLINK GDB server is connected it's possible to send custom j-link command using the prefix "monitor" so it's possible to issue reset using:

monitor reset

By default this performs a software reset from the Cortex M0 DAP. it's possible to issue a hardware reset which will toggle the reset pin of the JLINK by issuing the command:

monitor RSetType 2

If you want to issue a reset by writting in the sys_ctr_sw_reset, you just need to issue a write instruction the format is

monitor memU32 0x20010004 = 0xdeadbeef

/MHv

mahmed106
Offline
Last seen:2 months 1 week ago
Joined:2019-05-03 17:28
Hi, i m having the same

Hi, i m having the same problem that after programing i have to manually reset the SOC.

Before it resets it automatically, since today problem came on its own.

2ndly from where you can use command monitor reset , cz i m using smartsnippets studio and i couldnt find where to send the command?

Thanks

PM_Dialog
Offline
Last seen:1 day 6 hours ago
Staff
Joined:2018-02-08 11:03
Hi mahmed106,

Hi mahmed106,

What is the version of SmartSnippets Studio that you are using?

I would suggested to raise a new forum topic with your issue, as this one is old and closed.

Thanks, PM_Dialog