2 posts / 0 new
Last post
liuluan002
Offline
Last seen:5 months 4 weeks ago
加入:2015-11-27 14:24
about the system stops

Hi Dialog,

I am keeping on the scanning for the advertisement package and sending out through the UART as a loop in the system. Also the watchdog is enabled. However, after 2 hours running, the system stops. Is there any way to check the reason? Also is it because of the memory leakage? How to use the debug log to check the usage for the memory from the system?

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi liuluan002,

Hi liuluan002,

You will have to check where the system stalls, Hardfault, NMI, those are the most probable places that your code stucks, you can attach your debugger in order to check where exactly your code has stuck, please check the UM-B-051 Software Platform Reference.pdf in section 7.2.5.2. If you are using the latest SDK the debugging feature is enabled while debugging, so you can leave the project running and check live when the execution stops. If you are using older SDK where you wont be able to debug while sleeping you can follow the commands on this posthttps://support.dialog-semiconductor.com/watchdog-timer-and-nmi-handler-...to attach your debugger. Also you will be able to check your memory usage by defining the CFG_LOG_MEM_USAGE and using the disp_memlog command in the command window of keil. Additionally check if a platform reset gets invoked, this should occur if you run out of memory space.

Thanks MT_dialog