This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Exporting, importing and modifying libraries from Arduino IDE to SES IDE

Hello,

I'm in the process of migrating from arduino to SES IDE(For more practicality and functionality now what I'm trying to achieve is saving time by not having to rewrite all arduino libraries I'm currently using so my questions are:

1)How to import an external library to SES?

2)How would you go about converting those libraries to support the SDK(Say the newest 14.1) and import them into SES?

Thanks for your time.

  • Dumb question (as I'm no arduino dude): what are those arduino libraries for? I2C? SPI?

  • Yeah mostly I2C some use UART as well but that mostly I'm also concerned that they are written a little in C++ style would that make any issues?

  • Hi,

    We have I2C and UART libraries in the SDK, that are optimized and written specifically for the nRF5 devices. I would recommend taking a look at those first.

    That said, it should be able to compile the SDK using a C++ compiler, since we are using "extern "C" wrappers in our SDK libraries. There is also a Arduino Core for the nRF here, but again, I would recommend trying first with the SDK libraries before you start any porting.

  • I used this core before but it's not realy good for functionality that's why I've moved but what I'm trying to do is take the libraries that use I2C in arduino and make them compatible with the nordic SDK and SES IDE so I was to maybe get some feedback from someone who have done this or an example.

  • Hello Mike,

    I am wondering if you made any progress moving the Arduino libraries to SES IDE and Nordic SDK for nRF52?  I have used the Arduino libraries with other processors and used the Nordic nRF51 series chips for BLE support.  Because of some additional functionality I would like to implement I have run into memory constraints and am looking at moving the entire application to the nRF52 series which would provide both BLE support and enough memory to implement the additional functionality.  My issue is that the additional functionality uses the SPI interface, but after a few weeks of hacking I cannot get it to work with the Arduino Core for nRF52 so I am looking at porting the Arduino library to SES and the Nordic SDK (which I believe would ultimately be a better solution).  I also, as you, need a solution for the Arduino one-wire library (I2C based) so I can access DS18B20 based temperature sensors, but haven't looked into that yet as I'm just now exploring this avenue.  Any tips, tricks or pointers would be greatly appreciated. 

Related