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.

f28335 ftdi driver function error on switching on power supply

Hi everyone,

I am trying to drive a synchronous motor using  F28335 using my own driver board but was facing a problem.

Whenever I increase the power supply voltage of the motor driver board above 15V  the CCS stops working. I get the following error message - 'c28xx: Error: (Error -154 @ 0x0) One of the ftdi driver functions used to write data returned bad status or an error. (Emulation package 5.0.872.0)'

If I run the code before I switch on the supply, I can see the variable getting updated in the watch expression window but I as soon as I switch on the supply the CCS gets hanged and gives the above error.

I increased the distance between the source and the programming cable and the motor and cable as well, thinking that the magnetic field is affecting the communication between the PC and microcontroller, but there was no change.

Please let me know if anything can be done about it.

Thanks

  • Hi,

    The emulator picks up noise easily and hence you're facing these frequent disconnections during the power functionality. All you need to do is, use a Ferrite core based USB cable or an external one. This should help you out!

    Regards,
    Gautam
  • thanks for the reply, Gautam!

    I tried using the ferrite core usb cable but not much change. I put a foam insulating material between the motor and the PC and then I could go upto 30V but above that I got the same error again.
    I dont know if I should ask this here or not but it may also be a cause of the above problem. I am using an optocoupler to isolate the controller from the driver board. I made a common ground for the input and output of the opto coupler and joined it with other grounds of the board and the microcontroller ground.
    I am not sure if this could be a problem. please let me know your views about it,
    thanks,
  • Shoaib Shaikh said:
    I made a common ground for the input and output of the opto coupler and joined it with other grounds of the board and the microcontroller ground.
    I am not sure if this could be a problem. please let me know your views about it,

    Yes this is the issue! The grounds have to be isolated.