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.

CC2745R10-Q1: ROM bootloader through SPI first byte delay

Part Number: CC2745R10-Q1

Tool/software:

Is there an example for the ROM bootloader host through SPI? My customer is having trouble to use the ROM bootloader through SPI, I read from the TRM that the first byte should be taken care of when using SPI as the interface for ROM bootloader, but I am still not clear about the following questions:

1. Does the host still need to send 0x55 0x55 when using SPI?

2. What should the host send as the first byte? Is the PING command(0x03 0x20 0x20) supposed to work as the first command?

3. The TRM suggests to add a delay after the first byte, does that mean I should send 0x03 0x20 0x20 as the first command and add a delay between 0x03 and 0x20?

4. How long is recommended for the delay?

Best regards,

Shuyang

  • Hello Shuyang, 

    Unfortunately, there is no SPI serial bootloader example project. 

    1./2. The SPI serial bootloader does not need to send the 0x55 0x55 command to initiate the SBL. The 0x55 0x55 command is to initialize the autobaud detection for UART. When the SBL receives a SPI packet (ping command), the SBL will need some time to switch to SPI mode, as the default is UART. Instead of 0x55 0x55, the ping command can be used for this. See number 2b. under 9.5.4: 

    3. I am not sure what the 0x03 command you are referencing is. Can you elaborate? The ping command is 1 byte (0x20). The delay needs to be added after sending the 0x20 command to the host. 

    4. TI does not have a recommended delay after the ping command is sent via SPI. Something in the milliseconds range would most likely work. I would recommend trying a number like 5ms, or a delay the customer wants to use. If that works, and no optimization is desired, then great. If the customer wants to optimize the delay, then reduce the delay by half and try again. Sort of a guess and check situation. 

    Let me know if this helps!

    Thanks, 

    Isaac

  • Hi Isaac,

    For 1 and 2 I have no more questions.

    For 3, 0x03 0x20 0x20 is the complete serial packet for the PING command:

    size checksum command
    0x03 0x20 0x20

    My question is should I add the delay after 0x03 or after this whole packet?

    Best regards,

    Shuyang

  • Hi Isaac,

    The customer tried to add a 5ms delay after 0x03 and after the complete command(0x03 0x20 0x20) both, but neither worked.

    They also tried on CC2340, not working as well.

    Can you provide a step-by-step guide about the usage of the SPI ROM bootloader please?

    And should the SPI set to MSB first or LSB first?

    Best regards,

    Shuyang

  • Hello Shuyang, 

    1. The ping command is 1 byte and only needs to include the 0x20 command. The SBL device will not read the first byte but will begin configuring the SPI SBL after receiving the ping. Please try sending the ping command (0x20).

    2. I mentioned in the initial response; TI does not have a recommended delay. Try 100ms, but if this does not work, please try increasing the delay. 

    The R&D team is creating a UART ROM SBL example. The example does not have a timeline, and SPI is not within the plan. This is because the SPI ROM SBL needs an additional piece of hardware to communicate the SPI commands to the device. Since there are a variety of these devices on the market, and the implementation can vary depending on the specifc device, it would be difficult for TI to create an example project. 

    I will get back to you on MSB or LSB first. 

    Thanks, 
    Isaac

  • Hi Isaac,

    I seriously doubt your conclusion that the ping command is 1 byte. From the TRM, all communication use use these well-defined packets, including SPI and UART. I'm pretty sure the UART ping command is 3 byte, from the TRM I also believe the SPI ping command is also 3 bytes.

    Besides, although not specified in CC27xx TRM, the CC26xx TRM explicitly specifies the bytes in COMMAND_PING packet is 3:

    Do we have someone in the team who has tested the SPI interface? We need effective guidiance to support this, the customer has been stuck in this for days, it is a urgent case for them, thanks!

    Best regards,

    Shuyang

  • Hello Shuyang, 

    My apologies, you are correct. The format of the commands is number of bytes, checksum, then data. I will include an image below: 

    Additionally, the bytes are received MSB first. The commands will work the same between UART and SPI. The only difference is UART uses 0x55 0x55 for autobaud detection. 

    Let me know if increasing the delay works. The delay should be added after then enter command sequence, so after the last 0x20 command is sent. 

    Thanks, 
    Isaac

  • Hi Isaac,

    The customer tried adding a delay after the last 0x20, with a range from 100ms to 2000ms, but nont of them worked. The device is not responding the expected ACK packet.

    Can you help reach out to the team and provide a logic trace demonstrating the correct command and timing for the SPI ROM bootloader? Thanks.

    Best regards,

    Shuyang