This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379D: CPU2 Memory Allocation Problem

Part Number: TMS320F28379D

Tool/software:

Hello There,

In my application, i need to allocate memory at CPU1 and CPU2. In linker files, I have configured RAMLS1 for both CPU. CPU1 can allocate memory but when CPU2 tries to allocate memory, it goes to ILLEGAL_ISR from alligned_alloc function. What can be the problem? 

  • Hi,

    In my application at CPU2, I use file system and this file system allocate files and datas. When it is allocate my program goes to ILLEGAL_ISR. I found out that this function use global variable which is defined at .ebss and  gave RAMLS0, RAMGS0, RAMG1 and RAMGS2 to .ebss. CPU1 gives  permission to CPU2 to using these areas. So this global variable is  defined at RAMGS1. I've changed the .ebss RAM areas and I gave RAMLS0 to RAMLS4 to .ebss. As a result my global variable is defined at local shared memory. When I try to allocate memory it does not goes to ILLEGAL_ISR. 

    I've solved the problem which is intialized global variables does not initialize when code is loaded to CPU2.