Skip to content

v1.4.0

Compare
Choose a tag to compare
@luni64 luni64 released this 17 Oct 18:55
· 13 commits to master since this release

Features:

  • Add workspace settings.json to disable auto task generation
  • Add setting in expert mode to use newlib-nano independently of the optimizer settings. This reduces code size significantly when using the STL

Fixes:

  • Fixes include search path for intellisense

Examples:

image

Here an example for the space savings.

This code:

#include "Arduino.h"
#include <string>

std::string s1{"Hello World"};
void setup()
{
}

void loop()
{
    Serial.println(s1.c_str());
    delay(500);
}

Requires the following space on a T3.2:

  • newlib (standard setting)
Memory region         Used Size  Region Size  %age Used
           FLASH:       75272 B       256 KB     28.71%
             RAM:        5148 B        64 KB      7.86%
  • newlib-nano
Memory region         Used Size  Region Size  %age Used
           FLASH:        8352 B       256 KB      3.19%
             RAM:        2648 B        64 KB      4.04%