Hi,
I have an application based on SDK6 example that I run on DA14531 devkit PRO. I wrote a makefile to use GCC compiler. Now, I am running into hardfaults in some random situations and I would like to debug the problem. I replace da14531.lib with da14531_with_heap_logging.lib, defined CFG_LOG_HEAP_USAGE in da1458x_config_advanced.h, added heaps structs with extern keyword `extern struct mem_usage_log heap_usage_env __SECTION_ZERO("retention_mem_area0"); ` (for all 4 heaps) and now I am trying to print some data from those structs, but they always all 0. Any idea?
Best regards,Michal
void print_heap_stats(void) { arch_printf("HEAP_INFO: ENV: max used: %d used: %d max_used_other: %d used_other: %d \r\n", heap_usage_env.max_used_sz, heap_usage_env…
Hi Michal,I worked on SDK v6.0.18 and the ble_app_peripheral example.I replaced the da14531.lib with da14531_with_heap_logging.lib on the sdk_arch folder as shown below:Then I compiled and I attach the debugger…
Hi Michal, the heap logging works identically to Kiel with GCC. You need to replace the :da14531.lib in properties->c/c++ general/Libraries tab (if using eclipse, if not then in your lib linking in your…
Hi Michal,Thank you for posting your question online.Let me check on this and I will get back to you as soon as possible.Could you please clarify which SDK version you are working with?Best Regards,OV_Renesas