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 device cannot start code 10

Other Parts Discussed in Thread: CC2540

I have a CC2540 mini dev kit. I have flashed the dongle with firmware file CC2540_USBdongle_HostTestRelease_All.hex using the CC Debugger which has a green light. After flashing the dongle displays a red LED. When I try to associate the usb_cdc_driver_cc2540.inf USB driver though, Windows XP (SP3) reports "Device cannot start (code 10)". I've read posts about this in this forum but cannot find a solution and I've been trying for days.

Also if after flashing using action Erase, program and verify, which reports success, if I then execute action "Verify against hex file" I get an error "CC2540 - ID7369: Error in HEX file verification".

Hope someone can help

Martin

  • p.s. I flashed with CC2540_USBdongle_HostTestRelease_All.hex which I assume is the right firmware if I want to use the dongle with btool. Comments?

  • Hi Martin,

    Sorry for late reply. 

    I have also used CC2540 mini dev kit.  CC2540_USBdongle_HostTestRelease_All.hex  firmware worked for me and i didn't faced any driver installation problem in windows XP. May I know how you are trying to associate the driver? What does your device manager shows you?


    However I have programed a lot of CC254x devices with different hex files. You can only verify the hex files only at the programming stage not after the programming.

     --

    Hitesh

  • Hi Hitesh

    I use "Add Hardware" and manually specify the location of the .inf file C:\Texas Instruments\BLE-CC254x-1.3\Accessories\Drivers\usb_cdc_driver_cc2540.inf

    Device Manager shows the following in Ports (COM & LPT):

    "TI CC2540 Low-Power RF to USB CDC Serial Port (COM9)" with an exclamation mark next to it indicating that there was a problem starting the driver.

    Thanks for clarifying regarding verification. I'll discount that as not relevant then.

    Regards

    Martin

  • Martin,

    I don't know if it is going to help you or not but you can do it in following way:

    1. Go to device manager uninstall the driver by right clicking on the ""TI CC2540 Low-Power RF to USB CDC Serial Port (COM9)" .
    2. Disconnect the dongle and connect it again, it will appear as "USB Device"(with ! mark)
    3. Windows will promt you for driver installation:
          a). Click on "Yes this time only"
          b). Click on "Install from specific location(Advanced)"
          c). Select " Serach for best driver in these locations" then select "Include this location in the search"
          d). Now choose this exact path "C:\Texas Instruments\BLE-CC254x-1.3\Accessories\Drivers\"
          e). Click on next. 
    4. Finish

    Hopefully this will install the driver properly. Do tell me if it works!

     

  • Hi

    when I plug the dongle in the red LED illuminates. Windows does not prompt me to install the driver however.... I don't think it ever has. So I've had to do the installation manually via Add Hardware. This follows essentially the path you mapped out in 3(b) - 3(e) and results in the code 10 error.

    However.... I just tried plugging the dongle in each of the three USB ports I have available to me and.... when I plugged it into the 3rd one, round the back of my laptop.... the dongle immediately appeared in the Ports list in Device Manager with no error and COM11 assigned!!

    I'm pleased of course but at the same time puzzled. It seems this has been a Windows issue all along though I did test with 3 other machines and got the same result there (code 10).

    I'm wondering if I'll hit the problem again. This seems too good to be true. Any idea what may have been going on?

    Thanks for offering your support by the way, much appreciated.

    Martin

  • Hi Martin,

    Error 10 usually shows up when there are driver issues. The steps below should help you install the correct driver.

    1. Install newest version of SmartRF studio before plugging in the dongle (this includes the newest CDC drivers from TI)
    2. Connect the CC Debugger through the pin row on the dongle
    3. Power on the dongle through an USB port
    4. Reset the CC Debugger, ensure you get a green light on the debugger
    5. Delete any remaining TI devices from previous installs in Device Manager / Ports
    6. Do an erase/program/verify with  CC2540_USBdongle_HostTestRelease_All.hex 
    7. If you verify against the hex in the Flash programmer you will get an error, most likely due to the on-chip bootloader which is not a part of the HostTestRelease image.
    8. When "new hardware" shows up, select "No" to search in Windows Update, then select to install the driver automatically
    9. The driver that will be installed is TI CC2540 Low-Power RF to USB CDC Serial Port (COMXX) from c:\windows\system32\DRIVERS\usbser.sys
    Please let us know if you have any more problems,

    Regards,
    Svend