Saturday, February 24th 2018, 4:48am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



Date of registration: Feb 13th 2018

Posts: 1


Tuesday, February 13th 2018, 4:30pm

C++, newlib-nano STL, and nRF52

I am attempting to refactor an existing C++ project into Segger Embedded Studio, but STLport does not have all the STL components that I need, so I am trying to get a Segger Embedded Studio project to work with newlib-nano.

I created a blank project using the nRF C/C++ template and an empty cpp file. When I add “include <vectors>” it will fail since these are not included in STLport. All I should need to do is use the newlib-nano from external ARM GCC libraries. However, so far I have been unsuccessful in using the external STL libraries.

I am trying to use gcc-arm-none-eabi-7-2017-q4-major and an nRF52832_xxAA processor.

I have tried changing the standard libraries path, using the external build commands, among other things.

Does anyone have a walkthrough for adding newlib-nano to a Segger Embedded Studio project or know what settings I may be missing to get the newlib-nano to work with my project?


Super Moderator

Date of registration: Jan 2nd 2017

Posts: 716


Thursday, February 15th 2018, 9:13am


Generally Embedded Studio offers the user to use any standard library they want.
First disable the use of Embedded Studio standard libraries in project options under Library->Include Standard Libraries->No
To add your library go to project options Linker->Additional Input Files and add your newlib directory there.
Now try to rebuild your project and you should be good to go.

Best regards,