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.

Error loading bin file using SerialBootLoader in smartRF05EB

Other Parts Discussed in Thread: CC2540

Hi,

I loaded the OADManager built using BLE stack 1.4.2 for CC2540 into a CC2540 board mounted on the smartRF05EB. When reset, I press the joy stick down and the screen shows SBL mode.

Here I try to load a bin file using serial boot loader 1.3.2 and hit the write error. Please find the attached images. I tried with BTool for the same smartRF05EB and it is working fine. So issue is not with the board or serial port.

I had an issue with BTool as well which was resolved after updating the stack.  Please take a look at this. (https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/p/505546/1913985#1913985)

Regards,

  • Hi Tejas,

    Are you able to verify that the SRF05 is present on COM6? Make sure the RS232 switch is enabled, additionally be sure that the EM selection is set to SoC/TRX.
  • Hi Tejas,

    Fortunately your last screen grap shows the COM port settings. Can you try disabling CTS/RTS and set to None. The SBL does not enable HW flow control.

    Best wishes
  • Hi,

    @Sean: Yes. SRF05 is present on COM6. In device manager, I can see this. RS232 switch is enabled. But EM selection was set to MSP.

    I made the following changes
    1. EM selection is set to SoC/TRX
    2. Flow control set to None

    I encounter the error shown in screenshot-2 i.e `Device Command Response Timeout, Operation State = Handshake`
    I changed the flow control back to CTS/RTS and the same errors occur as before. (Screenshot-1, 2 and then 3)

    It seems quite strange that no one ever encountered such issues. So I want to make sure I am doing this correctly.
    1. I loaded the OAD manager hex using flash programmer (BLE-1.4.2).
    2. I connected a DB9 cable from SRF05 to computer.
    3. I do a USB reset just to make sure and then, press the joystick down.
    4. In the screen I see `OAD Manager <device_id> SBL mode...`
    5. Then I open the serialBootLoader 1.3.2, select the OAD-imgB bin file. I make the configurations as mentioned and then, hit Load Image button.

    Let me know if I am doing anything wrong.
  • Hi ,  

    Any thoughts on this?

  • Hi,

    Any suggestion on how to debug would help. We are really close to production and the decision about whether BIM should be used or BEM depends entirely on your answers. Please help.
  • Tejas,

    I have verified this procedure to be correct as early as last week. It seems that your PC is not connecting to the SmartRF05 correctly or your cable is damaged. Perhaps you can try another cable. Also ensure that all the jumpers on the SRF05 are attached.

    The next step is to provide a logic analyzer capture of communication between the PC and the SRF05EB so that we can help you debug.
  • Hi Sean2 (4049745) ,

    I replaced smartRF05EB, the serial cable and the CC2540 module before taking a trace.

    I used a crude logic analyser that would filter the data from serial port. It generated one read and one write file with the data. Attaching the files for reference.

    READ:

    000098: 2016-07-13 16:25:45.8683094 +0.0530351
    
     FE 00 4D 04 49                                    þ.M.I
    000120: 2016-07-13 16:25:45.9309164 +0.0593797
    
     FE 00 4D 04 49                                    þ.M.I
    000138: 2016-07-13 16:25:45.9933079 +0.0597564
    
     FE 00 4D 04 49                                    þ.M.I
    000156: 2016-07-13 16:25:46.0558154 +0.0599219
    
     FE 00 4D 04 49                                    þ.M.I
    000174: 2016-07-13 16:25:46.1092191 +0.0506850
    
     FE 00 4D 04 49                                    þ.M.I
    000194: 2016-07-13 16:25:46.1715616 +0.0588869
    
     FE 00 4D 04 49                                    þ.M.I
    000212: 2016-07-13 16:25:46.2342313 +0.0603605
    
     FE 00 4D 04 49                                    þ.M.I
    000228: 2016-07-13 16:25:46.2966715 +0.0599084
    
     FE 00 4D 04 49                                    þ.M.I
    000246: 2016-07-13 16:25:46.3592178 +0.0595533
    
     FE 00 4D 04 49                                    þ.M.I
    000262: 2016-07-13 16:25:46.4216051 +0.0597799
    
     FE 00 4D 04 49                                    þ.M.I
    000280: 2016-07-13 16:25:46.4841829 +0.0601399
    
     FE 00 4D 04 49                                    þ.M.I
    000302: 2016-07-13 16:25:46.5466892 +0.0597509
    
     FE 00 4D 04 49                                    þ.M.I
    000324: 2016-07-13 16:25:46.6109222 +0.0592866
    
     FE 00 4D 04 49                                    þ.M.I
    000342: 2016-07-13 16:25:46.6733521 +0.0594471
    
     FE 00 4D 04 49                                    þ.M.I
    000364: 2016-07-13 16:25:46.7357504 +0.0590980
    
     FE 00 4D 04 49                                    þ.M.I
    000382: 2016-07-13 16:25:46.8054171 +0.0670256
    
     FE 00 4D 04 49                                    þ.M.I
    000400: 2016-07-13 16:25:46.8608035 +0.0526250
    
     FE 00 4D 04 49                                    þ.M.I
    000418: 2016-07-13 16:25:46.9233870 +0.0598234
    
     FE 00 4D 04 49                                    þ.M.I
    000440: 2016-07-13 16:25:46.9858199 +0.0592453
    
     FE 00 4D 04 49                                    þ.M.I
    000458: 2016-07-13 16:25:47.0484000 +0.0595956
    
     FE 00 4D 04 49                                    þ.M.I
    000480: 2016-07-13 16:25:47.1118504 +0.0604377
    
     FE 00 4D 04 49                                    þ.M.I
    000502: 2016-07-13 16:25:47.1745253 +0.0598171
    
     FE 00 4D 04 49                                    þ.M.I
    000524: 2016-07-13 16:25:47.2368685 +0.0597837
    
     FE 00 4D 04 49                                    þ.M.I
    000542: 2016-07-13 16:25:47.2890614 +0.0489250
    
     FE 00 4D 04 49                                    þ.M.I
    000560: 2016-07-13 16:25:47.3514844 +0.0593634
    
     FE 00 4D 04 49                                    þ.M.I
    000578: 2016-07-13 16:25:47.4140235 +0.0597610
    
     FE 00 4D 04 49                                    þ.M.I
    000596: 2016-07-13 16:25:47.4766258 +0.0597636
    
     FE 00 4D 04 49                                    þ.M.I
    000618: 2016-07-13 16:25:47.5391056 +0.0594027
    
     FE 00 4D 04 49                                    þ.M.I
    000636: 2016-07-13 16:25:47.6016029 +0.0596126
    
     FE 00 4D 04 49                                    þ.M.I
    000654: 2016-07-13 16:25:47.6639565 +0.0590614
    
     FE 00 4D 04 49                                    þ.M.I
    000672: 2016-07-13 16:25:47.7266935 +0.0600507
    
     FE 00 4D 04 49                                    þ.M.I
    000690: 2016-07-13 16:25:47.7891235 +0.0593614
    
     FE 00 4D 04 49                                    þ.M.I
    000708: 2016-07-13 16:25:47.8516758 +0.0593464
    
     FE 00 4D 04 49                                    þ.M.I
    000726: 2016-07-13 16:25:47.9140763 +0.0592918
    
     FE 00 4D 04 49                                    þ.M.I
    000744: 2016-07-13 16:25:47.9766359 +0.0601502
    
     FE 00 4D 04 49                                    þ.M.I
    000766: 2016-07-13 16:25:48.0391285 +0.0585601
    
     FE 00 4D 04 49                                    þ.M.I
    000782: 2016-07-13 16:25:48.1016983 +0.0596924
    
     FE 00 4D 04 49                                    þ.M.I
    000800: 2016-07-13 16:25:48.1640053 +0.0588838
    
     FE 00 4D 04 49                                    þ.M.I
    000818: 2016-07-13 16:25:48.2266597 +0.0598238
    
     FE 00 4D 04 49                                    þ.M.I
    000836: 2016-07-13 16:25:48.2891642 +0.0593715
    
     FE 00 4D 04 49                                    þ.M.I
    000852: 2016-07-13 16:25:48.3517332 +0.0600657
    
     FE 00 4D 04 49                                    þ.M.I
    000870: 2016-07-13 16:25:48.4141636 +0.0591719
    
     FE 00 4D 04 49                                    þ.M.I
    000888: 2016-07-13 16:25:48.4767415 +0.0598891
    
     FE 00 4D 04 49                                    þ.M.I
    000906: 2016-07-13 16:25:48.5393109 +0.0594031
    
     FE 00 4D 04 49                                    þ.M.I
    000924: 2016-07-13 16:25:48.6015355 +0.0595729
    
     FE 00 4D 04 49                                    þ.M.I
    000946: 2016-07-13 16:25:48.6643016 +0.0585088
    
     FE 00 4D 04 49                                    þ.M.I
    000964: 2016-07-13 16:25:48.7267584 +0.0597594
    
     FE 00 4D 04 49                                    þ.M.I
    000986: 2016-07-13 16:25:48.7894251 +0.0600405
    
     FE 00 4D 04 49                                    þ.M.I
    001008: 2016-07-13 16:25:48.8516673 +0.0594151
    
     FE 00 4D 04 49                                    þ.M.I
    001030: 2016-07-13 16:25:48.9141962 +0.0597184
    
     FE 00 4D 04 49                                    þ.M.I
    001048: 2016-07-13 16:25:48.9765996 +0.0591650
    
     FE 00 4D 04 49                                    þ.M.I
    001070: 2016-07-13 16:25:49.0392258 +0.0585562
    
     FE 00 4D 04 49                                    þ.M.I
    001092: 2016-07-13 16:25:49.1017478 +0.0592529
    
     FE 00 4D 04 49                                    þ.M.I
    001110: 2016-07-13 16:25:49.1642511 +0.0593306
    
     FE 00 4D 04 49                                    þ.M.I
    001126: 2016-07-13 16:25:49.2266750 +0.0596340
    
     FE 00 4D 04 49                                    þ.M.I
    001148: 2016-07-13 16:25:49.2893930 +0.0599767
    
     FE 00 4D 04 49                                    þ.M.I
    001170: 2016-07-13 16:25:49.3517869 +0.0592579
    
     FE 00 4D 04 49                                    þ.M.I
    001188: 2016-07-13 16:25:49.4035096 +0.0486532
    
     FE 00 4D 04 49                                    þ.M.I
    001210: 2016-07-13 16:25:49.4628300 +0.0562117
    
     FE 00 4D 04 49                                    þ.M.I
    001228: 2016-07-13 16:25:49.5252936 +0.0594556
    
     FE 00 4D 04 49                                    þ.M.I
    001254: 2016-07-13 16:25:49.5877683 +0.0593127
    
     FE 00 4D 04 49                                    þ.M.I
    001272: 2016-07-13 16:25:49.6503642 +0.0597535
    
     FE 00 4D 04 49                                    þ.M.I
    001298: 2016-07-13 16:25:49.7126869 +0.0591214
    
     FE 00 4D 04 49                                    þ.M.I
    001316: 2016-07-13 16:25:49.7752944 +0.0599011
    
     FE 00 4D 04 49                                    þ.M.I
    001338: 2016-07-13 16:25:49.8377967 +0.0593301
    
     FE 00 4D 04 49                                    þ.M.I
    001356: 2016-07-13 16:25:49.8584073 +0.0179165
    
     FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42   þBM...‚ÿÿ...|BB
     42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF   BBÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
     FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09   ÿÿÿÿÿÿ..........
     0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF   ..ÿÿÿÿ.Gx.X—ÿÿÿÿ
     FF FF FF FF FF FF 84                              ÿÿÿÿÿÿ„
    001378: 2016-07-13 16:25:50.8564984 +0.9665727
    
     FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42   þBM...‚ÿÿ...|BB
     42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF   BBÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
     FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09   ÿÿÿÿÿÿ..........
     0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF   ..ÿÿÿÿ.Gx.X—ÿÿÿÿ
     FF FF FF FF FF FF 84                              ÿÿÿÿÿÿ„
    001400: 2016-07-13 16:25:51.8593652 +0.1097331
    
     FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42   þBM...‚ÿÿ...|BB
     42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF   BBÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
     FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09   ÿÿÿÿÿÿ..........
     0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF   ..ÿÿÿÿ.Gx.X—ÿÿÿÿ
     FF FF FF FF FF FF 84                              ÿÿÿÿÿÿ„
    001418: 2016-07-13 16:25:52.8649844 +0.9747511
    
     FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42   þBM...‚ÿÿ...|BB
     42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF   BBÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
     FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09   ÿÿÿÿÿÿ..........
     0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF   ..ÿÿÿÿ.Gx.X—ÿÿÿÿ
     FF FF FF FF FF FF 84                              ÿÿÿÿÿÿ„
    001436: 2016-07-13 16:25:53.8672052 +0.9716053
    
     FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42   þBM...‚ÿÿ...|BB
     42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF   BBÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
     FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09   ÿÿÿÿÿÿ..........
     0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF   ..ÿÿÿÿ.Gx.X—ÿÿÿÿ
     FF FF FF FF FF FF 84                              ÿÿÿÿÿÿ„
    001454: 2016-07-13 16:25:54.8787739 +0.9806490
    
     FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42   þBM...‚ÿÿ...|BB
     42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF   BBÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
     FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09   ÿÿÿÿÿÿ..........
     0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF   ..ÿÿÿÿ.Gx.X—ÿÿÿÿ
     FF FF FF FF FF 84                                        ÿÿÿ„
                                                ÿÿ
    

    WRITE:

    000113: 2016-07-13 16:25:45.8707103 +0.0000030
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    000135: 2016-07-13 16:25:45.9334564 +0.0000013
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    000153: 2016-07-13 16:25:45.9958018 +0.0000017
    
     FE 01 5D C2 00 EC                                 þ.]Â.ì
    000171: 2016-07-13 16:25:46.0583656 +0.0000021
    
     FE 01 5D C2 00 EC                                 þ.]Â.ì
    000189: 2016-07-13 16:25:46.1117971 +0.0000030
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    000209: 2016-07-13 16:25:46.1738268 +0.0000017
    
     FE 01 5D 84 00 C8                                 þ.]„.È
    000227: 2016-07-13 16:25:46.2367631 +0.0000030
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    000243: 2016-07-13 16:25:46.2995536 +0.0000034
    
     FE 01 DD 84 00 C8                                 þ.Ý„.È
    000261: 2016-07-13 16:25:46.3618252 +0.0000039
    
     FF 01 D3 38 E4                                    ÿ.Ó8ä
    000277: 2016-07-13 16:25:46.4239816 +0.0000026
    
     FF 01 5D C2 00 EC                                 ÿ.]Â.ì
    000299: 2016-07-13 16:25:46.4868423 +0.0000025
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    000317: 2016-07-13 16:25:46.5491801 +0.0000030
    
     FF 01 D3 38 C8                                    ÿ.Ó8È
    000339: 2016-07-13 16:25:46.6138171 +0.0000030
    
     FE 01 D3 C2 00 E4                                 þ.ÓÂ.ä
    000357: 2016-07-13 16:25:46.6758375 +0.0000039
    
     FE 01 9D 00 E4                                    þ..ä
    000379: 2016-07-13 16:25:46.7383420 +0.0000017
    
     FF 01 9D 00 E4                                    ÿ..ä
    000397: 2016-07-13 16:25:46.8079079 +0.0000034
    
     FF 01 9D 00 E4                                    ÿ..ä
    000415: 2016-07-13 16:25:46.8634859 +0.0000030
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    000433: 2016-07-13 16:25:46.9260165 +0.0000030
    
     FF 01 9D 38 E4                                    ÿ.8ä
    000455: 2016-07-13 16:25:46.9885198 +0.0000047
    
     FF 01 D3 38 E4                                    ÿ.Ó8ä
    000473: 2016-07-13 16:25:47.0509024 +0.0000035
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    000499: 2016-07-13 16:25:47.1145926 +0.0000030
    
     FE 01 9D 00 E4                                    þ..ä
    000521: 2016-07-13 16:25:47.1769927 +0.0000047
    
     FE 01 9D 00 E4                                    þ..ä
    000539: 2016-07-13 16:25:47.2397660 +0.0000055
    
     FE 01 3A 38 EC                                    þ.:8ì
    000557: 2016-07-13 16:25:47.2917699 +0.0000047
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    000575: 2016-07-13 16:25:47.3541857 +0.0000030
    
     FF 01 5D C2 00 EC                                 ÿ.]Â.ì
    000593: 2016-07-13 16:25:47.4167534 +0.0000047
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    000615: 2016-07-13 16:25:47.4793258 +0.0000039
    
     FF 01 9D 00 E4                                    ÿ..ä
    000633: 2016-07-13 16:25:47.5418773 +0.0000039
    
     FF 01 D3 38 E4                                    ÿ.Ó8ä
    000651: 2016-07-13 16:25:47.6045841 +0.0000039
    
     FF 01 D3 38 E4                                    ÿ.Ó8ä
    000669: 2016-07-13 16:25:47.6665459 +0.0000012
    
     FE 01 D3 C2 00 E4                                 þ.ÓÂ.ä
    000687: 2016-07-13 16:25:47.7296700 +0.0000047
    
     FE 01 D3 C2 00 E4                                 þ.ÓÂ.ä
    000705: 2016-07-13 16:25:47.7919587 +0.0000043
    
     FE 01 3A 38 EC                                    þ.:8ì
    000723: 2016-07-13 16:25:47.8546765 +0.0000047
    
     FF 01 D3 38 E4                                    ÿ.Ó8ä
    000741: 2016-07-13 16:25:47.9163914 +0.0000017
    
     FF 01 5D 84 00 C8                                 ÿ.]„.È
    000759: 2016-07-13 16:25:47.9794322 +0.0000042
    
     FE 01 9D 00 E4                                    þ..ä
    000781: 2016-07-13 16:25:48.0420059 +0.0000042
    
     FE 01 D7 C2 00 E4                                 þ.×Â.ä
    000797: 2016-07-13 16:25:48.1047554 +0.0000043
    
     FE 01 5D C2 00 EC                                 þ.]Â.ì
    000815: 2016-07-13 16:25:48.1666379 +0.0000022
    
     FE 01 D3 C2 00 E4                                 þ.ÓÂ.ä
    000833: 2016-07-13 16:25:48.2294057 +0.0000042
    
     FE 01 9D 38 E4                                    þ.8ä
    000851: 2016-07-13 16:25:48.2916675 +0.0000043
    
     FE 01 D7 C2 00 E4                                 þ.×Â.ä
    000867: 2016-07-13 16:25:48.3546435 +0.0000047
    
     FF 01 D3 38 E4                                    ÿ.Ó8ä
    000885: 2016-07-13 16:25:48.4167543 +0.0000047
    
     FF 01 9D 00 E4                                    ÿ..ä
    000903: 2016-07-13 16:25:48.4795447 +0.0000098
    
     FE 01 9D 00 E4                                    þ..ä
    000921: 2016-07-13 16:25:48.5418679 +0.0000043
    
     FE 01 9D 00 E4                                    þ..ä
    000939: 2016-07-13 16:25:48.6041694 +0.0000013
    
     FF 01 D3 C2 00 E4                                 ÿ.ÓÂ.ä
    000961: 2016-07-13 16:25:48.6668902 +0.0000038
    
     FF 01 9D 00 E4                                    ÿ..ä
    000983: 2016-07-13 16:25:48.7292779 +0.0000055
    
     FE 01 D3 C2 00 E4                                 þ.ÓÂ.ä
    001005: 2016-07-13 16:25:48.7921613 +0.0000038
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    001027: 2016-07-13 16:25:48.8543818 +0.0000047
    
     FF 01 D3 38 E4                                    ÿ.Ó8ä
    001045: 2016-07-13 16:25:48.9170288 +0.0000047
    
     FE 01 3A 38 E4                                    þ.:8ä
    001063: 2016-07-13 16:25:48.9793004 +0.0000017
    
     FF 01 D7 C2 00 E4                                 ÿ.×Â.ä
    001085: 2016-07-13 16:25:49.0423652 +0.0000043
    
     FF 01 9D 00 E4                                    ÿ..ä
    001107: 2016-07-13 16:25:49.1047566 +0.0000047
    
     FE 01 5D 84 00 C8                                 þ.]„.È
    001125: 2016-07-13 16:25:49.1670410 +0.0000047
    
     FF 01 9D 00 E4                                    ÿ..ä
    001141: 2016-07-13 16:25:49.2292913 +0.0000013
    
     FE 01 D7 C2 00 E4                                 þ.×Â.ä
    001163: 2016-07-13 16:25:49.2920426 +0.0000043
    
     FE 01 3A 38 EC                                    þ.:8ì
    001185: 2016-07-13 16:25:49.3547604 +0.0000047
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    001203: 2016-07-13 16:25:49.4060428 +0.0000017
    
     FF 01 9D 00 E4                                    ÿ..ä
    001225: 2016-07-13 16:25:49.4655073 +0.0000039
    
     FE 01 D3 38 E4                                    þ.Ó8ä
    001247: 2016-07-13 16:25:49.5279526 +0.0000034
    
     FF 01 D3 38 C8                                    ÿ.Ó8È
    001269: 2016-07-13 16:25:49.5905224 +0.0000043
    
     FE 01 8D 38 E4                                    þ.8ä
    001291: 2016-07-13 16:25:49.6529673 +0.0000064
    
     FF 01 D3 38 C8                                    ÿ.Ó8È
    001313: 2016-07-13 16:25:49.7153310 +0.0000021
    
     FE 01 8D 38 E4                                    þ.8ä
    001331: 2016-07-13 16:25:49.7777405 +0.0000043
    
     FF 01 3A 38 EC                                    ÿ.:8ì
    001353: 2016-07-13 16:25:49.8404114 +0.0000030
    
     FE 01 4D 84 00 C8                                 þ.M„.È
    001371: 2016-07-13 16:25:49.8886653 +0.0000034
    
     FE 01 5A 00 DD                                    þ.Z.Ý
    001393: 2016-07-13 16:25:50.8871378 +0.0000060
    
     FE 01 2F 00 DD                                    þ./.Ý
    001415: 2016-07-13 16:25:51.8897814 +0.0000038
    
     FF 01 FA 00 FF                                    ÿ.ú.ÿ
    001428: 2016-07-13 16:25:52.8953571 +0.0000055
    
     FF 01 2D 00 FF                                    ÿ.-.ÿ
    001451: 2016-07-13 16:25:53.8977153 +0.0000051
    
     FF 01 5D 70 FE                                    ÿ.]pþ
    001469: 2016-07-13 16:25:54.9093445 +0.0000051
    
     FF 001 FA 00 FF                                   ÿ.ú.ÿ
    

  • Hi,

    Attaching a single sorted file.

    000098: 2016-07-13 16:25:45.8683094 +0.0530351 [RX] FE 00 4D 04 49 
    000113: 2016-07-13 16:25:45.8707103 +0.0000030 [TX] FE 01 D3 38 E4 
    000120: 2016-07-13 16:25:45.9309164 +0.0593797 [RX] FE 00 4D 04 49 
    000135: 2016-07-13 16:25:45.9334564 +0.0000013 [TX] FE 01 D3 38 E4 
    000138: 2016-07-13 16:25:45.9933079 +0.0597564 [RX] FE 00 4D 04 49 
    000153: 2016-07-13 16:25:45.9958018 +0.0000017 [TX] FE 01 5D C2 00 EC 
    000156: 2016-07-13 16:25:46.0558154 +0.0599219 [RX] FE 00 4D 04 49 
    000171: 2016-07-13 16:25:46.0583656 +0.0000021 [TX] FE 01 5D C2 00 EC 
    000174: 2016-07-13 16:25:46.1092191 +0.0506850 [RX] FE 00 4D 04 49 
    000189: 2016-07-13 16:25:46.1117971 +0.0000030 [TX] FE 01 D3 38 E4 
    000194: 2016-07-13 16:25:46.1715616 +0.0588869 [RX] FE 00 4D 04 49 
    000209: 2016-07-13 16:25:46.1738268 +0.0000017 [TX] FE 01 5D 84 00 C8 
    000212: 2016-07-13 16:25:46.2342313 +0.0603605 [RX] FE 00 4D 04 49 
    000227: 2016-07-13 16:25:46.2367631 +0.0000030 [TX] FE 01 D3 38 E4 
    000228: 2016-07-13 16:25:46.2966715 +0.0599084 [RX] FE 00 4D 04 49 
    000243: 2016-07-13 16:25:46.2995536 +0.0000034 [TX] FE 01 DD 84 00 C8 
    000246: 2016-07-13 16:25:46.3592178 +0.0595533 [RX] FE 00 4D 04 49 
    000261: 2016-07-13 16:25:46.3618252 +0.0000039 [TX] FF 01 D3 38 E4 
    000262: 2016-07-13 16:25:46.4216051 +0.0597799 [RX] FE 00 4D 04 49 
    000277: 2016-07-13 16:25:46.4239816 +0.0000026 [TX] FF 01 5D C2 00 EC 
    000280: 2016-07-13 16:25:46.4841829 +0.0601399 [RX] FE 00 4D 04 49 
    000299: 2016-07-13 16:25:46.4868423 +0.0000025 [TX] FE 01 D3 38 E4 
    000302: 2016-07-13 16:25:46.5466892 +0.0597509 [RX] FE 00 4D 04 49 
    000317: 2016-07-13 16:25:46.5491801 +0.0000030 [TX] FF 01 D3 38 C8 
    000324: 2016-07-13 16:25:46.6109222 +0.0592866 [RX] FE 00 4D 04 49 
    000339: 2016-07-13 16:25:46.6138171 +0.0000030 [TX] FE 01 D3 C2 00 E4 
    000342: 2016-07-13 16:25:46.6733521 +0.0594471 [RX] FE 00 4D 04 49 
    000357: 2016-07-13 16:25:46.6758375 +0.0000039 [TX] FE 01 9D 00 E4 
    000364: 2016-07-13 16:25:46.7357504 +0.0590980 [RX] FE 00 4D 04 49 
    000379: 2016-07-13 16:25:46.7383420 +0.0000017 [TX] FF 01 9D 00 E4 
    000382: 2016-07-13 16:25:46.8054171 +0.0670256 [RX] FE 00 4D 04 49 
    000397: 2016-07-13 16:25:46.8079079 +0.0000034 [TX] FF 01 9D 00 E4 
    000400: 2016-07-13 16:25:46.8608035 +0.0526250 [RX] FE 00 4D 04 49 
    000415: 2016-07-13 16:25:46.8634859 +0.0000030 [TX] FE 01 D3 38 E4 
    000418: 2016-07-13 16:25:46.9233870 +0.0598234 [RX] FE 00 4D 04 49 
    000433: 2016-07-13 16:25:46.9260165 +0.0000030 [TX] FF 01 9D 38 E4 
    000440: 2016-07-13 16:25:46.9858199 +0.0592453 [RX] FE 00 4D 04 49 
    000455: 2016-07-13 16:25:46.9885198 +0.0000047 [TX] FF 01 D3 38 E4 
    000458: 2016-07-13 16:25:47.0484000 +0.0595956 [RX] FE 00 4D 04 49 
    000473: 2016-07-13 16:25:47.0509024 +0.0000035 [TX] FE 01 D3 38 E4 
    000480: 2016-07-13 16:25:47.1118504 +0.0604377 [RX] FE 00 4D 04 49 
    000499: 2016-07-13 16:25:47.1145926 +0.0000030 [TX] FE 01 9D 00 E4 
    000502: 2016-07-13 16:25:47.1745253 +0.0598171 [RX] FE 00 4D 04 49 
    000521: 2016-07-13 16:25:47.1769927 +0.0000047 [TX] FE 01 9D 00 E4 
    000524: 2016-07-13 16:25:47.2368685 +0.0597837 [RX] FE 00 4D 04 49 
    000539: 2016-07-13 16:25:47.2397660 +0.0000055 [TX] FE 01 3A 38 EC 
    000542: 2016-07-13 16:25:47.2890614 +0.0489250 [RX] FE 00 4D 04 49 
    000557: 2016-07-13 16:25:47.2917699 +0.0000047 [TX] FE 01 D3 38 E4 
    000560: 2016-07-13 16:25:47.3514844 +0.0593634 [RX] FE 00 4D 04 49 
    000575: 2016-07-13 16:25:47.3541857 +0.0000030 [TX] FF 01 5D C2 00 EC 
    000578: 2016-07-13 16:25:47.4140235 +0.0597610 [RX] FE 00 4D 04 49 
    000593: 2016-07-13 16:25:47.4167534 +0.0000047 [TX] FE 01 D3 38 E4 
    000596: 2016-07-13 16:25:47.4766258 +0.0597636 [RX] FE 00 4D 04 49 
    000615: 2016-07-13 16:25:47.4793258 +0.0000039 [TX] FF 01 9D 00 E4 
    000618: 2016-07-13 16:25:47.5391056 +0.0594027 [RX] FE 00 4D 04 49 
    000633: 2016-07-13 16:25:47.5418773 +0.0000039 [TX] FF 01 D3 38 E4 
    000636: 2016-07-13 16:25:47.6016029 +0.0596126 [RX] FE 00 4D 04 49 
    000651: 2016-07-13 16:25:47.6045841 +0.0000039 [TX] FF 01 D3 38 E4 
    000654: 2016-07-13 16:25:47.6639565 +0.0590614 [RX] FE 00 4D 04 49 
    000669: 2016-07-13 16:25:47.6665459 +0.0000012 [TX] FE 01 D3 C2 00 E4 
    000672: 2016-07-13 16:25:47.7266935 +0.0600507 [RX] FE 00 4D 04 49 
    000687: 2016-07-13 16:25:47.7296700 +0.0000047 [TX] FE 01 D3 C2 00 E4 
    000690: 2016-07-13 16:25:47.7891235 +0.0593614 [RX] FE 00 4D 04 49 
    000705: 2016-07-13 16:25:47.7919587 +0.0000043 [TX] FE 01 3A 38 EC 
    000708: 2016-07-13 16:25:47.8516758 +0.0593464 [RX] FE 00 4D 04 49 
    000723: 2016-07-13 16:25:47.8546765 +0.0000047 [TX] FF 01 D3 38 E4 
    000726: 2016-07-13 16:25:47.9140763 +0.0592918 [RX] FE 00 4D 04 49 
    000741: 2016-07-13 16:25:47.9163914 +0.0000017 [TX] FF 01 5D 84 00 C8 
    000744: 2016-07-13 16:25:47.9766359 +0.0601502 [RX] FE 00 4D 04 49 
    000759: 2016-07-13 16:25:47.9794322 +0.0000042 [TX] FE 01 9D 00 E4 
    000766: 2016-07-13 16:25:48.0391285 +0.0585601 [RX] FE 00 4D 04 49 
    000781: 2016-07-13 16:25:48.0420059 +0.0000042 [TX] FE 01 D7 C2 00 E4 
    000782: 2016-07-13 16:25:48.1016983 +0.0596924 [RX] FE 00 4D 04 49 
    000797: 2016-07-13 16:25:48.1047554 +0.0000043 [TX] FE 01 5D C2 00 EC 
    000800: 2016-07-13 16:25:48.1640053 +0.0588838 [RX] FE 00 4D 04 49 
    000815: 2016-07-13 16:25:48.1666379 +0.0000022 [TX] FE 01 D3 C2 00 E4 
    000818: 2016-07-13 16:25:48.2266597 +0.0598238 [RX] FE 00 4D 04 49 
    000833: 2016-07-13 16:25:48.2294057 +0.0000042 [TX] FE 01 9D 38 E4 
    000836: 2016-07-13 16:25:48.2891642 +0.0593715 [RX] FE 00 4D 04 49 
    000851: 2016-07-13 16:25:48.2916675 +0.0000043 [TX] FE 01 D7 C2 00 E4 
    000852: 2016-07-13 16:25:48.3517332 +0.0600657 [RX] FE 00 4D 04 49 
    000867: 2016-07-13 16:25:48.3546435 +0.0000047 [TX] FF 01 D3 38 E4 
    000870: 2016-07-13 16:25:48.4141636 +0.0591719 [RX] FE 00 4D 04 49 
    000885: 2016-07-13 16:25:48.4167543 +0.0000047 [TX] FF 01 9D 00 E4 
    000888: 2016-07-13 16:25:48.4767415 +0.0598891 [RX] FE 00 4D 04 49 
    000903: 2016-07-13 16:25:48.4795447 +0.0000098 [TX] FE 01 9D 00 E4 
    000906: 2016-07-13 16:25:48.5393109 +0.0594031 [RX] FE 00 4D 04 49 
    000921: 2016-07-13 16:25:48.5418679 +0.0000043 [TX] FE 01 9D 00 E4 
    000924: 2016-07-13 16:25:48.6015355 +0.0595729 [RX] FE 00 4D 04 49 
    000939: 2016-07-13 16:25:48.6041694 +0.0000013 [TX] FF 01 D3 C2 00 E4 
    000946: 2016-07-13 16:25:48.6643016 +0.0585088 [RX] FE 00 4D 04 49 
    000961: 2016-07-13 16:25:48.6668902 +0.0000038 [TX] FF 01 9D 00 E4 
    000964: 2016-07-13 16:25:48.7267584 +0.0597594 [RX] FE 00 4D 04 49 
    000983: 2016-07-13 16:25:48.7292779 +0.0000055 [TX] FE 01 D3 C2 00 E4 
    000986: 2016-07-13 16:25:48.7894251 +0.0600405 [RX] FE 00 4D 04 49 
    001005: 2016-07-13 16:25:48.7921613 +0.0000038 [TX] FE 01 D3 38 E4 
    001008: 2016-07-13 16:25:48.8516673 +0.0594151 [RX] FE 00 4D 04 49 
    001027: 2016-07-13 16:25:48.8543818 +0.0000047 [TX] FF 01 D3 38 E4 
    001030: 2016-07-13 16:25:48.9141962 +0.0597184 [RX] FE 00 4D 04 49 
    001045: 2016-07-13 16:25:48.9170288 +0.0000047 [TX] FE 01 3A 38 E4 
    001048: 2016-07-13 16:25:48.9765996 +0.0591650 [RX] FE 00 4D 04 49 
    001063: 2016-07-13 16:25:48.9793004 +0.0000017 [TX] FF 01 D7 C2 00 E4 
    001070: 2016-07-13 16:25:49.0392258 +0.0585562 [RX] FE 00 4D 04 49 
    001085: 2016-07-13 16:25:49.0423652 +0.0000043 [TX] FF 01 9D 00 E4 
    001092: 2016-07-13 16:25:49.1017478 +0.0592529 [RX] FE 00 4D 04 49 
    001107: 2016-07-13 16:25:49.1047566 +0.0000047 [TX] FE 01 5D 84 00 C8 
    001110: 2016-07-13 16:25:49.1642511 +0.0593306 [RX] FE 00 4D 04 49 
    001125: 2016-07-13 16:25:49.1670410 +0.0000047 [TX] FF 01 9D 00 E4 
    001126: 2016-07-13 16:25:49.2266750 +0.0596340 [RX] FE 00 4D 04 49 
    001141: 2016-07-13 16:25:49.2292913 +0.0000013 [TX] FE 01 D7 C2 00 E4 
    001148: 2016-07-13 16:25:49.2893930 +0.0599767 [RX] FE 00 4D 04 49 
    001163: 2016-07-13 16:25:49.2920426 +0.0000043 [TX] FE 01 3A 38 EC 
    001170: 2016-07-13 16:25:49.3517869 +0.0592579 [RX] FE 00 4D 04 49 
    001185: 2016-07-13 16:25:49.3547604 +0.0000047 [TX] FE 01 D3 38 E4 
    001188: 2016-07-13 16:25:49.4035096 +0.0486532 [RX] FE 00 4D 04 49 
    001203: 2016-07-13 16:25:49.4060428 +0.0000017 [TX] FF 01 9D 00 E4 
    001210: 2016-07-13 16:25:49.4628300 +0.0562117 [RX] FE 00 4D 04 49 
    001225: 2016-07-13 16:25:49.4655073 +0.0000039 [TX] FE 01 D3 38 E4 
    001228: 2016-07-13 16:25:49.5252936 +0.0594556 [RX] FE 00 4D 04 49 
    001247: 2016-07-13 16:25:49.5279526 +0.0000034 [TX] FF 01 D3 38 C8 
    001254: 2016-07-13 16:25:49.5877683 +0.0593127 [RX] FE 00 4D 04 49 
    001269: 2016-07-13 16:25:49.5905224 +0.0000043 [TX] FE 01 8D 38 E4 
    001272: 2016-07-13 16:25:49.6503642 +0.0597535 [RX] FE 00 4D 04 49 
    001291: 2016-07-13 16:25:49.6529673 +0.0000064 [TX] FF 01 D3 38 C8 
    001298: 2016-07-13 16:25:49.7126869 +0.0591214 [RX] FE 00 4D 04 49 
    001313: 2016-07-13 16:25:49.7153310 +0.0000021 [TX] FE 01 8D 38 E4 
    001316: 2016-07-13 16:25:49.7752944 +0.0599011 [RX] FE 00 4D 04 49 
    001331: 2016-07-13 16:25:49.7777405 +0.0000043 [TX] FF 01 3A 38 EC 
    001338: 2016-07-13 16:25:49.8377967 +0.0593301 [RX] FE 00 4D 04 49 
    001353: 2016-07-13 16:25:49.8404114 +0.0000030 [TX] FE 01 4D 84 00 C8 
    001356: 2016-07-13 16:25:49.8584073 +0.0179165 [RX] FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42 42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09 0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF FF FF FF FF FF FF 84 
    001371: 2016-07-13 16:25:49.8886653 +0.0000034 [TX] FE 01 5A 00 DD 
    001378: 2016-07-13 16:25:50.8564984 +0.9665727 [RX] FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42 42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09 0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF FF FF FF FF FF FF 84 
    001393: 2016-07-13 16:25:50.8871378 +0.0000060 [TX] FE 01 2F 00 DD 
    001400: 2016-07-13 16:25:51.8593652 +0.1097331 [RX] FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42 42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09 0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF FF FF FF FF FF FF 84 
    001415: 2016-07-13 16:25:51.8897814 +0.0000038 [TX] FF 01 FA 00 FF 
    001418: 2016-07-13 16:25:52.8649844 +0.9747511 [RX] FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42 42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09 0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF FF FF FF FF FF FF 84 
    001428: 2016-07-13 16:25:52.8953571 +0.0000055 [TX] FF 01 2D 00 FF 
    001436: 2016-07-13 16:25:53.8672052 +0.9716053 [RX] FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42 42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09 0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF FF FF FF FF FF FF 84 
    001451: 2016-07-13 16:25:53.8977153 +0.0000051 [TX] FF 01 5D 70 FE 
    001454: 2016-07-13 16:25:54.8787739 +0.9806490 [RX] FE 42 4D 01 00 00 81 82 FF FF 05 00 00 7C 42 42 42 42 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 01 02 03 04 05 06 07 08 09 0A 0B FF FF FF FF 02 47 78 02 58 97 FF FF FF FF FF FF FF FF FF 84 
    001469: 2016-07-13 16:25:54.9093445 +0.0000051 [TX] FF 001 FA 00 FF 
    

  • Hi ,

    Any thoughts?
  • Hi Tejas,

    After reviewing your attached logic trace, I am unable to determine the cause of the problem. I think this may be related to the fact that your logic analyzer may be experiencing some difficulties capturing the transactions.

    For example, the last transaction sent from the Serial Boot Tool is [TX] FF 001 FA 00 FF.

    This is not a valid SBL frame. For example, there is no CMD field that corresponds to 0x00, and the SOF is always set to be 0xFE, however your logic analyzer is reporting it as 0xFF.

    Is there a way for you to obtain a different capture, or if this is not possible, can you debug in the OAD manager code (within the SDK) and potentially determine where the device is hanging. To do this, I recommend re-creating the issue and then pausing the execution of the device to see where it has stopped executing from.

  • You might find this page helpful in deciphering the commands sent between the Serial Boot Tool and the device

    processors.wiki.ti.com/.../SerialBootLoader
  • Thanks

    I will debug this and post my findings. I am planning to use realterm to send the commands and test the outputs.
  • Hi ,

    I started debugging using break points in OAD manager program.

    In sbl_exec_uart.c, we have a function sblRun. This puts the code in an infinite loop checking for TxLen and Rx Interrupt. I am guessing when I click on the Load Image button in SerialBootLoader, the URXxIF should become 1. But program execution never reaches this part.

    So I put break points in all the conditions that might transfer the flow to some other function. Nope. None of the break points are triggered which means the program is stuck in infinite loop in sblRun. Any idea what might be the issue?
  • Hi,

    Look like it was because of improper connection. I tried the same today and the interrupt is getting triggered.
    But I am still not able to write the data using serialBootLoader.

    In sblResp function, I am hitting a break point at return FALSE instead of return TRUE.
    The reason is sbBuf[SBL_CMD2_STATE] hold 0x84 instead of 0x83. I observed this refers to following. But I am not able to debug any further.

    #define SBL_ENABLE_CMD 0x03
    #define SBL_HANDSHAKE_CMD 0x04

    Any thoughts?
  • Hello,

    It looks like the SBL packet parser has reached an error parsing the packet and thus is going to throw it away, this likely will cause the SBL loop to break and end the process.

    see here:
    if ((resetF != 0) && ((UxCSR & CSR_ACTIVE) == 0)) // If the last Tx byte has flushed out.
    {
    break;
    }

    It is hard to tell exactly why the code is failing here without knowing exactly what is sent over the wire. Is it possible to capture a logic trace of this interaction? We really cannot debug further without this information. Saleae logic capture files are preferred, but if you use another logic analyzer that is okay. What we really need is to see the waveforms related to the last ~5-10 packets leading up to the failure. Can you provide this?
  • Hi,

    I have attached the logic trace obtained by intercepting the data at the computer from COM port.

    So packet 110 onward you can see that handshake signal is sent from computer and it received success response.

    Packet 140 onward the data is written from computer into the COM port and the board responded with fe c0 4d 81 80 cd.

    Also, I started printing the status at LCD (sbBuf[3]) and I got 84 for handshake followed by 81 for write. But it was stuck at that value for a while and the serialBootLoader threw this error.

    One more thing I noticed was the write error is inconsistent. Often I hit handshake error and only a few times handshake is successful and the program moves to write part.

    Let me know if I can debug this any further.

    req.txt