Device DSPS software gets reset due RESET_MEM_ALLOC_FAIL

⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
ran_shahar
Offline
Last seen:3年2个月前
加入:2015-07-29 09:49
Device DSPS software gets reset due RESET_MEM_ALLOC_FAIL

Hi
We are using Murata Type ZY device with DA14580
The base software is the DSPS device software.
While making many BLE connect / disconnects by the DSPS App, the device software enters reset due RESET_MEME_ALLOC_FAIL.

I would appreciate to get solution for this problem

Thanks
Ran

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

Hi ran_shahar,

If you get a reset due to RESET_MEM_ALLOC_FAIL, that means that you have memory leak, somewhere in your code you are allocating memory and its never freed, for example, perhaps, you are using the arch_printf() funtion in order to print a lot of data through UART2, every arch_printf allocates a message in order to print it when the XTA16 is active, so if you are allocating two much messages without serving then (the is no rwip_schedule() invokation), eventually you wil run out of memory.

Thanks MT_dialog