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.

CC2650STK: XBAL object failed: Target connect failed

Part Number: CC2650STK
Other Parts Discussed in Thread: CC2650, LAUNCHXL-CC2650,

I followed the OAD User guide and created a super hex file using  CCS version 6.1.1.00022, below post build steps and changing reset vector address to 0x00001010.

"${CG_TOOL_HEX}" -order MS --memwidth=8 --romwidth=8 --intel -o "${ProjName}.hex" "${ProjName}.out"
"C:\Python27\python" "C:/Python27/Scripts/hexmerge.py" -o "${PROJECT_LOC}/FlashOnlyOAD_OaiBeacon/OaiBeaconSuper.hex" -r "0000:1FFFF" --overlap=error "${PROJECT_LOC}/FlashOnlyOAD_OaiBeacon/${ProjName}.hex":1000:1EFFF "${PROJECT_LOC}/../SensorTagStack/FlashROM/SensorTagStack.hex":1000:1EFFF "${PROJECT_LOC}/../../../../util/BIM_extflash/CC26xx/CCS/FlashOnly/BIM_ExtFlash.hex":1F000:1FFFF
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"

I used the Flash programmer and XDSV100V3 to ensure the super file worked first before trying update through the app. This is the order I followed:

  1. Download super hex file. No leds, no advertisement.
  2. Revert back to BIM_ExtFlash (FlashOnly_SensorTag config), stack and app images that I know worked. Programmed using Flash programmer separately using multiple image option. SensorTag started advertising.
  3. Programmed BIM_ExtFlash (FlashOnly config) using single image option. Since then I keep getting this error even after following everything I found on the forums.

>Initiate access to target: XDS-06EB1221005FA.

>Create XBAL object failed: Target connect failed

>Failed to create device object.

I have tried using XDS110 devpack, restarting my PC, using 3V power supply, fresh battery, mass flash erase through the settings, but nothing works. Reads to any of the flash pages results in above error. The chip gets identified as CC2650 under connected devices.

