Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I am working with TI's CC2540 SoC using CC2540dk-mini. My software stack is:

  • Ubuntu 12.04
  • sdcc Compiler
  • cc-tool to flash programs onto board using cc-debugger

I can compile, build and flash firmwares perfectly (until now) using these tools. But I do not know how to debug (toggle breakpoints, see sfr values, etc.) or even to "print" from CC2540.

Chapter 3 from CC2540 user guide talks about the debug interface, and reading it I notice that flash programming is done using this interface. So... aparently to debug the firmware I would have to extend cc-tool. It sounds right?

About printing: reading the sdcc user guide (section 3.17.2.1) I realize that I have to provide putchar() function, which makes sense. But what low level protocol should I use? USART? Or something else? (debug interface?) How the CC2540 can talk with cc-debugger? How cc-debugger can talk with Ubuntu?

This all seems a little vague, but it is because I have no experience in this "field" (I always used Arduino and I never had to go in this "low level" before).

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.