Questions tagged [codewarrior]

The CodeWarrior Development Tools is a tool suit targeting embedded systems, sold by NXP Semiconductors. It includes a compiler, linker, debugger and IDE.

The CodeWarrior Development Tools is a tool suit targeting embedded systems, sold by NXP Semiconductors. It includes a compiler, linker, debugger and IDE.

The compiler is maintained by NXP, but the various debuggers in different versions of CodeWarrior are often developed by a third party. Originally, CodeWarrior had its own unique IDE, but it is nowadays replaced by a customized Eclipse solution.

The product was originally developed by Metrowerks. Prior to the acquisition of Metrowerks by Freescale Semiconductor, versions existed for Macintosh, Microsoft Windows, Linux, Solaris, PlayStation 2, Nintendo GameCube, Nintendo DS, Wii,[1] Palm OS, Symbian OS, and even for BeOS. Several languages were supported, including Pascal, Object Pascal, Objective-C, and Java. Currently, C, C++, and assembly language are the focus of the tools, as they are nowadays only used to program embedded systems with NXP/Freescale processors.

Since the acquisition of Freescale Semiconductor CodeWarrior is now published by NXP Semiconductors.

Origin of the name

During the 1990s, Apple Computer released a monthly series of developer CD-ROMs containing resources for programming the Macintosh. These CDs were, in the early days, whimsically titled using punning references to various movies but with a coding twist; for example, "The Hexorcist" (The Exorcist), "Lord of the Files" (Lord of the Flies), "Gorillas in the Disc" (Gorillas in the Mist), etc.[4]

One of these, volume 9, was titled "Code Warrior", referring to the movie Mad Max 2: The Road Warrior. Later Apple dropped the whimsical titling in favour of a more sober "Developer CD series". Coincidentally the Metrowerks founder, Greg Galanos, an Australian, was also inspired by the movie and proposed the CodeWarrior name. Metrowerks subsequently used the name for their new developer product.

CodeWarrior CD packaging was very much in the tradition of the Apple developer CDs, featuring slogans such as "Blood, Sweat, and Code" and "Vedi, Vici, Codi" in prominent lettering. Competing products such as Symantec's THINK C were more conventionally marketed.

98 questions
37
votes
14 answers

Does it matter which microcontroller to use for 1st time embed system programmer?

I've experience in doing desktop and web programming for a few years. I would like to move onto doing some embed system programming. After asking the initial question, I wonder which hardware / software IDE should I start on... Arduino + Arduino…
Henry
  • 32,689
  • 19
  • 120
  • 221
9
votes
9 answers

Bit-reverse a byte on 68HC12

I'm in a microprocessors class and we are using assembly language in Freescale CodeWarrior to program a 68HCS12 micro controller. Our assignment this week is to revers a byte, so if the byte was 00000001, the output would be 10000000, or 00101011 to…
8
votes
2 answers

Fixed point math with ARM Cortex-M4 and gcc compiler

I'm using Freescale Kinetis K60 and using the CodeWarrior IDE (which I believe uses GCC for the complier). I want to multiply two 32 bit numbers (which results in a 64 bit number) and only retain the upper 32 bits. I think the correct assembly…
EpicAdv
  • 1,164
  • 1
  • 12
  • 22
4
votes
2 answers

How can I segment my Palm OS 68K application?

If you have an 68K application written using CodeWarrior for Palm OS, how do you assign individual functions to different segments without manually moving files around in the segment tab in the IDE?
Ben Combee
  • 16,831
  • 6
  • 41
  • 42
4
votes
2 answers

Understanding compile errors due to copying code from a doc file and not a txt file

SITUATION: My instructor for my micro-controller class refuses to save sample code to a text file and instead saves it to a word document file instead. When I open up the doc file and copy/paste the code into my IDE "CodeWarrior" it causes errors…
Shane Yost
  • 231
  • 6
  • 14
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

Need of main function in C, used in microcontrollers

I have been using C for embedded systems for a while, but I have a question regarding the main() function. When a microcontroller boots up, the control first reaches the reset handler, from where the control goes to whichever function I need to. If…
asterisk
  • 33
  • 3
3
votes
2 answers

Can you link 68K code compiled with CodeWarrior for Palm OS with code compiled with PRC-Tools (GCC)?

I've got a Palm OS/Garnet 68K application that uses a third-party static library built with CodeWarrior. Can I rebuilt the application using PRC-Tools, the port of GCC for the Palm OS platform and still link with the third-party library?
Ben Combee
  • 16,831
  • 6
  • 41
  • 42
3
votes
1 answer

Solve boost.thread compilation error with Metrowerks compiler

I'm trying to use boost.thread with metrowerks codewarrior 5.5.3; in the header thread.hpp, I get the error that he's redefining thread::thread_data: class BOOST_THREAD_DECL thread { private: ... template struct…
akappa
  • 10,220
  • 3
  • 39
  • 56
2
votes
1 answer

How should I write my C code to have the resulting assembly use extra dsll32 and dsra32 instructions?

I'm decompiling a PS2 game that was shipped as a debug build. I've gotten as far as decompiling enough to be able compile an ELF file using the compiler that was originally used (Metrowerks CodeWarrior). Now I'm doing comparisons between the…
user16316067
  • 119
  • 5
2
votes
2 answers

MQX 4.0.1 program Not Compiled with GCC

I am using TWR-K20D72M and I opened a Sample program which is given in the MQX 4.0.1 Demo examples. When I choose Build tool option as Freescale the program compiles OK but When I choose Build tool option as GCC It gives me error.The Error is…
Yogesh patel
  • 1,351
  • 2
  • 15
  • 21
2
votes
1 answer

illegal implicit conversion of unsigned pointers

why is it that this compiles: char * tst1=0; short * tst2=0; tst1=tst2; tst2=tst1; but this does not: unsigned char * tst1=0; unsigned short * tst2=0; tst1=tst2; tst2=tst1; This is just an example to show the compilation error I get. I am…
yodasoda
  • 23
  • 3
2
votes
2 answers

Void * parameter address shift

I am using Codewarrior 8.3 (IDE version 5.9) to program a 56f8367 DSC. I am using respected third party software, so I imagine that they know what they are doing and don't want to mess with their code too much, but they are playing around with…
EatATaco
  • 687
  • 7
  • 25
2
votes
1 answer

No copydown created for initialized object?

I'm using codewarrior to compile for the HC12, and I have two 120 element arrays: score and dur. I have initialized them in the typical fashion: unsigned int score[120] = { ... }; When I try to compile it, however, I get a linker error that says…
user702905
  • 71
  • 1
  • 4
2
votes
1 answer

Predefined ELF Code Sections

What are the predefined code sections that can be referenced in an ELF linker command file? In addition to any others that may be available, I am specifically wondering about these: .text .rodata .sdata .sbss .bss .data Finding documentation has…
Jim Fell
  • 13,750
  • 36
  • 127
  • 202
1
2 3 4 5 6 7