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.

TMS320C28345: Using DSCM in a TMS320F28377D DSC

Part Number: TMS320C28345
Other Parts Discussed in Thread: TMS320F28377D

Hello Everyone,

I am currently trying to learn how DCSM works in TMS320F28377D device but I am afraid I cannot fully understand it.

For CPU1, I would like to keep the device Flash Sectors Secured and password protected into two groups as follows:

The passwords for Zone 1 and Zone 2 should be different.

 

Is it possible to implement this using the DSCM?

Many thanks in advance,

Andreu

  • Hi Andreu,

    Yes, this is possible on this device. In fact, we have dual zone security on this device for specific use like this. Both zones have their own USER OTP to program the security settings like password and GRABSECT/GRAB RAM.

    If you could be more specific on what is not clear fro the TRM, I'll try to explain it here and also try to improve our TRM to explain it better.

    Regards,

    Vivek Singh

  • Hello Vivek,

    Many thanks for your quick answer. I was confused because of this diagram:

    Here I got confused because I misunderstood that by setting Zx-BOOTCTRL.OTP_KEY I was also selecting Z1 or Z2.

    Now, I think I have understood this issue:

    a)      So, even if I am using both zones, I only need to set the BOOTCTRL register for one of them, right?

    b)      Then, could I use Z2 BOOTCTRL first and keep Z1 BOOTCTRL just in case I need to change the boot mode in the future?

    Apart from that, I have another question about DCSM: If I divide Flash Sector A into sections to store Program Code and Constant Data and I define the sector as EXEONLYSECT:

    Will be the Program Code in .text_A section be able to read the Constant Data from .econst_A Constant Data Section?

     

    Best Regards,

    Andreu

  • Hello Vivek,

    Apart from the previous question I have got another one:

    Given the following pieces of program code:

    It is possible to call function func from non-secure Flash Sector C?  

    Best Regards,

    Andreu

  • Hello Vivek,

    could you please have a look at the last 2 posts?
    We are waiting your answers.

    Thanks a lot in advance.

    Best regards,
    Massimiliano De Cristofaro
    TI Staff Field Application Engineer - WEU
  • Hi Vivek,

    any news?
    It is 1 week that we are waiting.
    Please answer asap.

    Thanks a lot and regards,
    Massimiliano.
  • Hi Andreu,

    a)      So, even if I am using both zones, I only need to set the BOOTCTRL register for one of them, right?

    That is correct. BOOTCTRL has independent functionality so programming any of them will work.

    b)      Then, could I use Z2 BOOTCTRL first and keep Z1 BOOTCTRL just in case I need to change the boot mode in the future?

    You are right.

    Will be the Program Code in .text_A section be able to read the Constant Data from .econst_A Constant Data Section?

    EXEONLY memory do not have READ (and WRITE incase of RAM) so this can not be done. You need to allocate constant data into different flash sector which not programmed as EXEONLY.

    It is possible to call function func from non-secure Flash Sector C?

    Yes, function calls are supported from any where so a code running from non-secure memory can call a function in secure memory.

    Regards,

    Vivek Singh

  • Hello Vivek,

    Many thanks for your answers.

    Best wishes,

    Andreu