I am trying to program a cc2530 mcu, all the example software and libraries are provided for IAR, but since I am on ubuntu, I am unable to use it, I have installed sdcc but I am still unclear as to how should I go about debugging codes and where can I get hardware abstraction libraries and linker script.
1 Answer
One simple solutions would be to download and configure Eclipse CDT for Ubuntu. Last year I was able to configure a Eclipse to do embedded development for TIVA TM4C123 ARM Cortex M4 processor. I used Open On-Chip Debugging called openocd. To a large extend you will be doing some ground breaking work. Communities like Embedded Systems and Electronic SE are here to help you. When you are successful post the steps so other could benefit. Below are some references that might help you. Good luck.
References:
-
\$\begingroup\$ I have added sdcc plugin to eclipse, and i am going through contiki files to see how it works, as far as debugging goes, openocd does not support cc2530 (it supports cc2538). I will have to use printf's i guess.. Thanksa lot. :) \$\endgroup\$ Commented Jun 24, 2015 at 10:16
-
1\$\begingroup\$ My pleasure, I hope you will document and post your learning. You can request for cc2530 support on openocd. \$\endgroup\$ Commented Jun 24, 2015 at 10:28