newlib Questions

3

I downloaded the toolchain “gcc-arm-none-eabi-6-2017-q2-update-win32-sha1.exe” (Windows) from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads and installed it on my Windows 10 ...
Bombardon asked 3/5, 2018 at 11:36

4

I viewed the source code of __libc_init_array from http://newlib.sourcearchive.com/documentation/1.18.0/init_8c-source.html . But I don't quite understand what this function does. I know that the...
Kuenlun asked 7/3, 2013 at 7:20

1

I'm struggling to properly implement printf from newlib into my esp32, using GCC. I've gone through the newlib documentation and it gives me general information about how printf is called, but does...
Zach asked 6/3, 2019 at 1:15

2

Solved

I'm trying to cross-compile a file to flash into the Beaglebone Black. All works fine, but if I try to enable the FPU with #define set_en_bit_in_fpexc() do { \ int dummy; \ __asm__ __volatile__ ...
Inveracity asked 13/12, 2016 at 22:11

1

Solved

I have my own implementation of _open(), _close(), _write(), _read(). My code: FILE *f = fopen("0:test", "wb"); // calls _open() fwrite("hello ", 6, 1, f); fwrite("world\r\n\0", 8, 1, f); // call...
Accusation asked 22/2, 2018 at 12:26

2

Solved

We are catching compiler errors when using sigemptyset on Cygwin under Newlib. The error occurs with a C++ compiler, but only when -std=XXX is used. Without a standard option, the test program comp...
Rackety asked 4/10, 2016 at 5:52

6

I want my exception handlers and debug functions to be able to print call stack backtraces, basically just like the backtrace() library function in glibc. Unfortunately, my C library (Newlib) doesn...
Cadency asked 3/8, 2010 at 16:38

1

The question refers to arm-none-eabi-g++ 6.2 and linking against newlib-nano. When I preprocess a C-source with -specs=nano.specs, the file newlib.h from the directory newlib-nano is included: ec...
Wun asked 8/1, 2017 at 17:48

2

Solved

I am using the STM32F746NG microcontroller from STMicroelectronics. This device is based on the ARM Cortex-M7 architecture. I invested quite some time in understanding the linkerscript from example...
Graduation asked 10/11, 2016 at 16:14

4

Solved

I am having a strange problem. The math libraries has been added to my makefile. # include standard C library LDFLAGS += -lc # include standard math library LDFLAGS += -lm and in the output fil...
Hatpin asked 30/6, 2011 at 11:44

3

Solved

I need to port snprintf() to another platform that does not fully support GLibC. I am looking for the underlying declaration in the Glibc 2.14 source code. I follow many function calls, but get st...
Jestinejesting asked 15/6, 2011 at 10:12

2

Solved

I'm trying to cross-compile an SSH-server to port it on an home-made OS, using newlib (because the OS uses a lib which is based on newlib). I got some troubles with the RedHat Newlib, and I was wo...
Eucken asked 23/12, 2015 at 10:50

1

Solved

I am trying to retarget printf() function for STM32F411RET microcontroller in ARM GCC toolchain environment which uses Newlib for standard C library. When I search for how to retarget printf(), ma...
Nidia asked 16/8, 2015 at 4:50

2

Solved

I am running a bare metal embedded system with an ARM Cortex-M3 (STM32F205). When I try to use snprintf() with float numbers, e.g.: float f; f = 1.23; snprintf(s, 20, "%5.2f", f); I get garbage...
Duyne asked 26/2, 2015 at 15:15

1

Solved

I'm creating code for an ARM Cortex-M3 (NXP's LCP17xx). I've been using static memory up to now and everything worked well. I tried to add dynamic memory support, but once I call malloc, the system...
Parallel asked 6/5, 2012 at 0:59

3

I want to use newlib instead of glibc in order to compile small static binaries. (I do not intend to cross-compile as the binaries are to be used by the same computer.) I believe that I need to com...
Trouvaille asked 21/4, 2011 at 19:59

1

I am trying to port NewLib for my OS (I am following this tutorial: http://wiki.osdev.org/Porting_Newlib), and I have some questions. Once LibGloss is done and compiled, when exactly will I have ...
Reachmedown asked 8/8, 2010 at 11:44
1

© 2022 - 2024 — McMap. All rights reserved.