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.

CC2540 SBL UPDATE

Other Parts Discussed in Thread: CC2540

Hi

when i used TI BLE protocol of 1.4 to updated my firmware by sbl ,i met some strange situation.

i use sbl project to download the Bootloader to the CC2540, Then use serialbootTool load the image of HostTestApp in the TI ble protocol of 1.4, the first time load the image successfully, the second time success too ,but when i try more times it failed ,the message remind me that timeout waiting for response from target! it doesn't work by reset the system untill i cutdown the power and poweron again!

i am confused ,what causes this strange situation? hope some kindness pepole can give me a favor to resolve this problem.

  • I'm not sure what this could be. Can you post some more information about the failure case, such as a screenshot? The best way to debug this is to do a logic capture of the UART / SPI lines and compare the success case to the fail case.

    When does this timeout occur? Does the SBL start and it is in the middle of the image loading or is it before the SBL starts?

    Also, how are you jumping back to the SBL from HostTestApp?
  • The timeout occurs in the middle of loading the image, when this situation occurs, neither you continue loading nor restart upstating the image ,it always remind me timeout.

    in the HostTestApp project i use the function of appForceBoot() to back to the sbl, the procedure is that when the App project runs ,after 6 seconds the App project called function of appForceBoot() to run the sbl .

    Some more information of the hardware : the pin RTS and CTS of cc2540 connected to the pin RTS and CTS of PL-2303(USB to Serial RS232 Bridge Controller) .
  • That all sounds correct. I think we'll need to see a logic capture of the UART lines for the entire failed SBL (from start to fail) to debug further.  Have you tried comparing this with the succeeding case?

  • hi Tim

    I didn't do a logic capture of the UART ,how to do this ?Does TI provide the tool to do this ?

  • Hello. You will need some type of logic analyzer, such as Salae: https://www.saleae.com/

    You could also use an oscilloscope if it has a way to decode the waveforms into byte data.