Can't reset via Keil with basic dev kit board

11 posts / 0 new
Last post
gcblair
Offline
Last seen:4 years 6 months ago
Master
加入:2014-09-08 10:21
Can't reset via Keil with basic dev kit board

Hi,

For some reason if I click reset in Keil it just makes the application sit there doing nothing. The only way to get the application running again is to detach the debugger and attach it again.

I am using the basic dev kit. Any idea why this may be? It is really taking along time to debug applications when I need to restart the BLE advertising sequence

Keywords:
JE_Dialog
Offline
Last seen:1 day 1 hour ago
Staff
加入:2013-12-05 14:02
Hello, gcblair, are the debug

Hello, gcblair, are the debug options correctly set in Keil ? this seems to be a common problem that if the KEIL device/debug options are not set properly , KEIL locks or seems to have some stability issues. Which version of KEIL and SDK are you using ?

BR JE_Dialog

gcblair
Offline
Last seen:4 years 6 months ago
Master
加入:2014-09-08 10:21
Hi,

Hi,

I can debug the application fine. What should the debug configuration be?
I have it set to 2Mhz max clock, SW port, reset is set to reset pin - can't see anything else that could be it. Maybe reset pin is wrong?

MDK-Lite is 5.12 and the SDK is 3.06

gcblair
Offline
Last seen:4 years 6 months ago
Master
加入:2014-09-08 10:21
Hi

Hi

Do you have any ideas why I cant reset?

JE_Dialog
Offline
Last seen:1 day 1 hour ago
Staff
加入:2013-12-05 14:02
Hi There,

Hi There,

do you have the device configured for sleep mode ?

its advisable to disable sleep mode while testing functionality using Keil debugger.(disable sleep mode in da14580_config.h to use the debugger)

  • Here can do single stepping, and debug code

At some point enable sleep modes.

For extended sleep mode:

  • Download the code
  • Detach the debugger
  • Now the device should continue to work using extended sleep mode
  • You can do only system functionality test now, but no jtag debugger as this has been detached.
  • For deep sleep:
  • The above steps will work upto the point when device enters deep sleep
  • It will not be able to get out of deep sleep without code on OTP.

Thanks & BR

JE_Dialog

gcblair
Offline
Last seen:4 years 6 months ago
Master
加入:2014-09-08 10:21
As far as I am aware it is

As far as I am aware it is not in sleep mode - I disabled it
I can debug, set breakpoints etc so I guess its not

gcblair
Offline
Last seen:4 years 6 months ago
Master
加入:2014-09-08 10:21
Hi,

Hi,

I would appreciate if I could get some help on this as it really is annoying having to stop and reattach the debugger every time I want to reset
Someone told me that the reset button in Kiel doesn't work with DIalog MCUs can you confirm if this is true or not?

I do not have sleep enabled and can debug the code OK. Resetting from Keil or pressing the reset button the basic board does not work!

JE_Dialog
Offline
Last seen:1 day 1 hour ago
Staff
加入:2013-12-05 14:02
let me check with one of the

让我查一下与西南的一个人——我normally use smart snippets to reset/download.... this works quite reliably. As an interim solution, you could try that until we find you a resolution.

BR JE_Dialog

JE_Dialog
Offline
Last seen:1 day 1 hour ago
Staff
加入:2013-12-05 14:02
i just confrmed with the SW

i just confrmed with the SW team : The reset signal from the debugger hardware is not connected (Only SWDIO and SWCLK): so i'd recommend to use the smart snippets to load into the device as this should work just fine (prompts you for a HW reset pushbutton push).

BR JE_Dialog

gcblair
Offline
Last seen:4 years 6 months ago
Master
加入:2014-09-08 10:21
Ah so if I reset using the

Ah so if I reset using the reset button button I can still debug it like normal if there is code in FLASH/EEPROM?

JE_Dialog
Offline
Last seen:1 day 1 hour ago
Staff
加入:2013-12-05 14:02
Yes, I belive that is correct

Yes, I belive that is correct..

BR JE_Dialog