Questions tagged [gnu-arm]

41 questions
26
votes
3 answers

Different Static Global Variables Share the Same Memory Address

Summary I have several C source files that all declare individual identically named static global variables. My understanding is that the static global variable in each file should be visible only within that file and should not have external…
helsmore
  • 263
  • 2
  • 8
12
votes
2 answers

Declaring abstract class (pure virtual method) increase binary size substantially

Here is the story: I am developing C++ software for ARM Cortex-M0 processor in Linux with AC6 Toolpack. Before I was using Keil (in windows) (who has their own toolchain) and I have migrated to GNU-toolchain ((GNU Tools for ARM Embedded Processors)…
ifyalciner
  • 1,190
  • 1
  • 10
  • 22
10
votes
3 answers

GNU ARM - nano.specs not found

Last days I've been trying to compile a STM32F4xx project with Ubuntu 14.04LTS, Eclipse and GNU ARM plugin for Eclipse. Now it says that nano.specs is missing. Here is my build log: 14:39:35 **** Incremental Build of configuration Release for…
Jacajack
  • 759
  • 2
  • 11
  • 23
5
votes
1 answer

Is it possible to have multiple connections to gdbserver?

I am using Eclipse CDT and the GNU ARM QEMU simulator. Eclipse starts it own gdb session with the gdbserver running on QEMU. I want to also be able to connect from an OSX terminal for more fine tuned control. I also want to be able to use the GDB/MI…
vaughan
  • 6,982
  • 6
  • 47
  • 63
4
votes
1 answer

How to setup a cmocka example with arm-none-eabi-gcc + cmake?

I am developing firmware for stm32f4xx based systems. For that I setup a toolchain based on the arm-none-eabi-gcc toolchain form ARM and cmake. This toolchain works on Ubuntu. I can x-compile and debug(via openocd + eclipse IDE). Now I like to add…
Stefan Jaritz
  • 1,999
  • 7
  • 36
  • 60
4
votes
2 answers

Break at address "0xXXXXXX" with no debug information available, or outside of program code

Configuration: Using Nucleo-L476RG. Using GNU ARM Eclipse. I have generated a minimalist code from STM32CubeMX. I have flashed J-link driver in my on board ST-Link. Have been trying to run debugger for my code but my program counter is not setting…
Abhishek Behera
  • 41
  • 1
  • 1
  • 5
4
votes
2 answers

g++: Using singleton in an embedded application

I'm developing an embedded application for Cortex M3 with GCC 4.8 from GNU ARM toolchain in C++. The application uses some singletons that are instantiated via function local static variable, like that (real code): GlobalDataTypeRegistry&…
Pavel Kirienko
  • 1,162
  • 1
  • 15
  • 31
4
votes
1 answer

Understanding multiple declaration of a variable in a program and GCC compiler behavior

I tried these three versions of a small program and I got some interesting results. Can anyone please help me understand compiler behaviour in each case. version 1.0 int A; int A; int A; int main () { return 0; } Result: Got compiled with…
Satpal Parmar
  • 361
  • 3
  • 12
3
votes
2 answers

Where is UNS_32 defined?

I'm using Doxygen on a client's source code and Doxygen can't find a symbol UNS_32. The client's code compiles without errors using the GNU ARM compiler. I have searched the client's code base and can't find the definition of UNS_32. I searched…
Thomas Matthews
  • 56,849
  • 17
  • 98
  • 154
2
votes
2 answers

How do I leave memory uninitialized in GNU ARM assembly?

I'm using GCC on my Raspberry Pi to compile some assembly code for a course I'm taking. It is my understanding from information in the GNU Assembler Reference that I can reproduce the following C code in GNU ARM Assembly: int num = 0; By writing…
Aaron Beaudoin
  • 1,107
  • 1
  • 10
  • 23
2
votes
1 answer

what is IMPORT alternative in arm gnu assembler?

I am reading the book for learning ARM and ARM assembly.. examples in book is based on armcc compiler but I am using arm-none-eabi-gcc. so how can change this peace of code to gnu assembler?? IMPORT |Lib$$Request$$armlib|,WEAK. whole example is : …
1
vote
2 answers

Where is declaration for get_pc() in GNU ARM?

I'm building legacy code using the GNUARM C compiler and trying to resolve all the implicit declarations of functions. I've come across some ARM specific functions and can't find the header file containing the declarations for these functions: …
Thomas Matthews
  • 56,849
  • 17
  • 98
  • 154
1
vote
1 answer

How to enable warning in each occurrences "implicit declaration of function"?

I get "implicit declaration of function" for first occurrence in code but the other occurrences are not highlighted I would like to se all of them at once. As shown below. I am using: GNU Tools for ARM Embedded Processors (arm-none-eabi-gcc)…
1
vote
1 answer

Is it possible for gnu and gnu-arm compilers to coexist on the same system?

Is it possible to have gnu and gnu-arm compilers coexist on the same system? I first ran MinGW32 successfully on windows 10 to compile windows software, then I felt more and more that GNU series software is good to use, so why don't to use GNU-ARM…
anti-gravity
  • 122
  • 6
1
vote
1 answer

How to change makefile diagnostic message when compiling [ GNU ARM GCC, Eclipse make.exe]

I'm building a program for STM32F4 by using GNU-ARM-Gcc and Eclipse_make.exe to build the project. Everything works fine but the diagnostic message show on the terminal when compiling is too long and very hard to see. When each *.c file is compiled,…
loi.efy
  • 61
  • 7
1
2 3