Questions tagged [newlib]

Newlib is a C library intended for use on embedded systems. It is a conglomeration of several library parts, all under free software licenses that make them easily usable on embedded products.

Newlib is a C library intended for use on embedded systems. It is a conglomeration of several library parts, all under free software licenses that make them easily usable on embedded products.

Newlib is only available in source form. It can be compiled for a wide array of processors, and will usually work on any architecture with the addition of a few low-level routines.

See also official cite

160 questions
0
votes
1 answer

Debug semihosting printf function on stm32

I am trying to enable printing on host machine using printf() function and rdimon library. My hardware is: -STM32F103C8T6 -ST-Link V2 In order to enable printf() on host, I use: -specs=nano.specs -specs=rdimon.specs -lc -lrdimon as linker…
Vaso
  • 811
  • 6
  • 12
0
votes
1 answer

Undefined reference to std::nothrow in libsupc++.a of newlib

Now I am trying to cross compile Nuttx with libc++ using arm-none-eabi toolchain. Most of things is fine, however some C++ applications have an undefined reference to std::nothrow. I found out that std::nothrow seems to be defined in libsupc++.a in…
0
votes
0 answers

Using gnu toolchain compiled library in Keil

I'm trying to use a library I compiled under debian by GNU toolchain in Keil and getting this error: ._build\nrf52832_xxaa_s132.axf: Error: L6218E: Undefined symbol _impure_ptr this symbol comes from newlib, How can I compile a library with…
msg
  • 136
  • 3
0
votes
1 answer

What are arm-none-eabi-c++ and arm-none-eabi-cpp for?

I'm using the GNU Arm Embedded Toolchain to cross-compile on Windows, and was wondering what the following highlighted executables were used for. There are already arm-none-eabi-gcc and arm-none-eabi-g++ for compiling C and C++ code respectively,…
abc
  • 212
  • 3
  • 14
0
votes
1 answer

Section `text` will not fit after upgrading `arm-none-eabi-gcc`

I have an open source micromouse robot project. For easier compilation, I use containers (both Podman and Docker should be fine): make image make libopencm3 make This works just fine and generates a main.elf file about 874 kB in size. But that is…
Peque
  • 13,638
  • 11
  • 69
  • 105
0
votes
0 answers

How to identify why a particular symbol gets pulled in by LLVM's ld.lld during static linking

I updated my LLVM-based ARMv7em toolchain from LLVM 8 to the just published release candidate 1 of LLVM 9. I haven't touched the compilation settings of newlib, which is the runtime library I use (version 3.1.0). Yet, since that change, when I link…
burnpanck
  • 1,955
  • 1
  • 12
  • 36
0
votes
0 answers

new operator not with global variable

I am trying to use the new operator to create a global reference, by declaring tNMEA2000 &NMEA2000=*(new tNMEA2000_stm()); outside of any functions. When I use tNMEA2000 &NMEA2000=*(new tNMEA2000_stm()); outside of any functions, it ends up getting…
0
votes
0 answers

Symbols required by newlib

Can I find somewhere where all symbols required by (referenced by) newlib are listed? For example, I know newlib needs end or __init_array_start(end) symbols, but that comes from know-how, not from an official doc. I am an embedded software for ARM…
0
votes
1 answer

atollic - newlib - stack corruption

i use the newlib (standart, not newlib nano) that comes within atollic 8.1. currently all kinds of XXXprintf versions corrupt my stack and i cant see why. i have added 3 images to display the problem: use case 1 in image 3.png, you see either…
0
votes
0 answers

Why the GNU Arm Embedded Toolchain's example(gcc-arm-none-eabi/samples/src/qemu) can not work?

English is not my native language, I apologize that. Recently, I want to know detail about C lib initialization. The develop/debug environment as follow: Hardware: QEMU simulator The GNU MCU Eclipse QEMU Software: Examples of GNU Arm…
0
votes
1 answer

Clang for newlib produces undefined symbols in libc.a

I am trying to build newlib with clang mostly following this script: https://github.com/jpbonn/Newlib-build-scripts I have removed all the compatibility issues in newlib between clang and gcc, following this thread:…
soham
  • 1,508
  • 6
  • 30
  • 47
0
votes
1 answer

Building Newlib shared libraries for ARM

I'm in the process of setting up a cross-compilation toolchain for ARM using an i686 machine as the build platform. I've been able to use the toolchain to compile a basic C program and run it on the target ARM device, but the file-size ends up being…
0
votes
0 answers

Practical way to parse a float with newlib without locale support

I'm experimenting with NIOS II soft core, trying to minimize the footprint of my embedded app. One of the biggest gains I get comes from using the small C library (p 206): The full newlib library functionality is often unnecessary for embedded…
Dmitry Grigoryev
  • 3,156
  • 1
  • 25
  • 53
0
votes
1 answer

GCC extract symbol list and link by another images

All I am trying to do, extacting some symbols from an image and using (linking) symbols from different image. With armccc/armlink, when specify --symdefs=, it creates file which includes symbols ad their addresses. On the other hand, if you remove…
muratcakmak
  • 325
  • 2
  • 14
0
votes
1 answer

arm-none-eabi-as error for STM320f on mac

In terminal, I try to convert assembly code to object code arm-none-eabi-as -o sample.s sample.o Assembler messages: Error: can't open main.o for reading: No such file or directory And deletes sample.s at that directory I was operating in.
user6481377
1 2 3
10
11