• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » Low Power RF Bluetooth® Low Energy & ANT Forum » Compiling CC2540 code in SDCC
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

Compiling CC2540 code in SDCC

This question is answered
Gijs de Graaf
Posted by Gijs de Graaf
on Feb 09 2011 04:08 AM
Intellectual415 points

Hello,

 

I am a student and a part of my graduation assignment involves programming the CC2540 chip. The problem is that I'm not able to use the IAR compiler since I don't have a license. That's why I'm trying to use SDCC for compiling the SimpleBLE peripheral and proceed from there. 

Now I have a few questions about this,

- Has anyone been able to port the code to SDCC?

also, I have been trying to port the code to SDCC myself for the last few days and I want to know before I proceed,

- Is it possible to port the code to SDCC? or are there some (protected) files which only IAR can use?

 

I hope you can answer my questions.

Thanks in advance,

 

Gijs de Graaf

CC2540 compatibility Bluetooth Low Power 2540 BLE stack IAR compiler Kickstart
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • hec
    Posted by hec
    on Feb 09 2011 04:19 AM
    Expert8070 points

    As far as I know, this is not possible. The libraries are built for IAR, and I believe IAR and SDCC use different C runtime models.

    You can use a 30 day evaluation version of IAR. If 30 days is not enough, you should check if your university has any IAR licenses or could purchase some. You should check if IAR offer academic discounts as may software companies do.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gijs de Graaf
    Posted by Gijs de Graaf
    on Feb 09 2011 05:02 AM
    Intellectual415 points

    Is it possible for me to build a library for SDCC or is the code closed source?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • hec
    Posted by hec
    on Feb 09 2011 05:41 AM
    Verified Answer
    Verified by Willis1
    Expert8070 points

    The code is closed source.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Aidan Steele
    Posted by Aidan Steele
    on Dec 23 2011 21:34 PM
    Prodigy20 points

    The code is closed-source, but that does preclude TI from providing pre-built libraries that are SDCC-compatible? It would be no different to the current situation w.r.t. the IAR compiler (where we are provided with object files), but allow students/hobbyists to join in the fun. :-) 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Luke Petre
    Posted by Luke Petre
    on Feb 15 2012 05:50 AM
    Prodigy10 points

    I would also really appreciate pre-built CC2540 libraries for SDCC. We're a small startup who want to do interesting things with BLE but can't afford the IAR compiler yet.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Murray Macdonald
    Posted by Murray Macdonald
    on May 08 2012 17:14 PM
    Prodigy10 points

    I agree.   While I'm sure the IAR tools are good, their hefty pricetag precludes hobbyists and students from creating something cool with the CC25xx series / BTE.   It shouldn't take 4 months for someone to compile the source so I am assuming TI has no intention of supporting the student and hobbyist community.   Someone in management should look at the success of Arduino and what it has done for Atmel, then look at how few embedded engineers you can find online evangelizing TI components.  Perhaps you should revisit who is important, old well-funded engineers, or every up and coming kid...  and as an old engineer, I'd like some SDCC compatible libraries too.  Do you guys own a piece of IAR or something?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Maurer52841
    Posted by Martin Maurer52841
    on Aug 31 2012 10:14 AM
    Intellectual700 points

    Since some time has gone since initial question: Is there meanwhile a lib for CC2420 and SDCC?

    Or has someone successfully used the delivered IAR lib with SDCC?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jay Coggin
    Posted by Jay Coggin
    on Aug 31 2012 23:32 PM
    Prodigy150 points

    I would like to show my support for this notion too.  I'm fortunate enough to be a student at a university with an IAR license, but it bothers me that I won't be able to play with this cool new stuff  when I graduate soon.  Especially for all the iOS developers, like me, who flocked to BLE as the first BT type supported by Apple for a general piconet communication without the need for joining MFI.  The barrier of entry now is certainly lower than the cost of that, but the IAR cost is still keeping out the ones who should be your prized customers - up and coming engineers and developers.  Could someone at TI please inform us of the reason for this?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Maurer52841
    Posted by Martin Maurer52841
    on Jan 14 2013 14:08 PM
    Intellectual700 points

    TI-BLE 1.3 was released some days ago. Is there perhaps a change on this topic?

    Is IAR still the only compiler useable to build software for TI's BLE?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Per H
    Posted by Per H
    on Jan 14 2013 14:12 PM
    Expert6750 points

    Yes, IAR is still the only compiler.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Maurer52841
    Posted by Martin Maurer52841
    on Jan 14 2013 14:26 PM
    Intellectual700 points

    Why? Is there any technical reason? Compiling and generating a lib for a different compiler is perhaps not a big problem?

    Or is it just the double work / double testing? Perhaps even double certification / double cost?

    Could it be a solution to get a non-IAR lib, which can't be used in a real product, with no support from TI?

    General interest:

    Does IAR work under Linux? Can BLE software compiled with IAR under Linux?

    Suggestion for next TI-BLE deliveries:

    Would it be possible to add at least pre-compiled HEX files for each of the delivered examples?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joakim Lindh
    Posted by Joakim Lindh
    on Jan 15 2013 02:30 AM
    Genius13370 points

    Hi Martin,

    Martin Maurer52841
    Would it be possible to add at least pre-compiled HEX files for each of the delivered examples?

    That's a very good idea. Maybe it makes sense to write a wiki page with all those published. I'll see what I can do.

    Br

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joakim Lindh
    Posted by Joakim Lindh
    on Jan 16 2013 07:46 AM
    Genius13370 points

    Hi again,

    Hex files for almost all BLEv1.3 example projects are found here. I will compose a wiki page with there when I find some time for that. 

    Br

    Also available here:

    6332.BLE1v3 Hex.rar

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Maurer52841
    Posted by Martin Maurer52841
    on Jan 16 2013 08:14 AM
    Verified Answer
    Verified by Aslak N.
    Intellectual700 points

    Hi Nick,

    just want to say a BIG collective THANK YOU, for compiling all the examples and publishing them!

    This makes life much easier.

    Best regards,

    Martin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use