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.

CCS/TMS320F28379D: How to program EMU_BOOTCTRL register or BOOTCTRL register?

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hi,

We have a board, that will use GPIO117 and GPIO118 as BOOTPIN0 and BOOTPIN1. How can I program EMU_BOOTCTRL register to test it?

In TRM there is little information about writing. In forum I found a topic, that says we can program it in our code.

*(uint32_t *)0xD00 = 0x76750B5A;      // EMU_BOOTCTRL, GPIO117, GPIO118, Flash boot, key
// OR
*(uint32_t *)0x7801E = 0x76750B5A;  // BOOTCTRL OTP, GPIO117, GPIO118, Flash boot, key

But my question is: Is EMU_BOOTCTRL in Flash? If I program EMU_BOOTCTRL register with my code then if I unplug the power then reinsert it, will it be the same value that I wrote to it? I wrote 0x76750B5A in address 0xD00 but after power on & off it has default value not 0x76750B5A.

Is BOOTCTRL only one-time programmable? Can I not program it with different value later?

Thanks.

  • No, EMU_BOOTCTRL is at address 0xD00. It is mention in device TRM. As name says, it's for emulation boot and not for standalone. It is only applicable when CCS is connected. For standalone, you have BOOTCTRL register in USER OTP which user need to program and it's one time programmable. Basically you need to Ist try EMU_BOOTCTRL register to test the value and once confirm to be working, same can be programmed in BOOTCTRL location in user OTP.

    Please go through section "3.4 Configuring Boot Mode Pins" and "3.6 Configuring Emulation Boot Options" in device TRM for more detail about this.

    Regards,

    Vivek Singh

  • Can you answer those questions?

    1) How can I program this location (D00)?
    2) After program, how can I reset the cpu to test EMU_BOOTCTRL behavior?

  • 1) After connecting to CCS, open 0xD00 location in CCS memory browser and write the appropriate value.
    2) Issue debug reset and then click on 'Run" icon on CCS.

    Vivek Singh
  • Thank you.

    It worked now. But actually resetting button is called "CPU Reset" in my CCS version (7.4.0.00015)