CodeSourcery is a supplier of open-source "Sourcery CodeBench" toolchains (integrating GCC, GDB, etc.) for ARM, MIPS, Power, x86, and other embedded processor architectures. Sourcery CodeBench has both free (as in beer) "Lite" editions and commercially-supported versions of the toolchains. CodeSourcery is a part of Mentor Graphics.
Questions tagged [codesourcery]
61 questions
4
votes
1 answer
Cross Compiling Perl or Expect for MIPS Processor
I am working with an embedded board that has a MIPS processsor. I am supposed to be developing tests for the system with different applications. My question is: is there a way to cross-compile Perl or Expect for the target board. My understanding…

Anonymous
- 1,500
- 3
- 18
- 30
4
votes
0 answers
MIPS GCC compiling wrong MIPS release?
I'm looking to plunge into the realm of router hacking. Currently, I'm just trying to get a simple hello world to run on my router, a F7D7302 v1, running dd-wrt. cpuinfo reveals a BCM4716, and "MIPS 74K V4.0" as the cpu 'model.'
I downloaded…

Saustin
- 1,117
- 6
- 15
- 27
4
votes
4 answers
Using OpenOCD for debugging STM32F1xx Discovery board (ST-Link)
I got some problems getting OpenOCD to communicate with my STM32F100RB Discovery board (it uses ST-Link).
I am not used to working with open source tools, and therefore I've never had problems programming and debugging my embedded platforms. In the…

Jolle
- 1,336
- 5
- 24
- 36
4
votes
7 answers
GCC C++ (ARM) and const pointer to struct field
Let's say there is a simple test code
typedef struct
{
int first;
int second;
int third;
} type_t;
#define ADDRESS 0x12345678
#define REGISTER ((type_t*)ADDRESS)
const int data = (int)(®ISTER->second)*2;
int main(void)
{
…

Freddie Chopin
- 8,440
- 2
- 28
- 58
4
votes
1 answer
CodeWarrior vs. CodeSourcery G++ for ColdFire Development
I am interested in any comparative analysis between Freescale's CodeWarrior tool chain and CodeSourcery G++ for developing embedded applications for the ColdFire family of processors.

Brandon E Taylor
- 24,881
- 6
- 47
- 71
4
votes
2 answers
Sourcery G++ (cross-compiler for ARM) installation failure
I was trying to install Sourcery G++ cross-compiler for ARM on Ubuntu 10.04 LTS from the following link ->http://www.codesourcery.com/sgpp/lite/arm/portal/release644
I did not use the graphical interface since I got java.awt error. While using the…

Joel Abraham
- 99
- 2
- 6
3
votes
1 answer
Segmented memory model in C cross compilers
I am doing some work on 8086 real mode. I am used to doing it in assembly, but wanted to give C compilers a try. It seems to me that compilers assume that all the segment registers have the same value. It is not so in my case; SS is 0x4C0, while the…

Arjob Mukherjee
- 387
- 1
- 10
3
votes
2 answers
why TI starterware examples do not clear correctly BSS segment when compiled using CodeSourcery gcc
I ran into severe troubles with beaglebone running TI AM3359arm. I'm using code sourcery to compile code. I tried to compile one of the examples, called enet_lwip, which uses lightweight IP (lwip) to provide http server.
The application crashes at…

David Belohrad
- 458
- 5
- 19
3
votes
1 answer
Error during Cross-compiling C code with Dynamic libraries
I've two files:
lib.c
#include
void hi() {
printf("Hi i'm a library function in lib.so\n");
}
and main.c
#include
#include
/* based on Jeff Scudder's code */
int main() {
void *SharedObjectFile;
void (*hi)();
…

Cob013
- 1,057
- 9
- 22
2
votes
1 answer
does codesourcery include secure version of standard functions (strcpy_s,sprintf_s etc.)
Quick question: I use codesourcery g++ lite for arm-none-eabi. I made a search in the include folder to see if there is secure function like strcpy_s and sprintf_s, but I got no result.
Does codesourcery provide theses secure function (maybe under…

Martin Allard
- 283
- 1
- 7
- 16
2
votes
1 answer
Codesourcery with gfortran support?
Has anyone successfully added gfortran to a Codesourcery lite for ARM build? If not how do you properly work around this with f2c to compile fortran code with codesourcery?

corbin
- 1,446
- 2
- 27
- 40
2
votes
4 answers
Unknown GCC error, while compiling for ARM NEON (Critical)
I have a ARM NEON Cortex-A8 based processor target. I was optimizing my code by making use of NEON. But when I compile my code I get this strange error. Don't know how to fix this.
I'm trying to compile the following code (PART 1) using Code…

HaggarTheHorrible
- 7,083
- 20
- 70
- 81
2
votes
1 answer
STM32 Large binary created when using malloc
SOLVED. SEE THE SOLUTION SECTION BELOW.
I've got a problem where my build environment is outputting a large binary file, and I'm hoping that someone can help get me moving again.
I'm using an STM32F105 processor, Eclipse, FreeRTOS, and CodeSourcery…

Dan Puccio
- 23
- 5
2
votes
3 answers
Arm sourcery toolchain linking error
I want to use standard c function in one of my function
void print(const char* format,...) {
char buffer[256];
va_list args;
va_start (args, format);
vsnprintf (buffer,256,format, args);
va_end (args);
…

sanjay
- 735
- 1
- 5
- 23
1
vote
1 answer
How to add directories to ld search path for a cross-compilation to ARM?
I am trying to configure util-linux to cross compile using arm-none-linux-gnueabi from CodeSourcery. My only problem so far is that it can't find my ncurses library which I compiled.
How can I add a directory to the ld search path? I've tried…

conman124
- 116
- 1
- 2
- 12