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 connecting to target

I'm having troubles connecting my tms570. On computers at school, which we are learning to program this mu, it connects just fine and I am able to run the 'Hello World' program. But on my personal laptop, I get an error telling me it could not connect to the target. The message reads:

 

"Error connecting to the target:

(Error -151 @ 0x0)

This utility failed to open the adapter for a custom emulator.

The adapter returned an error.

(Release 5.0.333.0)"

 

I'm not very competent for this device so I apologize if I sound vague. I have uninstalled and re-installed CCS numerous times with no success. Any help is greatly appreciated. 

  • Which board are you using?

    Assume it is the USB stick or the HDK:

    Which device are you using?

    If it is TMS570LS20xxxx, Can you follow Media:TMS570_MCU_1Day_Training_2011_Part2.pdf  Page 35-54 step by step? or following How to Create a HalCoGen Based Project For CCSv4.x (Rev. A) (PDF 654 KB)

    If it is TMS570LS31xx, please change the device name in the material from TMS570LS2xxx to the device part number you are using.

    Regards,

    Haixiao

     

  • I am using the TMS570LS20XXXX USB stick. I will give those resources a shot. 

     

     

    I ran my tms570 on a friends computer and it was able to connect fine. I'm just not sure why on my laptop it will not connect, yet the computer can detect it via the control panel and I'm able to run the safety demos. 

  • After creating those projects you mentioned, I am still having the 'Error connecting to target' message. 

     

    Any other suggestions or reasons to why this would be happening?

  • Does the NowFlash work?

     Press the Execute button to see if it can erase the flash. If it can, that is a problem of CCS install. If no, the connection between PC and the emmulator does not work.

     

  • Have the problem been solved?

    Regards,

    Haixiao

  • The first time I ran nowFlash, I got a 'Error 182' message, in which it instructed me to adjust the PLL configuration. But even after doing so, I ran CCS and it actually successfully connected to the target finally. But a new problem came up, I couldn't make a serial connection via PuTTY or the terminal within CCS. So I'm not sure if that's a problem with CCS or not. Beforehand, I could successfully make a serial connection using PuTTY, but that was when I couldn't connect to the target. Another time I ran nowFlash, it successfully ran without an error. So it's hit or miss with that, but running nowFlash causes CCS to make the connection regardless if nowFlash is successful or not. So now my only problem is making the serial connection work again, which could possibly be a problem within my own computer maybe? I'm not entirely sure. But the help you have provided has helped a ton so far so thank you for this input you are providing. 

  • CCS and nowFlash use the same drivers to connect to the device. nowFlash also reset lots of flags.

    Can you see the hypertermals in your PC?

    Start->All Programs->Accessories->communications->Hypertermal?

    In the past I saw this problem when our customer's PC did not install hypertermal.

    Regards,

    Haixiao

  • I tried something new and it seems to have done the trick (so far at least). What I did was I went into the device manager window and uninstalled drivers B and A. Then reconnected the TMS570 and they reinstalled on their own. I then ran nowFlash (which that error did show up for it). And then ran CCS and it successfully connected to the target and I was able to run my program. Bit of a tedious process but if it works then I am fine with it. Thanks for all the help. Hopefully this process works every time.