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.

TMS320F280039C: Question about EXEONLY secure memory

Part Number: TMS320F280039C

Hi Champ,

I am asking for my customer.

If we configure one location (LSRAM/ FLASH sector) with EXEONLY secure, and that location should only for running the code.

(1). What if we have a function located on that EXEONLY secure memory and the function is called by others location, what will we get the result ?

int function (int a, int b)

{

  int c = a + b;

  return c;

}

(2). Continue (1) question, if we get the calculated result c, could we pass the value to another variable (d = c) which is also declared on the same EXEONLY secure memory ?

Regards,

Johnny

  • Hi Johnny,

    There should be no issues with part 1. For part 2, what do you mean when you say variable D is declared on EXEONLY memory? Are you implying whether code in EXEONLY memory is allowed to do something like this:

    int d = function(1,2) //d = 3;

    I believe this should be allowed as well but I will confirm this with other experts, let me know if this does not match what you are trying to do in your application.

    Thank you,

    Luke

  • Hi Johnny,

    The example I showed above is allowed, however if you were to declare a variable in a data section that is designated as EXEONLY, you would not be able to read or write to it. EXEONLY protection is meant for code sections only.

    Thank you,

    Luke