What can be done to get the SensorTag working? Thanks!

  • Hello,

    Are you using Flash Programmer 2 v1.7.5 (latest)? If this version doesn't work, then either the CCFG has been modified to disable r/w access or the DevPack is not working. If you have access to a LAUNCHXL-CC2650 LaunchPad, it can be used as an external debugger.

    Best wishes
  • Thanks JXS!

    I was using 1.7.1, updated to 1.7.5 but still same error. I have tried 2 JTAGs: XDS110 devpack and XDSV100V3 available on SmartRF06EB and both give same error.

    1. I do not have the LaunchPad and will not be buying one, but how is it different than XDS100/110?

    2. Why would CCFG get modified just downloading BIM_extflash FlashOnly configuration through the JTAG after I had restored the SensorTag to a working condition.

    3. What is the difference between BIM_extflash FlashOnly and FlashOnly_SensorTag configuration? I had restored it with the FlashOnly_SensorTag config whereas the one that broke it was FlashOnly config. I used the latter as per guidelines in the OTA user guide.

    4. How can I re-enable r/w access to flash? For rest of the devices, should I stay with BIM FlashOnly_SensorTag config since I know it works?

    5. I have seen different memory maps in post build steps to generate super hex file between various forum posts and user guide, which is correct?
      1. Super 0000:1FFFF, app 0000:1EFFF, stack 0000:1EFFF, BIM   0000:1FFFF
      2. Super 0000:1FFFF, app 0000:1EFFF, stack 0000:1EFFF, BIM 1F000:1FFFF
      3. Super 0000:1FFFF, app 1000:1EFFF, stack 1000:1EFFF, BIM 1F000:1FFFF

    Thanks!

  • Can anyone help?
  • I would really like to understand what happened so I will appreciate some feedback. Thanks!

  • Hi,

    Based on the information provided, I do not have an explanation. If the mass erase function for CC26xx is not working, then somehow the device has been configured to disable external JTAG access. This is not the default configuration for any of our sample applications.

    Can you post the last hex file you programmed?

    Best wishes
  • SensorTag.txtJXS, thank you for your response.

    I have managed to brick another SensorTag. It was functional before I made the changes in OAD guide, BIM_ExtFlash FlashOnly_SensorTag config, App with reset vector address 0x0, and stack (V2.1.1). This time I used CCS debug mode over SmartRF06 board.

    I first downloaded BIM_ExtFlash FlashOnly config (attached, renamed .hex to .txt).

    Then downloaded App image with reset vector address changed to 0x1010 (attached).

    I realized I had forgotten to program the stack so tried to program that and got this messages in the IDE console:

    IcePick_C: Error connecting to the target: (Error -230 @ 0x0) The measured lengths of the JTAG IR and DR scan-paths are invalid. This indicates that an error exists in the link-delay or scan-path. (Emulation package 6.0.228.0)

    When I use the Flash programmer it gives me XBAL object failed.

  • Hello JXS,
    Did you get a chance to review the hex file?
  • Hi AdtK,

    I looked at your SensorTag.txt and don't see the Stack or BIM added:

    :20C39800F8C20000EC01002008C30000F001002018C30000F801002028C3000030040020AF
    :20C3B80030C300000005002038C300004004002040C300001005002048C3000070220020F9

    This doesn't have the CCFG region.

    Did you program the BIM?

    Best wishes
  • :20000000FC2B00209DFD010033FC010033FC010033FC010033FC010033FC010033FC0100DE
    :1C00200033FC010033FC010033FC010033FC010033FC010033FC010033FC010074
    :020000040001F9
    :18F000004FF0200383F3118872B6024B9D4600F0A6B9C046F82C002096
    :20F01800AC49086840F0010008607047A949086840F0020008607047ADF1080D0090A6493E
    :20F038000098086002B0704708B5ADF80000BDF80000000300F0D3FE08B9002001E04FF073
    :20F05800FF3008BD0EB5019100900099042201A800F0B6FE08B9002001E04FF0FF300EBDB8
    :20F078000EB502920191009000980299019A00F0A9FD0EBD0EB50292019100900098029924
    :20F09800019A00F0AEFD0EBD00B5ADF11C0D0292019100900298000B039002990198401861
    :20F0B800401E000B04900198C01C0190019880080190029810F0030F02D04FF0FF304AE06D
    :20F0D80004980399884202D304981E2802D94FF0FF3040E00498039988423BD34FF48060C3
    :20F0F800ADF8180003990498884203D1BDF80400ADF81800BDF80C00FFF796FFE0B14FF0D3
    :20F11800FF3028E0009805A90422FFF7A9FF10B14FF0FF301FE002980599FFF793FF10B1E7
    :20F138004FF0FF3017E00098001D00900298001D02900198401E0190BDF81800411E0028E8
    :20F15800ADF81810DEDC0398401C0390049803998842C3D2002007B000BD00B5ADF1140DE7
    :20F17800ADF802108DF800000020ADF804009DF800000103B3484FF4805200F08BFC9DF8BD
    :20F1980000008DF80700B0480088411200EB915080128DF80800AC49BDF802009DF8083094
    :20F1B8000988421000EB927001EBA001A1EB83218800ADF80A009DF808109DF807004018D2
    :20F1D8008DF808009DF807008DF8060041E09DF807009DF80610884203D1BDF80200001D89
    :20F1F80000E00020ADF80C000EE0BDF80C10954ABDF80400515C00F061F8ADF80400BDF89B
    :20F218000C00401CADF80C00BDF80C00B0F5805F0BDA9DF808009DF806108842E5DCBDF80B
    :20F238000A00BDF80C108842DFDC9DF808009DF80610884208D09DF80600401C01038148A8
    :20F258004FF4805200F026FC9DF80600401C8DF806009DF808009DF806108842B7DABDF895
    :20F278000400002100F02AF8ADF80400BDF80400002100F023F8ADF80400BDF8040005B09A
    :20F2980000BD0EB50192ADF802108DF800009DF80000BDF80210FFF760FF01990988884261
    :20F2B80005D10198019900884880012000E000200EBDC0460800084000000840ADF1100D98
    :20F2D8008DF80210ADF8000041F22100ADF8040000208DF806009DF8060008282FDABDF8A9
    :20F2F8000000000C01D3012000E000208DF80800BDF800004000ADF800009DF80200000A2D
    :20F3180005D3BDF8000040F00100ADF800009DF8080030B1BDF80010BDF804004840ADF849
    :20F3380000009DF806009DF80210401C8DF8060048008DF802009DF806000828CFDBBDF893
    :20F35800000004B070470EB502920191009000F02CFC00980199029AFFF796FE00F02EFC27
    :20F378003A4904200860FFF751FEFFF749FE0020FFF752FE00F05FFDFEE70EB500F015FC89
    :20F398004FF4F02000900098B0F5F22F4FD800982F491022FFF764FE2D4800884FF6FF71A1
    :20F3B80081423CD02A480088002838D02948284900880988884232D127480078FF282ED167
    :20F3D80026480078012802D10020019007E023480078022823D14FF400300190FFE7204848
    :20F3F800194900880988820001988900FFF74CFE1B480088C0F393208DF80800144A9DF8C5
    :20F4180008000021FFF73DFF0028D9D012498020087000980E491022FFF72CFEFFE7009876
    :20F4380000F5805000900098B0F5F22FAFD900F0C5FB0EBD08B5FFF7A0FF41F214000068FD
    :20F45800004708BD00000020061000201021084000100020021000200F1000200E100020DA
    :20F478000C100020ADF1100D01910090019810B19448029001E094480290009802990860A9
    :20F4980004B0704708B54FF480400021FFF7EAFF08BD08B54FF480400121FFF7E3FF08BDE5
    :20F4B80008B5B9208DF80000FFF7ECFF0121684600F003FA0022002100B9012101B1012288
    :20F4D8008DF80120FFF7E5FF9DF8010048B100F078F80022002100B9012101B101228DF82D
    :20F4F80001209DF8010008BD08B5AB208DF80000FFF7C8FF0121684600F0DFF900220021D3
    :20F5180000B9012101B101228DF80120FFF7C1FF9DF8010048B100F031F80022002100B923
    :20F53800012101B101228DF801209DF8010008BD0EB5954800680090FFF7A4FF04216846B7
    :20F5580000F0BBF90290029818B1FFF7A2FF002013E001A8022100F0D1F90290FFF799FFAA
    :20F57800029838B99DF80400EF2803D19DF80500122801D0002000E001200EBD0EB5AE481A
    :20F5980000788DF80000FFF77DFF00F0DFF9FFF780FFFFF777FF6846012100F08EF902A84A
    :20F5B800012100F0ABF90190FFF773FF019810B16FF0010004E09DF808004008E9D2002026
    :20F5D8000EBD08B500208DF800009DF800000A280DDAFFF7ADFF08B900200AE09DF8000036
    :20F5F800401C8DF800009DF800000A28F1DB4FF0FF3008BD0EB5964800788DF80000FFF7B8
    :20F6180041FF0121684600F058F90190FFF741FF019810B16FF0020000E000200EBD08B577
    :20F638008C48112100F09EF98B480068C06B01460E208847FFF72DFFFFF756FFFFF778FFA1
    :20F6580008BD08B5FFF72CFF00F0EEF908BD00B5ADF1140D029201910090FFF78FFF049011
    :20F67800049808B100202AE003208DF80C000098C0F307408DF80D000098C0F307208DF824
    :20F698000E00009800F0FF008DF80F00FFF7FAFE03A8042100F011F918B1FFF7FAFE00209A
    :20F6B8000DE00298019900F029F90490FFF7F1FE049A0020002102B9012101B1012005B042
    :20F6D80000BDC04690200240A020024000B5ADF11C0D0292019100900198002850D0FFF752
    :20F6F8004DFF0490049808B100204AE0FFF782FF0490049808B1002043E0009800F0FF0049
    :20F71800C0F58070059001990598884201D90198059002208DF80C000098C0F307408DF8C4
    :20F738000D000098C0F307208DF80E00009800F0FF008DF80F0000990598401800900198CD
    :20F758000599401A0190FFF79DFE03A8042100F0B4F818B1FFF79DFE002012E00298059967
    :20F7780000F0ABF818B1FFF794FE002009E00299059840180290FFF78CFE01980028AED1A2
    :20F79800012007B000BDC04670FE010000B5ADF11C0D0191009020208DF8080000990198AA
    :20F7B8004018401E0590009800130003009005980099401A00F6FF70000B04900020039061
    :20F7D80004980399884234D9FFF7D8FE0590059808B100202EE0FFF70DFF0590059808B130
    :20F7F800002027E00098C0F307408DF809000098C0F307208DF80A00009800F0FF008DF89D
    :20F818000B00FFF73FFE02A8042100F056F818B1FFF73FFE00200DE0FFF73BFE009800F5C0
    :20F83800805000900398401C0390049803998842CAD8012007B000BD74FE010008B5FFF767
    :20F85800EEFE8DF80000FFF7FCFE9DF8000008BD75FE010000093D00B4010010ADF1080DA3
    :20F8780000900098001D016841F00201016002B07047ADF1080D019100900098019A143078
    :20F8980001689143016002B07047ADF1080D0191009001980099086202B07047774901208E
    :20F8B80008607047764801680020890801D3012100E0002101B1012070470EB501910090D3
    :20F8D8000198C8B16F48009900680978406802464FF0804090476B480068C06802A90246C9
    :20F8F8004FF0804090470198401E01900098401C009001980028E5D100200EBD0EB5019157
    :20F918000090019800B35F4800688068002102464FF08040904710B94FF0FF3015E05948F0
    :20F938000068C06802A902464FF0804090479DF80800009908700198401E01900098401C2C
    :20F95800009001980028DED100200EBD08B54D4800680069694602464FF08040904700288C
    :20F97800F5D108BD10B5ADF1180D0391029046480068406901460620884743480068406BBD
    :20F998000146062088470128F7D13F480068C06901464FF4A0608847FFF780FFFFF782FFC5
    :20F9B8000028FBD038480068C06901464FF480708847FFF773FFFFF775FF0028FBD04FF0DE
    :20F9D80080400F21FFF755FF4FF080400321FFF75CFF2C480068029A006800920821019134
    :20F9F8002A49002304464FF080400022A047284800680399406C13224FF0FF330446009166
    :20FA18004FF080401221A0474FF08040FFF726FF1C480068006904A902464FF0804090479B
    :20FA38000028F5D106B010BD08B517480068006A01464FF480708847FFF730FFFFF732FFBA
    :20FA58000028FBD010480068006A01464FF4A0608847FFF723FFFFF725FF0028FBD00A48A1
    :20FA78000068806901460620884707480068406B0146062088470228F7D108BD28200860DC
    :20FA980028200840C4010010B8010010006CDC02B4010010002A4AD05FEA000C8B071CD1F9
    :20FAB800830722D1102A08D370B4103A78C978C0103AFBD270BC103238D0042A2CD3082AC9
    :20FAD80005D30C2A24BF08C908C008C908C008C908C092072AD0920F22E00B780370491CC1
    :20FAF800401C521E22D08B07F7D1C30714D18307D8D0121F12D308C903801B0C4380001D84
    :20FB1800121FF8D20AE008C903701B0A43701B0A83701B0AC370001D121FF4D2121D05D044
    :20FB38000B780370491C401C521EF9D160467047002213460A46194671B510F0030F0BD022
    :20FB5800002A82BF00F8011BB2F1010210F0030FF6D1002A08BF71BD11F0FF0141EA012122
    :20FB7800042A18D341EA0141082A0FD30E46102A08D30C460D46B2F10F0312F00F0272C0CB
    :20FB9800103BFCD812F0080F18BF42C012F0040F18BF40F8041B12F0020F18BF20F8021BDA
    :20FBB80012F0010F18BF017071BD08B5FFF737FD08B1002001E04FF0FF3008BD08B5FFF71E
    :20FBD80040FD08BD0EB502920191009000980199029AFFF73CFD08B1002001E04FF0FF306D
    :20FBF8000EBD0EB502920191009000980199029AFFF76CFD08B1002001E04FF0FF300EBD89
    :20FC18000EB50191009000980199FFF7BFFD08B1002001E04FF0FF300EBDFEE71348B0B56B
    :20FC3800B0F1FF3F01D000F065F8114D1148A84210D01148114CA0420CD0001BC71054F87C
    :20FC5800040B10F8011B55F8212054F8041B90477F1EF4D10A4D0B4CA54205D002E054F88F
    :20FC7800040B8047A542FAD1B0BDC046FFFFFFFF88FE010094FE0100B0FE0100A0FE01000D
    :20FC980000000000000000002DE9F041054615F8017B90460E461CE0B8F1000F05F1010557
    :20FCB8000BD0FF2C09D8022015F8011B401E41EA0424F9D101E0042C02D315F8011B00E090
    :20FCD800394630462246FFF737FFA61901E006F8010B15F8010B8742F9D115F8014B002CA8
    :20FCF800E9D115F8010B2C7800022418D4D1BDE8F0810000F8B506460F4D104F73880024A9
    :20FD180017E0A00000EBC400321851689068D26852B9AF420BD00A7855F822200346491CBA
    :20FD380008461946904701E0FFF7B4FE7388641CA4B2A342E5DCF8BD88FE010094FE010058
    :20FD580000BF704708B5FFF7FBFFFEE738B50546094800688047094C201D006810B10146C9
    :20FD780028468847206800B18047054800688047FFF7E8FF38BDC046101000201810002052
    :20FD9800141000200B4885460B4885446F4607208743BD4609486F46076000F05BF800284C
    :20FDB80001D0FFF73BFF00F029F80120FFF7CEFFFEE7C046FC2B00200001000020100020B2
    :20FDD80008B540F2A813C1F200031B689B69984740F284420021C4F26022116008BD40F28C
    :20FDF800A81108B5C1F2000109684969884740F284420021C4F26022116008BD0449B1F159
    :20FE1800FF3F07BF0020011C0868091DFFF712BBFFFFFFFF0349086070470249091F0860EE
    :20FE38007047704714100020D0F80320C31D08461946FFF72FBEEFF3108062B6704700203C
    :18FE58007047D0F8032008460021FFF775BE0122FFF71ABF012070478E
    :06FE700090FFFF000506F3
    :20FE780000023BFE01003BFE01020D000200000067FE010041FE01005BFE010000000000E3
    :18FE9800020000001010000078FE01001010002098FE010000000020C2
    :20FFA80000008001100082FFFDFF58003AFFBFF3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8
    :20FFC800FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC5FFFFFFFFC5FFFFFFC5C5C5FF5B
    :18FFE800C5C5C5FF00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC3
    :00000001FF
    

    Yes, I programmed BIM first. I did not program a combined App+Stack image as I wanted to test each one separately first through the JTAG. I have attached the BIM hex file as txt.

  • Hello JXS, did you get a chance to review? Thanks!
  • Hi,

    I took a look at your BIM hex file and don't see anything in there that explains this behaviour.
    Can you post a screen shot of your Flash Programmer with the log and a photo your setup?

    Best wishes
  • Thanks for your continued support. 

    Today I programmed a known good file without the OAD changes (reset vector address at 0x0) and got below messages in the screenshot. I have programmed the same file on several boards before and they are still working. I have also included the working hex file that I used today.

    When I program the OAD changes (file I had attached in previous message) I get just the last three messages in the programmer screenshot. I did not get "could not delete pages 1-10" until today. I have also included a picture of my setup. I use a power supply at 3V to power the tag. I have also used CR2032 batteries and result was the same.

    Is there no way to revive all these?

     

    SensorTag_2016-11-10, low current.txt

  • Is that a TI CC2650STK or your custom board based off a CC26xx reference design in the photo?

    Using the "Edit" tab in Flash Programmer 2, can you read page 31 and save as a hex file?

    Best wishes
  • I have had this happen on CC2650STK and boards we manufactured with the CC2650STK gerbers, but just populated humidity and light. The one in the photo is the latter. It gives me XBAL object failed error if I try to read page 31, MAC or perform mass erase. I have tried this on all failed boards (bought from TI and the manufactured ones).
    I do not understand why there was a problem erasing pages either. What concerns me even more is these just become irrecoverable.