Questions tagged [coldfire]
30 questions
11
votes
5 answers
Why can't Codan find size_t
I've just started using Eclipse Indigo (coming from Galileo) and I'm getting little red bugs in the gutter for every use of size_t.
The code compiles without issue but I suspect I have to explicitly add a path to the include directories. I…

Tod
- 8,192
- 5
- 52
- 93
6
votes
4 answers
Easiest way to merge 2 or more ELF files
I'm working on some embedded code for a class project that currently (per requirements) creates a number of srec files and merges them. I'd like to be able to load this code into QEMU, but it is generally only happy with ELF files. What is the…

megabytephreak
- 588
- 7
- 17
4
votes
1 answer
ucLinux libbzip2 reloc type error when cross compiled
I've been trying to compile ucLinux with libCurl included, but any time I include curl in the config it barfs when trying to compile libbzip2.
I'm cross compiling this for the coldfire 68K processors.
It says that a relocation type isn't supported…

MechaMarinara
- 620
- 1
- 7
- 22
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
3
votes
1 answer
Bitbanging a PIO on Coldfire/ucLinux
Here's the problem: I need to program some hardware via 2 pins of the PIO (1 clock, 1 data). Timing constraints are tight - 10ms clock cycle time. All this, of course, whilst I maintain very high level services (CAN bus, TCP/IP). The downstream unit…

J Evans
- 1,090
- 2
- 16
- 36
3
votes
1 answer
Using stack trace to debug unknown program exception on Coldfire MCF5235 in GDB (Eclipse)
At a certain point in my C application (running bare to the metal, supervisor mode) when using the CAN controller via a third-party library, an Illegal Instruction fault was occurring, which is caught in an ISR; by that point, the program counter,…
user1171983
2
votes
2 answers
High resolution timer on Coldfire (MCF5328)
I've inherited a embedded project that requires some simple, per-function performance profiling. It consists of a Coldfire (MCF5328) running uClinux (2.6.17.7-uc1).
I'm not an expert on either the Coldfire, or uClinux (or Linux for that matter), so…

Tergiver
- 14,171
- 3
- 41
- 68
2
votes
1 answer
68k ASM addressing modes
I learned some 68k/Coldfire at the Uni, and having difficult understanding the more complex addressing modes (with the numbers near the parentheses of dereference).
I think example are the best here:
A) lea:
A1) lea $5(a1,a2.l), a0
A2) lea…

Lala yoyo
- 36
- 3
2
votes
1 answer
USB enumeration failure in ColdFire MCF52259
Anybody with programming experience on the ColdFire line, please help!
I'm using the CMX USB-Lite stack with the ColdFire MCF52259. For some reason, USB enumeration fails at the very first step, as soon as I enable the DP pull-up resistor. This is…

Quicksilver
- 249
- 2
- 12
2
votes
3 answers
Interfacing a slow device to a MCF5270 Microcontroller
I'm looking for ways to interface a slow device (an ADC - ~1.2MHz) to my mcf5270 microcontroller, which is a rather fast device (~150MHz). I am using ADC0817, and have tried the following: GPIO read off the data lines, memory mapped access (since…

Viashimo
- 23
- 5
1
vote
0 answers
Coldfire microprocessor MCF5272 USB module stops firing interrrupts
This is a problem that I am trying to solve for years, periodically spending 1-2 months on it.
I am using Metrowerks IDE and ColdFire C compiler MCFCCompiler ver 4.0 to build the embedded code that uses the USB module for communication with the…

FWrocks
- 11
- 1
1
vote
0 answers
Coldfire/m68k Jump Encoding Issue
So I am working with coldfire (mcf5225x series) and I run into some issues with the jump encoding which in this case has the same binary representation as 68k.
asmtest.o: file format elf32-m68k
Disassembly of section .text:
00000000 <_start>:
…

PandaRaid
- 618
- 1
- 9
- 22
1
vote
1 answer
Documentation for CMX ColdFire USB-Lite stack
This is my first embedded project, so bear with my ignorance. I've been asked to implement Remote NDIS over USB, using the ColdFire USB-Lite stack by CMX. I've been searching for a long time now, and can't find any clear documentation for this…

Quicksilver
- 249
- 2
- 12
1
vote
2 answers
Address Error in Assembly (ColdFire MCF5307)
Taking my first course in assembly language, I am frustrated with cryptic error messages during debugging... I acknowledge that the following information will not be enough to find the cause of the problem (given my limited understanding of the…

Midnight Blue
- 5,061
- 10
- 41
- 46
1
vote
2 answers
How would one compile a program for the Coldfire toolchain?
I'm trying to compile a simple hello world application to be run on uCLinux (2.4) which is running on a board with a Freescale Coldfire (MCF5280C) processor...and I'm not quite sure what to do here.
I know I need to compile with the correct…

Mike
- 47,263
- 29
- 113
- 177