Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

F29H850TU: SOC_SECURE_BOOT_INFO_REG7 field description

Part Number: F29H850TU

Hello TI Team,

I'm looking for a field-level description and the intended use of SOC_SECURE_BOOT_INFO_REG7 on the F29H85x.

The TRM (SPRUJ79A, §2.14.2.64) documents the register's address and direction ("Communicate from CPU1 to HSM during secure Boot"), but states the field definitions are "dependent on the implementation of the secure boot flow" — so the actual fields and values aren't given.

In the SDK's JTAG flash kernel example (jtag_flash_secure_kernel), the kernel writes a magic value to it at startup:

// Enter into Wait Boot Mode
HWREG(0x30180520) = 0xC90DD68AU;   // SOC_SECURE_BOOT_INFO_REG7

and then clears it (writes 0) immediately before issuing a software XRSn (SIMRESET.XRSn).

In our testing this startup write is necessary: if we do not write 0xC90DD68A at startup, a software XRSn issued after an HSM runtime has been loaded leaves CPU1 stuck — the device does not reboot. With the write in place, the device reboots cleanly. (Without an HSM runtime loaded, the XRSn reboots fine either way.)

I'd rather not depend on a hard-coded magic value I don't understand. Could you point me to documentation, or clarify:

  1. What is the field/bit definition of SOC_SECURE_BOOT_INFO_REG7, and what does 0xC90DD68A signify?
  2. What is its role in the HSM ↔ C29 boot-ROM handshake across a reset, and why is it required specifically once an HSM runtime is loaded?
  3. Is "write 0xC90DD68A at startup, clear before XRSn" the intended/required sequence? Are there other valid values or states?

Thank you in advance,

