CodeWarrior for MCU Knowledge Base

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CodeWarrior for MCU Knowledge Base

Labels

Discussions

Sort by:
Greetings, CodeWarrior for MCU V10.7 is now available for download from nxp.com at CodeWarrior for Microcontrollers-Eclipse IDE|NXP   Major features Combines all the previous CodeWarrior for MCU V10.6.x downloads into a single download and installer Windows 8 and 10 support Added S12Z and S08 device support Updated P&E and Segger debug libraries Various enhancements and bug fixes See attached release notes for details.   It is available as 'offline' and 'online' version: The offline package contains all architectures supported (ColdFire, ColdFire+, S08, RS08, S12, S12/XGATE, S12Z, DSC, Qorivva, Kinetis), while the online setup executuble contains the common parts, and the selected architectures are downloaded on demand. The setup will install a 30 day temporary professional license which afterwards default to 'special' edition (code size limited) mode. CodeWarrior for MCU V10.7 is compatible with V10.6 and any existing professional V10.6 license can be used with V10.7. It is not necessary to uinstall any previous CodeWarrior version, as V10.7 can be installed side by side with existing CodeArrior versions.     NXP CodeWarrior Team
View full article
Question: What is Processor Expert? Processor Expert Software is a development system to create, configure, optimize, migrate, and deliver software components that generate source code for Freescale silicon.   Processor Expert software covers Freescale's S08/RS08, S12(X), Coldfire, Coldfire+, Kinetis, DSC 56800/E, QorIQand some other Power Architecture processors.   Processor Expert software is available as part of the CodeWarrior tool suite or as an Eclipse-based plug-in feature for installation into an independent Eclipse environment.   Embedded Components are modules you install into Processor Expert Software. Each Component encapsulates a discrete set of functionality designed to accomplish the Component's design objectives.   When used, it may generate configuration files, header files, and/or source code depending on the type of Component. A Component may represent a hardware abstraction, a peripheral driver, a software algorithm (such as data encryption), or any logical collection of software functions What are you waiting for? Learn more @ Freescale!
View full article
The DSC56800E/EX Quick Start is a software environment for the embedded applications development. It is based on the graphical configuration tool (GCT) and a unified application programming interface (API)-style of accessing the peripheral modules.  The attached document shows how to integrate this tool with Eclipse CodeWarrior for MCU, and how to start a new project from Quick Start Stationery.
View full article
This document shows, how to use CodeWarrior to debug code, which is already flashed in the micro.   1) Click File and choose Import. In this menu select MCU Executable Importer.   2) Set project name and choose workspace where the project will be created.   3) Select .elf file which you want to import. You can also copy the .elf file to the project folder (optional)   4) Select device, which you use.   5) Select debugger, which will be used for debugging.   6) Select instruction set, which is used in the code you will debugging.   Click Finish. Project will be created in the selected workspace.  Now select created project and click on the arrow near the bug symbol and select Debug Configuration.   Click on the project name switch to the Debugger tab. In the window Debugger options select Download tab and uncheck Perform standard download. Click Apply and now you are able to debug without downloading the code to the device.
View full article
Hello community!   Nowadays assembly language is being eradicated for embedded systems, and other alternatives such as C/C++ are widely used.   However we know sometimes it becomes necessary to get to "the bones" of our MCU, even from a C project, and play directly with its registers and status flags. Some use cases are:   - Startup code - Bootloaders - Time critical routines - Benchmarking   It is common to include assembly code using the "asm()" style. But what if I want to use my C variables in the assembly code? or if I want to call an assembly subroutine from a C project? The GCC toolchain integrated with CodeWarrior brings this flexibility.   In the attached pdf document you can find an overview and explanation of this extended assembly feature. Also attached a pair of example projects tested with CW v10.6 using KL25Z128 and K60DN512.   Thanks to Abigail Inzunza Lopez for helping with this.   I hope you like it !
View full article
This document shows how to setup CodeWarrior project to flash two .elf files into micro.   At first, create empty project for required processor. New project has to be created, because you need debug setup.   Second step is to create new target task.   Type Task Name, as run configuration, choose Flash configuration of the created project and set Task Type to Flash Programmer for Power Architecture.   On the next screen add device MPC5568G_VLE or MPC5668G_BOOKE and set base RAM address to 0x40000000 and size of the RAM at least 128KB (0x00020000)   Add first action Erase/Blank. You can choose, which sectors you want erase or you can choose all sectors.     Add two Program/Verify action. In each action, choose one of the .ELF file, which you want to flash.   If you have prepared these actions, click on the button Save All.   Save the Flash Action to the framework. Then choose the Target Task and click the Execute button.
View full article
For CodeWarrior V10.6.4 the Update 5 available now. Update 5 is mainly a bug fix release and integrates support for Kinetis WPR1216 and S12Z (MC9S12ZVML31, MC9S12ZVM32, MC9S12ZVM16). For additional details, please see that attached release notes (PDF format).   Installing the v10.6.4 Update 5 The update is 500 MByte in size, and therefore recommended to download the update first as .zip file, and then install the update. Go to http://www.freescale.com/cwmcu10 Click on the 'Downloads' tab Scroll down and select 'Download Options for the 'CodeWarrior Development Suite - Special':   Locate the MCU v10.6.4 Update 5 under 'Updates and Patches':    Download the file. Start CodeWarrior for MCU10.6.4 Use the menu Help > Install New Software Use the downloaded zip file as local update archive: Click the 'Add...' button, then use 'Archive...' to point to the CW_MCU_v10_6_4_Update_5.zip file downloaded.    Select the update(s) and go through the installation process with "Next >".    Restart CodeWarrior at the end of the installation process.   Using Eclipes Update Site Alternatively, the following update site can be used (keep in mind the 500 MB total download): http://freescale.com/lgfiles/updates/Eclipse/MCU10_6_4/com.freescale.mcu.updatesite
View full article
The CodeWarrior linker for MPC56xx does not support CRC generation. In case that user needs CRC vale for his firmware,  he can make use of CRCgen.exe utility included in CodeWarrior v10.6.4.   The attached document listed the detailed steps for  generating CRC value by CRCgen.exe, the example project is also attached.
View full article
Hi, my name is Yayra and I have just completed an internship at Freescale semiconductors for 8 weeks. I am currently a student at the University of Sheffield. During my time, I worked on Element 14 triple sensor board and managed to write drivers for the accelerometer (MMA8491), magnetometer (MAG3110) and pressure and temperature sensor (MPL3115A2) using processor expert and code warrior. The code warrior project attached works with a command interface to poll data from the various sensors. Once you have this shield and plug it into you FRDM_KL25 board, you should be able to run the project and using a terminal emulator like Teraterm, and be able to get data from the sensors. More information is included in the attched file with a PDF document called "The triple sensor project" which gives a "tutorial-like" information about the code I have written and integration with processor expert. I have uploaded a further file which deals with working with the sensor and freemaster
View full article
A vulnerability in the Apache Log4j was identified in the article posted: CVE-2021-45046 NXP has performed an analysis of this vulnerability with regard to the CodeWarrior. Our conclusion is that the CodeWarrior (all versions) is NOT IMPACTED. Although the Log4j is used by CodeWarrior, the version used is 1.x and the vulnerability was introduced in version 2.x. We do not plan to upgrade the Log4j version at this time. Going forward, if we determine an upgrade of the Log4j is required for a future release of CodeWarrior, then this vulnerability will be addressed.
View full article
As you might already know, assembler statements are used to control the operation of the assembler itself.   The syntax of assembler statements mirrors the syntax of assembly language, and therefore, a guide of FAQs or HOW-TOs is usually provided while working with any given assembler.   Such is the case of the Freescale DSP Assembler, which not only processes assembly code for the Freescale DSP instruction set, but offers a set of useful directives and macros which makes your assembly coding much easier.   So, taking a look at the CodeWarrior-Digital Signal Controller Assembler Manual you'll be able to get acquinted with the directives and macros previously mentioned, and you'll get a step closer in the process of learning and programming Freescale DSPs.   Syntax, expressions and functions are also mentioned within this manual. Take a look at it now!   For more on the subject, follow DebuggerGuys
View full article
The example demonstrates project adjustments required in order to run and debug the code running from external SRAM rather then from internal memory. This example performs basic initialization and runtime EBI interface configuration (FLASH Build target) so the external SRAM memory becomes available while executing the code (without debugger). The debugger launching TCL script (\Project_Settings\Debugger\MPC5644A_VLE.tcl, init_ebi()) has been adjusted to load program into external SRAM (EXT_SRAM)   Test HW:  MPC5644A + XPC564A minimodule + XPC56XX mother board Maskset:  OM14X Target :  External SRAM, Internal FLASH Fsys:     16MHz IRC Debugger: PeMicro USB-ML-PPCNEXUS IDE/Compiler: CodeWarrior for MCUs v10.5 EVB connection:   Default EVB jumper setup
View full article
A big new way of using the development tools we already know has ben brought by Freescale and the CodeWarrior portfolio, and they have asked us to evaluate and test the beta version of The CodeWarrior™ Development Studio for Microcontrollers v10.3 i don't know about you, but I'M IN!   As a little overview on this releasement, Freescale’s CodeWarrior for Microcontrollers v10.3 Beta integrates the development tools for the ColdFire®, ColdFire+, DSC, Kinetis, Qorivva, PX, RS08, S08 and S12Z architectures into a single product based on the Eclipse open development platform. Architectures supported in this version of the tools for the first time are: • Kinetis E Series • Kinetis L Series • S12Z   In addition to all these new benefits, many new derivatives for other architectures have also been considered: Major new features of this release include: • Simplified C/C++ and Debug perspectives focus on basic tasks needed for embedded development • Commander view gives you 1 click access to many basic tasks • MQX Lite RTOS is a Processor Expert component that allows you to add a lightweight kernel to your Kinetis project • Processor Expert hardware perspective allows you to build and share board configurations • ARM Ltd. gcc compiler support for Kinetis E, L and K Series families • Migrated IDE to Eclipse 3.7.1   Featuring as well the posibilities of: • Build configuration and debug configuration names are simplified. • Debug configurations are filtered to only show the current project’s configurations • Migrated to Eclipse 3.7.1 and CDT 8.0.1 • Casting registers to types • Debugger engine allows updates without Eclipse restart   If you want to keep finding more advantages and information, take a look at the Release Note   Enough of the textual concepts, let's get down to the practice part! To download the software, click HERE Please note this is a BETA version, so if any problem or issue comes along, you must report HERE If you'd like to provide any kind of feedback, click HERE   For further information on the software usage, you can consult the Quick Reference or the Quick Start, and remember to keep in touch with DebuggerGuys!
View full article
The 3 simple  code are relocate code to rom、special ram and external ram. They are create on CW10.6, K60dn512  chip . It is  same with  relocate data .
View full article
This Slide set was used for a basic training on Code Warrior 10.4 by Carlos Musich, Freescale TIC. Graphic Interface and the different perspectives. How to create a project, it´s structure and project configuration. Compile the Project and create the SREC file. Debug Configuration explanation How to debug the application and explain the  debugging perspective. Este es el set de slides utilizado para un entrenamiento de CodeWarrior 10.4 básico creado por Carlos Musich, Freescale TIC. Descripción de la interfaz y de las perspectivas. Crear un proyecto y explicar su estructura (y configuraciones del proyecto). Compilar el proyecto y crear el archivo srec. Explicar el “Debug Configuration”. Debuggear la aplicación y explicar la perspectiva de debuggeo
View full article
The HC(S)08 Build Tools Reference Manual for Microcontrollers describes the compiler used for the Freescale 8-bit Microcontroller Unit (MCU) chip series. This document included right here consists of the following sections: • Using Compiler      It's more than obvious that the compiler is one of the parts that help us pull off our design, and that's why is really important to fully understand how it works, what it does and how to get the meximum out of it. This section, as you can figure, will be describing how to run the compiler, including the necessary specifications. • ANSI-C Library Reference      The well-known library is essential and quite useful. The section of this library reference will guide you on how it's attached to the compliler and how can you apply its benefits into your design! • Appendices      Apendices are more useful than you might think, so don't underestimate them! This ones include lists of FAQs, global and local configuration file entries, and known C++ issues to solve out any doubt.   In case you remain with questions, DebuggerGuys can help you out! CodeWarrior Development Studio for Microcontrollers V10.x HC(S)08 Build Tools Reference Manual
View full article
Eclipse - How can I install (check for) patch and update ?             Valid for all Eclipse versions - CW for MCU, CW for PA, etc ...     By default when an update (sometimes for patches too) is available a message will appear under Eclipse   If you click on the message a new dialog will appear     Via the Help Menu   Via the Help Menu you can access 2 features: Check for Updates: to update packages already installed Install New Software … to install new plugins.         Notes: To avoid problem we recommend to execute “Check for Updates” after to have executed “Install New Software”.     Install New Software …   This is a generic Eclipse feature and you must select a Software Site which could be: Associated to a web link This is the case for CodeWarrior Eclipse tools: MCU V10.6 for instance. The correct link is proposed in the Software Sites list. http://freescale.com/lgfiles/updates/Eclipse/MCU10_6/com.freescale.mcu.updatesite   Associated to a local file       You can download a patch on your PC (most of the time a .zip file) and install it.       After to have downloaded a patch, you must add it in the Software Sites.       Click on Add…                               Via Archive you can select the file you’ve downloaded.                        It will be added in the Software Sites list.     Notes: Sometimes you can not install all patches/Updates at same time. Some patches/updates require a patch or an update already installed to be applied. To install all patches and updates you could need to execute several time the process and re-start Eclipse between 2 processes.     Attached you will find a doc showing an example for MCU V10.6 using the 2 features: Install New Software … Check for Updates – not really used here.
View full article
When the Data Flash and Data RAM are not big enough  to save the constants or global data. User can place his data in program memory. This project supplies a solution for how to place and access the data in Program Flash in running time with C language.
View full article
User who work with CW MCU v10.5 for 8bit MCU that uses banked Memory(for example 9S08QE128, 9S08DZ128, etc), MUST install CW MCU v10.5 MCU Banked Memory Patch. Otherwise CW can NOT work with banked memory normally.   attached is the patch.   install instructions: The CW MCU v10.5 Banked Memory Patch is for CodeWarrior Development Studio for Microcontrollers v10.5. It includes the files required to address the S08 banked memory defect in CW MCU v10.5. This patch is provided as a zip file with no automated installation scripts or programs. The zip file must be installed manually using the installation instructions below. 1. Close CW MCU v10.5. 2. Locate the CW MCU v10.5 installation on your hard drive. The default installation directory is: “C:\Freescale\CW MCU v10.5.” 3. Unzip “CW MCU v10.5 Banked Memory Patch.zip” into the MCU subdirectory (C:\Freescale\CW MCU v10.5\MCU). The files included in the zip file will overwrite the current files in the subdirectory. -Or- 3. Use Windows Explorer to drag and drop the “bin” and “HC_Tools” subdirectories into the MCU subdirectory (C:\Freescale\CW MCU v10.5\MCU).
View full article
Even though there has been a huge rush to get the latest versions of CodeWarrior for MCU, I've also got some questions regarding the compiler and linker version 10.0, so I'll share with you the Kinetis Refernce Manual for MCU v10.x   The Kinetis (also known as ARM or Cortex-M4) Build Tools Reference Manual for Microcontrollers describes the compiler used for the Freescale 32-bit Microcontroller Unit (MCU) chip series.   This application note provides information about the CodeWarrior compiler and its linker, versions 10.0 and higher and explains how to use CodeWarrior tools to build programs.   CodeWarrior build tools translate source code into object code then organize that object code to create a program that is ready to execute. CodeWarrior build tools run on the host system to generate software that runs on the target system. Sometimes the host and target are the same system. Usually, these systems are different.   The document also provides information about the documentation related to the CodeWarrior Development Studio for Microcontrollers, Version 10.x and contains these major sections: • Compiler Architecture • Linker Architecture • Additional Information Resources • Miscellaneous   Ready to give it a glance?  Do it now! Kinetis Build Tools Reference Manual Kinetis Build Tools Reference Manual
View full article