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.

Compiler/TMS320F28335: Executing independent code from a different Sector results in no data

Part Number: TMS320F28335


Tool/software: TI C/C++ Compiler

We are working on an application that will allow 3rd parties to build code to our interface. Load this code into Sector C of the processor and our application will make calls to the shared interface. The mechanics are working. The code is loaded, the APIs() are getting called. The code is executing.

The problem is that any variable in the Sector always returns 0. The variables are initialized in the Sector C code, a pointer to a structure is passed down, but any local/global/static variables in the Sector C code never return a value.

Sector H Code:

main() {

   call sector_c_code(&some_structure);

}

Sector C Code:

void sector_c_code(*this_structure) {

   int a = 16;


   *this_structure.num_1 = 5;

  *this_structure.num_2 = a;

}

when checking the output in the debugger and memory of some_structure.num_1 and num_2 - num_1 does == 5, but num_2 is 0.

linker has the memory for the data set to external RAM 0x00220000 - it also shows all 0's.

What am I missing?

Thanks,