I was wondering if anyone used the partitions and domains? What are the benefits of using them vs. declaring a heap memory using the old school ( mem_ptr = k_malloc(NUM_OF_MEM_SLOTSsizeof (header_data_crc))😉:
It is my understanding that with memory domains, certain parts of heap can be tied to certain threads.
A memory domains snippet is :
//k_mem_domain_init(&dom0, 0, NULL);
//int k_mem_domain_add_partition(struct k_mem_domain *domain,struct k_mem_partition *part)
// k_mem_domain_add_partition(&dom0, &part0);
//k_mem_domain_add_thread(&dom0, k_current_get()); //get a thread ID