The memory question of the nrf5340 audio application

During my test of the nrf5340 audio application which in the V2.6.0 SDK, Because of that i need to implement some algorithms in it, i use the ld file to allocated a segment of RAM space and init the heap as following images and added it to the CMakeList.txt.

It worked, but I found that even if I only allocated memory without adding any additional processing, the processing of the le-audio part would still be severely disrupted. 

I found that the red block part working time will be increased almost 1ms if i use that ld files and init it as a heap.

And from the following building information, it can be seen that even if I add these, the RAM is still enough.

It is really too strange.

But I found that if I reduce the allocated RAM in the ld file to a certain size or delete the ">RAMABLE-REGION" in the ld file. These influences will disappeared, for example, the following two modification methods.

or

It is really strange and i can not understand that. Especially for the second modification method, the allocation of memory has not decreased. I have also compared the elf files before and after deleting >RAMABLE-REGION, and it seems that the memory addresses are the same, only with some differences in segments. But when it runs, there are completely different results. As the processing time of le-audio increases, the sound will sound very discontinuous.

I will add the elf file in this ticket, you can check it.

8272.elf files.zip

Thank you very much and looking forward to your help!

Parents
  • Hello,

    I'm looking into it.

    During my test of the nrf5340 audio application which in the V2.6.0 SDK, Because of that i need to implement some algorithms in it, i use the ld file to allocated a segment of RAM space and init the heap as following images and added it to the CMakeList.txt.

    Any particular reason that you'd want to use ld files for this? The partition manager is typically the way to go for this.

    Regards,

    Elfving

Reply
  • Hello,

    I'm looking into it.

    During my test of the nrf5340 audio application which in the V2.6.0 SDK, Because of that i need to implement some algorithms in it, i use the ld file to allocated a segment of RAM space and init the heap as following images and added it to the CMakeList.txt.

    Any particular reason that you'd want to use ld files for this? The partition manager is typically the way to go for this.

    Regards,

    Elfving

Children
No Data
Related