Hi,
By default the TI CC2540 is supported by IAR Embedded Workbench, aswell is the hardware debugger "CC debugger".
Is it possible to debug the CC2540 in uVision?. Either by using the CC debugger, SmartRF05EB or SmartRF04EB?
Thanks
IAR Embedded Workbench ... Is it possible to debug the CC2540 in uVision?. I doubt very much you can debug anything with uVision that is not built by it. On the other hand, if uVisions tools can build it, they can debug it.
Erik
I'm not sure of the CC2540 but PK51 supported the CC2430 and CC2530 series. It was necessary to download and install a .dll from Keil to support the JTAG interface. I ran a quick search but I could not find the .dll on the Keil website. Maybe you should contact Keil Support directly. Also, I will search my computer for the .dll but I could not post or send it to you but if I can find the thing, I will be able to give you the name and you can contact Keil for a download.
Bradford
This download contains a zip file of the .dll and modifications to the .ini file to implement the dll. It does not specify the CC2540 device. Be sure to make a backup copy of your .ini file if you plan to modify.
I hope you are not attempting to use the TI/IAR examples. You will spend more time trying to use their code than writing every thing from scratch. Also, I know the CC2540 does not support USB, but if you move to one of the ChipCon dvices that does support USB, read very carefully the data sheet on their FIFOs.
http://www.keil.com/download/docs/365.asp Bradford
Hi and thanks for your answers.
The CC2540 does have USB interface.
The driver you are talking about is for debugging through the SmartRF04, i'm not sure if this is the same as the SmartRF05?
The debugger that accompanies the demokit for the CC2540 is called "CC debugger".
In the Keil device list it says the following about the CC2540:
"The following AGDI Drivers are available for the Keil Software µVision Debugger. Keil ISD51 Driver Keil MON51/FlashMON Driver"
But the SmartRF04 driver is not mentioned. Which debugger is supposed to be supported by the above mentioned drivers?
Peter; Sorry about delayed post. Been out of the office a few days.
The zip file on the URL that I posted does not support the CC Debugger.
I have used the SmartRF05 eval board with the CC2530 and CC2531 and the Keil debugger via uLink2. It worked for me. The only examples supported by Keil were the CC2430 and CC2510 series so I had to modify a few register addresses in the header provided by Keil. It was still easier than using the buggy IAR debugger. With IAR, every time I made a simple change I had to modify the linker configuration file or get stack overflow errors. Not from my program code but from the IAR debugger code. I used the SmartRF04 setup for the tools.ini changes. The JTAG interface was the same if I remember correctly. I vaguely remember some jumper or resistor changes that were made on the SmartRF05 eval board to match the SmartRF04 configuration.
I also used the TI CC debugger and had little trouble with it while using IAR. But at that time I was just loading code into the target boards. Too bad TI Code Composer does not support the 8051 devices from ChipCon.
No, I did not know the CC2540 had USB. I thought that all the USB devices ended in xx31 or xx41, etc. I worked several days on the CC2531 USB only to discover the end point 1 FIFO only held 8 bytes. I had to go to end point 3 for a larger FIFO. I had one DUH! after another working with the IAR and USB that week.
I hope I'm not sending you in the wrong direction. This project was several months ago and there have been several version changes in uVision and PK51. I believe I was working with uVision 4 and PK51 v8 about that time.
I suggest that you contact Keil support for the latest information.