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
2 answers

ARM7 printf hangs when trying to print to UART

I'm having problems with various print commands. Everytime I'm trying to call printf() my system just hangs or sometimes resets. I have working UART and I can print into my console with UART_PutChar() just fine. fprintf works in simple cases of just…
TuKeZ
  • 11
  • 4
0
votes
2 answers

Newlib stubs in static library

I am using Eclipse to develop bare-metal applications. I link against newlib, so I provided my own implementation of _sbrk(). This function was normally included in my project, and everything was working great. Now I try to move this function to a…
0
votes
1 answer

malloc with aligned memory in newLib

I'm currently working on a project using an Atmel board (SAM4C ARM Cortex-M4) and I noticed that when I set the bit "trap unaligned word accesses", I always got a "Unaligned Access Usage Fault". After some investigation, I realized that malloc…
David Lefaivre
  • 191
  • 3
  • 14
0
votes
1 answer

linker error - cross compile for Beaglebone Black on Debian (Jessie) using Eclipse 3.8.1

I am trying to get a basic cross compiler for the BeagleBone Black setup. I tried to follow this tutorial but ran into some snags... When dowloading the toolchain for the arm platform the tutorial showed the "gcc-arm-linux-gnueabi" as a package for…
0
votes
1 answer

Cygwin gcc.4.9.2 : error: '::lrintl' has not been declared

This question is related to this thread: cygwin support for C++11 in g++4.9.2 I had the same issue: error: ‘log2’ is not a member of ‘std’ I applied the proposed patch, only to get another error. Including cmath here #include #include…
mkiesner
  • 635
  • 5
  • 20
0
votes
1 answer

Missing crt0.o file with cross-i386 gcc

I can't find out why crt0.o or crt1.o are not provided for i386 targets by newlib as it is the case for powerpc, arm, etc. targets. ld requires it (and so do I to call static constructors).
Julio Guerra
  • 5,523
  • 9
  • 51
  • 75
0
votes
1 answer

Add LDFLAGS to newlib Makefiles

I'm trying to implement the _sbrk() function in the syscalls.c file. For this I need to link newlib with my projects object file. In newlibs root folder I did a simple ./configure --target=arm-elf which created me a bunch of Makefiles. But now I…
crizztus
  • 307
  • 3
  • 10
-1
votes
1 answer

cortex m - newlib-nano - time functions (HEAP USAGE)

i work on a cortex m system (GCC+newlib-nano (-specs=nano.specs)). there i use - gmtime - mktime - localtime i face the following issues: A.) gmtime uses malloc to allocate some ram, but never ever free that memory again. B.) mktime on the otherhand…
user654789384
  • 305
  • 1
  • 4
  • 21
-2
votes
1 answer

vfprintf crashes in a FreeRTOS based multi-tasked environment running on NXP K64 ARM Cortex-M4

I am having problem in getting "vfprintf" provided by the NewLib library working on a multi-tasked environment based on the FreeRTOS running on a NXP K64 ARM Cortext-M4 processor. The code is compiled using arm gcc compiler. The FreeRTOS is…
Max-Sbz
  • 11
  • 1
-2
votes
1 answer

How do I port newlib?

I want to write my own kernel but I'm stuck on porting newlib for my cross-compiler. Which version of newlib do I download? Where do I put the system call stubs? Is the minimal implementation enough? Do I have to rebuild newlib if I decide to edit…
1 2 3
10
11