Beat

  • Hello,

    This thread has been assigned to the intended expert, please expect a reply shortly.

    Best,
    Matt

  • Hi Beat,

    Let me look into this and get back to you.

    Thanks and Regards,
    Aditya Singal

  • Hi Beat,

    0xC90DD68A is the RAM Boot Signature Value indicating RAM Boot Mode.
    Similarly, there is a Flash Boot Signature also (0x45C11275U) which indicates Flash Boot Mode.

    At the time of issuing a XRSn, a value of 0 is written to the register because 0x00000000 is the Register Clear Value.

    Thanks and Regards,
    Aditya Singal

  • Hello Aditya,

    Thank you for your response. Unfortunately, it is still not clear to me how exactly this boot mode mechanism works.

    Also, the comment in the TI code says "WAIT mode", while you identify this code as "RAM Boot Mode".

    Can you please point me to the corresponding documentation?

    Thank you and kind regards,

    Beat

  • Hi Beat,

    Writing to the SOC_SECURE_BOOT_INFO_REG7 register is C29's way of informing the HSM Boot ROM of the current Boot Mode.
    Kindly ignore the comment which says WAIT Mode, It's actually RAM Mode. The Wait Mode Signature is
    0xA4CF3039U.

    There is no documentation on this because this is mainly used in the ROM.

    Thanks and Regards,
    Aditya Singal

  • Hi Aditya,

    Thanks, knowing that 0xC90DD68A is the RAM-boot signature is helpful. To use REG7 the way TI intends, I want to understand what your jtag_flash_secure_kernel example does with it, since that is our reference.

    In ex3_jtag_get_function_cpu1.c the only REG7 accesses are:

    At startup, right after Dpl_init() (line 92):
    // Enter into Wait Boot Mode (this comment is mislabeled; the value is the RAM-boot signature)
    HWREG(0x30180520) = 0xC90DD68AU;

    In sendNAK (line 333) and ackWithXRSN (line 358): write 0x00000000, then issue SIMRESET.XRSn.

    So the example declares RAM-boot mode once at startup, runs the provisioning commands (which load the HSM RT), then clears REG7 to 0 just before each XRSn. My questions are about this example specifically.

    1. Line 92: why does the kernel declare RAM-boot mode here, before it has loaded the HSM RT? What in the example's own flow relies on it, and what would break if line 92 were removed? This matches what we see: in our equivalent kernel, omitting this write makes a software XRSn issued after the HSM RT is loaded hang CPU1, while with it the device reboots cleanly.

    2. At what point does the HSM Boot ROM read REG7 in this sequence? At HSM-RT load, at the XRSn, or continuously?

    3. ackWithXRSN clears REG7 to 0 before the XRSn, so REG7 holds the clear value at the reset. After that reset, what boot mode does the device come up in? Does it revert to its pin/OTP boot mode (Flash) and run the provisioned flash application? Is that the intended outcome?

    4. So is the example's contract "declare RAM mode at startup, clear to 0 before the XRSn"? If a kernel wanted the device to boot a specific mode after the XRSn (say Flash), would it write 0x45C11275 at that point instead of 0?

    5. The same two reset paths also write USER_REG2_SYSRSN = 1 (ANALOGSUBSYS_BASE + 0x84, that is 0x30182084) right before the XRSn: sendNAK (line 329) and ackWithXRSN (line 354). sendACK, which issues no XRSn, does not. The header describes USER_REG2_SYSRSN as "Software configurable register reset by SYSRSn." What is the purpose of setting it before the XRSn? sendNAK comments this write as "write NotAcknowledged", yet ackWithXRSN on the success path writes the same value 1, so how is ACK distinguished from NAK by the host or HSM? And since it is reset by SYSRSn (which the XRSn asserts), is it meant to survive the reset for the host to read afterward, or is it consumed by the HSM or Boot ROM during the reset?

    If you can confirm how your own example is meant to behave here, we can rely on it. 

    Thanks again,
    Beat

  • Hello Aditya, could you kindly respond? Thanks, Beat

  • Hi Beat,

    The ROM expert was OOO for some time, hence the delay.

    Let me get back to you on this.

    Thanks and Regards,
    Aditya Singal

  • Hi Beat,

    Apologies for the delay.

    1.The device is booted in Flash bootmode and accordingly HSM boot rom has received 'FLASH_BOOT' signature from C29 bootrom via 'SYSCTL_O_SOC_SECURE_BOOT_INFO_REG7' register and is waiting for 'LOAD_HSM' message from C29. Now jtag flash kernel loads HSM RT into LDAx RAM and before it sends 'LOAD_HSM' message to HSM it should change the boot signature to 'RAM_BOOT' in 'SYSCTL_O_SOC_SECURE_BOOT_INFO_REG7' so that HSM rom can jump to HSM RT entry point located in LDAx RAM otherwise it will end up jumping to entry point in flash.
    2.The HSM boot rom is waiting for 'LOAD_HSM' message from C29, when it receives it, it reads the boot signature present in 'SYSCTL_O_SOC_SECURE_BOOT_INFO_REG7' and then jumps to either HSM RT in flash or HSM RT in RAM based on the boot signature
    3. After the reset C29 decodes the boot mode based on the settings on the Boot Mode Select Pins (BMSP) and populates 'SYSCTL_O_SOC_SECURE_BOOT_INFO_REG7' register accordingly
    4. No, after XRSn, C29 decides the signature based on the settings on the BMSP, we clear the value of 'SYSCTL_O_SOC_SECURE_BOOT_INFO_REG7' for a specific corner case
    5. Need to check with example developer

    Thanks and Regards,
    Aditya Singal

  • Hi Aditya,

    Thanks. Your answers to 2 and 3 are clear now.

    Four things are still open.

    1. The corner case.
    You clear REG7 to 0 before the XRSn "for a specific corner case", but did not say what the case is. This is the heart of my original question, because it is the one write I cannot explain.

    SPRUJ79B section 2.14.2.64 gives REG7 a reset type of PORESETn. So a warm XRSn does not clear it in hardware, and a stale value survives until the C29 bootrom rewrites it.

    Is the case this: after the XRSn the HSM boot ROM reads REG7 before the C29 bootrom has rewritten it, so a stale RAM_BOOT would send the HSM to a RAM entry point that the reset has just invalidated?

    Please confirm or correct. And please give me the order: after an XRSn, when does the HSM boot ROM read REG7, and when does the C29 bootrom rewrite it?

    2. The WAIT signature.
    I originally asked whether there are other valid values or states. You mentioned WAIT = 0xA4CF3039. What does WAIT mean, who writes it, and when is it used?

    A complete list of the valid REG7 values with their meanings would answer my original question properly.

    3. Stability of the values.
    The TRM leaves the field implementation-defined, so there is nothing documented for us to rely on. Can you confirm in writing that the values are
    RAM_BOOT = 0xC90DD68A, FLASH_BOOT = 0x45C11275, WAIT = 0xA4CF3039, clear = 0x00000000
    and that they are stable across silicon revisions and ROM versions?

    4. USER_REG2_SYSRSN (my question 5).
    You were going to check with the example developer. I think the public documents already answer it, so a yes or no is enough.

    SPRUJ79B section 2.14.8.15 describes USER_REG2_SYSRSN as a generic scratch register, "R/W bits reset by SYSRSn to be used by the application software". Its reset type is SYSRSn, and the XRSn asserts SYSRSn, so the reset clears it. The SDK host scripts never read it. And sendNAK and ackWithXRSN write the same value 1, so it cannot distinguish ACK from NAK.

    So my conclusion is that the write is functionally inert in the JTAG kernel. Is that correct, and does nothing in the ROM consume it?

    Thank you and kind regards,
    Beat

  • 1. The corner case.
    You clear REG7 to 0 before the XRSn "for a specific corner case", but did not say what the case is. This is the heart of my original question, because it is the one write I cannot explain.

    SPRUJ79B section 2.14.2.64 gives REG7 a reset type of PORESETn. So a warm XRSn does not clear it in hardware, and a stale value survives until the C29 bootrom rewrites it.

    Is the case this: after the XRSn the HSM boot ROM reads REG7 before the C29 bootrom has rewritten it, so a stale RAM_BOOT would send the HSM to a RAM entry point that the reset has just invalidated?

    Please confirm or correct. And please give me the order: after an XRSn, when does the HSM boot ROM read REG7, and when does the C29 bootrom rewrite it?

    Answering the first query : 

    The REG7 is on POR domain. if the value is written by C29 ROM in previous reset cycle and if the CPUrsn or XRSn is asserted then it can cause the HSM rom to read stale value from previous reset assertion. When software asserts XRSn it can clear this register so HSM rom waits for C29 ROM to write valid boot mode signature.

     The C29 CPU1 boot ROM writes one of three signatures to this register based on boot mode:


    │ FLASH_BOOT_SIGNATURE │ 0x45C11275 │ FLASH_BOOT │

    │ RAM_BOOT_SIGNATURE │ 0xC90DD68AU │ PARALLEL_BOOT, RAM_BOOT, I2C_BOOT, SPI_BOOT, CAN/MCAN_BOOT, UART_BOOT │

    │ RAM_JTAG_BOOT_SIGNATURE │ 0xA4CF3039 │ WAIT_BOOT (JTAG debug mode) │

    Refer to the above flowchart in Bootrom chapter in TRM.

    I will need more time to look at other queries and respond.

    Thanks

  • is it meant to survive the reset for the host to read afterward, or is it consumed by the HSM or Boot ROM during the reset?

    USER_REG2_SYSRSN is not used by C29 or HSM Bootrom it is used by application software only.

  • 2. The WAIT signature.
    I originally asked whether there are other valid values or states. You mentioned WAIT = 0xA4CF3039. What does WAIT mean, who writes it, and when is it used?

    The wait boot mode is described in the TRM section shown below. The Below signature is written when the decoded boot mode is WAIT Boot.

    │ RAM_JTAG_BOOT_SIGNATURE │ 0xA4CF3039 │ WAIT_BOOT (JTAG debug mode) │

  • Hi   Please check if there are anu other question on F29 ROM ? If not please mark this as resolved.

    Thanks

  • Hi Prarthan,

    Thank you. Your answers resolve most of the thread. Before I mark this resolved, two points remain.

    1. Documentation of the signature values (my question 3).

    The flowchart you posted is Figure 3-1 in SPRUJ79B (page 753), but the public version names the signatures only symbolically — "Decode Boot Mode & Write Boot Signature (FLASH_BOOT or RAM_BOOT)". The hex values 0x45C11275, 0xC90DD68A and 0xA4CF3039 appear nowhere in the published TRM; your screenshot seems to show an internal annotated version.

    Can you confirm that these values will be stable across silicon versions?

    2. The clear-before-reset contract, and resets software cannot precede.

    From your answer and Figure 3-1 I take the contract to be: the HSM boot ROM polls REG7 without timeout, 0 (or any invalid value) means "keep waiting for the C29 bootrom to write a fresh signature", and a stale valid signature is consumed immediately. So software must clear REG7 to 0 before issuing a warm reset (XRSn/CPUrsn) whenever the register may hold a stale value. Your wording was "can clear", so please confirm it is required, not optional.

    Thank you and kind regards,

    Beat

  • 1. Documentation of the signature values (my question 3).

    The flowchart you posted is Figure 3-1 in SPRUJ79B (page 753), but the public version names the signatures only symbolically — "Decode Boot Mode & Write Boot Signature (FLASH_BOOT or RAM_BOOT)". The hex values 0x45C11275, 0xC90DD68A and 0xA4CF3039 appear nowhere in the published TRM; your screenshot seems to show an internal annotated version.

    Can you confirm that these values will be stable across silicon versions?

    Yes they remain same across Si Rev's, you can also cross verify them by changing boot modes and checking register values.

    2. The clear-before-reset contract, and resets software cannot precede.

    From your answer and Figure 3-1 I take the contract to be: the HSM boot ROM polls REG7 without timeout, 0 (or any invalid value) means "keep waiting for the C29 bootrom to write a fresh signature", and a stale valid signature is consumed immediately. So software must clear REG7 to 0 before issuing a warm reset (XRSn/CPUrsn) whenever the register may hold a stale value. Your wording was "can clear", so please confirm it is required, not optional.

    Required. Use of can clear was to indicate possibility/ ability of software to do it in the sequence.

    Thanks

  • Thank you!