0

Reducing memory usage of nRF8001 UART driver
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Reducing memory usage of nRF8001 UART driver

by tangrs on Thu Sep 11, 2014 5:25 am

Hi,

Does anyone happen to know which parameters I can adjust to reduce the memory usage of the nRF8001 driver? I tried looking for some constant data to put into PROGMEM but didn't have much luck.

For reference, according to the MemoryFree library, the echoDemo example takes up about ~1.2KB (!!!) of the precious 2KB of RAM. I also tried reducing the queue size to 4 which took the memory usage down to about ~0.8KB but I have command queue full errors (and 0.8KB is still too much).

Any ideas?

tangrs
 
Posts: 2
Joined: Sat Aug 09, 2014 7:36 am

Re: Reducing memory usage of nRF8001 UART driver

by adafruit_support_rick on Thu Sep 11, 2014 7:37 am

The nRF8001 driver is one of the most complex drivers we have. I don't think there's any way to reduce its SRAM footprint. You may have to move to a Leonardo or a Mega.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Please be positive and constructive with your questions and comments.