0

Code size for Bluefruit LE UART/SPI Friend
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Code size for Bluefruit LE UART/SPI Friend

by aclassifier on Tue Dec 05, 2017 4:34 pm

BACKGROUND (may be dropped): I have a project where I am now investigating a path to add an Adafruit Bluefruit LE UART Friend with nRF51822 (https://www.adafruit.com/product/2479) to an aquarium controller I have that's made with an XMOS starKIT [1]. There's limited code space left and I cannot add another USB-powered board in there, no matter how small. (Aside: The WiFi path seems not so ok, since I have that limited amount of code left. But I haven't given up.)

This Friend 2479 could talk with an Adafruit Feather nRF52 Bluefruit LE with nRF52832 (https://www.adafruit.com/product/3406%20https://www.adafruit.com/product/3406). I would just love learning about mynewt operating system. This board could sit in a hidden box underneath together with an XMOS eXplorerKIT that I could connect to my router over the RJ45 connector. Both the XMOS processors are multi-core and may be programmed in C, C++ or best for my purpose: XC. They are the primary aim at my learning these days. But I try to take what comes my way in the process.

The final result would be a webserver that would publish aquarium data piped over BLE into it. I don't want any Bluetooth App.

QUESTION: For all this talking, here's my simple question: Provided I, for the test, connected the Bluefruit LE UART Friend on a an Adafruit Feather M0 (I have a couple that run ATWINC1500 that just runs and runs, using the Arduino IDE), how much code space would the libraries that I would need to download require? I would need to port that to the XMOS startKIT that has about 12KB available. So that code could be some 6-8K(?), since I would need to do the comms as well; build up the text strings. Does this sound tight to you?

I could als do the SPI Friend (2633) https://www.adafruit.com/product/2633, but the SPI library of the XMOS also takes space. I have used it for WiFi breakout boards. But UARTS are there on every I/O pin more or less (provided bit formats match).

[1] http://www.teigfam.net/oyvind/home/technology/157-my-wifi101-library-port/#3_what_i_already_have_done (disclaimer: no ads, no money, no gifts; just a hobby. I mean, just expenses!)

aclassifier
 
Posts: 17
Joined: Sun Jun 21, 2015 2:03 am

Please be positive and constructive with your questions and comments.