X893

Program CC Debugger (CC2511) with Arduino

After soldering module CC Debugger (last module) i need to program internal flash with TI firmware. I havn't any TI development tools and decide use Arduino for program. Repository contains PDE file for Arduino and C# project for front-end on PC.

First step - connect 3 wire from arduino to CC debugger:

PD5 > CC DC line
PD6 > CC DD line
PD7 > CC RESET line

and write sketch to access CC lines from host computer via serial port.


Second program on C# to work with CC memory via Arduino and write original TI bootloader for CC debugger (converted to binary format)

Third step write original TI CC debugger firmwire to CC debugger with SmartFlash software

after all done CC debugger work and i can programm all other modules.

17 comment(s) so far

  1. Hi, is it possible to simplify this setup with a teensy2 board?

    I guess I can omit the usb-uart-adapter when I use that teensy2 board.

    My problem is atm: "GET_CHIP_ID error: Bad value ff

    (i get bad value 00, if its not connected to the cc-debugger)

    Do I need to power the cc-debugger by USB? Do I need to connect the GND of my teensy board to the GND of the cc-debugger?

  2. I'm having issues getting you CC.flash.exe working. I hit the connect button and I see signals on the DD,DC and RST lines but I don't get any errors from the program it just stops connecting. Any tips?

  3. Hello, how can make the arduino as the cc debugger ?

  4. In theory yes - but i never make this. Easy make CC debugger on CC2500.

  5. Hi, is it possible to make CC debugger on CC1111 or CC2541? If yes, what needs to be changed?

  6. Need connect and check

  7. Hi,

    I configured your C# code to programming CC2540 only few line was enough. But groupAllControls wasnt enable after the detected the IC. Then i add the enable command into the chipModel_SelectedIndexChanged function to enable it.

    Not it is enabling the screen after detected the IC and verify the device codes.Getting device status as "CPU Halted andOscillator Stable"

    But Write, Read and Verify functions not working. And Read command stopping when reached 64kb file. Returning 0xFF and 0x00. Write is stopping after first page uploaded because of cpu_status not returning a value after 5 repeat.

    Do you have any idea about that? groupAllControls problem is know code problem by you? or am i missing something at start?

    Thanks

    Melih

  8. I never use with CC2540. Published as is and use for your risk.

  9. Melih

    Were you ever able to program the CC2540 using this method? Can you give me your what you changed in the code and I will try myself and see if I can't figure out how to do it.

    StormBard

  10. Does the arduino board used matter? I've got a pro-mini that I was thinking about using.

  11. I successfully connect arduino with cc2541 chip using your code, it can communicate together ( I capture on serial communication, on read chipid it reply READ : 4111245), but actually the chip is not supported, could you please update c# code so, it can support cc2541 chip? (actually I have same problem with melih).

  12. Hi All,

    I was trying to connect arduino based debugger, but when I press connect button I get the same error as "Joe" reported

    "oe

    Saturday, February 09 2013

    I'm having issues getting you CC.flash.exe working. I hit the connect button and I see signals on the DD,DC and RST lines but I don't get any errors from the program it just stops connecting. Any tips?"

    Is there a known issue?

    I'm running on a windows 7 machine

  13. Thank you very much for your work on this! I have the standard CC2511 USB Dongle (seen here: http://www.ti.com/graphics/tool/CC2511EMK.jpg) and an Arduino Uno, and I'm not the best at interpreting diagrams. It looks like I need to connect pins 3, 4, and 7 from the DEBUG 10-pin cluster on the CC2500 to pins 5, 6, and 7 on the Arduino - is this correct?

  14. Also getting the same errors as Jay and Shatruddha - Arduino sketch has been uploaded, launch the program & it fails to connect.

  15. Connection correct (only add ground) and not not use long wires. I use 8MHz Arduino but Uno use 16MHz - so may be change cc_delay() to increase timing.

  16. Ok, thanks for the clarification. I've increased the timings (tried doubling the timing numbers & halfing them to troubleshoot); I have everything connected as described, and the app stlil won't connect. Anything else you'd recommend for troubleshooting?

  17. Check signal DC, DD, RST on CC2511. Toggle on arduino and see on CC2511 pins. Also see CC timimg diagram and change to delay micro/milliseconds to tune accuracy.

Post your comment

Thanks for your comments

  • Comment

Github
Bitbucket
Codeplex
SF.net

Status

Subscribe to x893 blog Subscribe to x893 blog