CodeWarrior for MCU Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

CodeWarrior for MCU Knowledge Base

Labels
  • General 25

Discussions

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
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
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
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
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
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
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
Multilink Rev C is not running after MCU V10.6 Update3 Multilink Rev C is not running under CW for MCF V7.2                                       A- Description   Problem occurs with Mulitilink Universal Rev C only. The MCU V10.6 Update 3 is running fine for Mulilink Universal Rev B.   With default MCU v10.6 the Multilink Universal Rev C on S12Z board is running fine. After to have installed the MCU V10.6 Update 3 (+ latest patches/updates - end of May), the first time the debugger is launched, CodeWarrior detects a new firmware is available for Multilink Universal interface. The firmware is updated automatically.   However there is a problem with the new firmware: Usbmlfsufbdmens.0930 In some case it’s not possible to debug an application on board.       B- Solution   MCU 10.6 update 3 includes the firmware Usbmlfsufbdmens.0930 However there are some problems with this firmware. P&E addressed a number of S12 related issues between 9.30 and 9.35. We recommended users to update to the latest version ( Usbmlfsufbdmens.0935) when targeting devices with this debug module.   The last version can be download on P&E web site:                 http://www.pemicro.com/downloads/download_file.cfm?download_id=346   Attached you will find the update too.   The Problem is solved in CodeWarrior MCU V10.6.4      New CodeWarrior for MCU v10.6.4 available     C- Other cases – Classic IDE MCF V7.2   Configuration: CW for Coldfire V7.2 with Multilink Universal Rev C for ColdFire 54452 Ext FLASH. Trying to load an application on board, you get an error saying: "Getting flash ID failed” After to have installed the last P&E firmware, the problem was solved too.   To avoid problem – following P&E feedback – we recommend always to install the last P&E update which could be downloaded on P&E web site:                 http://www.pemicro.com/downloads/download_file.cfm?download_id=346
View full article
Greetings, There is a new version of CodeWarrior for MCU v10 is available in the download section of CodeWarrior for Microcontrollers-Eclipse IDE|Freescale:   Use the 'Download' button:   You find the update under the 10.6 section: This leads to the latest v10.6.4 version: The software for download is available with two variants: 'Offline.exe' (recommended): this installation image includes all supported architectures (S08, RS08, ColdFire, 56800/E (DSC), Qorivva, S12Z, Sensors and Wireless charging devices). Recommended for offline installation or in case of problems with internet connection. 'Online.exe': this installation image contains the common files, and all the architecture specific files are downloaded on demand during installation.   For Kinetis development, usage of the Kinetis Design Studio is recommended: Kinetis Design Studio Integrated Development |Freescale   What's new: Includes all previous v10.6 updates (update 1, update 2 and update 3) Added Simulator support for 56800EX devices Automotive Math and Motor Control library for S12Z in included into product and supported by New Project Wizard. P&E Cyclone Universal FX support applies to every device architecture New device support: Kinetis K Series: MK65FX1M0, MK65FN2M0, MK66FX1M0, MK66FN2M0, K11DN512AM5, K11DX128AM5, K11DX256AM5, K21DN512AM5, K21DX128AM5, K21DX256AM5, K21FN1M0AM12, K21FX512AM12, KM14Z64AM5, KM14Z128AM5, KM33Z64AM5, KM33Z128AM5, KM34Z128AM5 S08: FXTH87000 S12Z: MC9S12ZVHL32, MC9S12ZVHL64, S12ZVC96, S12ZVCA128, S12ZVCA192, S12ZVCA64, S12ZVCA96 DSC: MWCT1000, MWCT1001, MWCT1003, MWCT1101, MWCT1200, MWCT1012, MWCT1212, MWCT1111, M56F82323 Updated for new silicon revisions: S08: MC13237C, MC13234C Kinetis K Series: K11DN512A, K11DX128A, K11DX256A, K21DN512A, K21DX128A, K21DX256A, K21FN1M0A, K21FX512A Bug fixes (see attached release notes for details)
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
2014 年 4 月 2 日, Freescale 发布了 CodeWarrior for MCU v10.6 (简称 CW10.6 ) 。 www.freescale.com/cwmcu10. CW10.6 平台集成了 Freescale ColdFire®, ColdFire+, DSC, Kinetis, Qorivva, RS08, S08 和 S12Z 开发工具 。 和以往 CW10 的其它老版本一样, CW10.6 有两个可供下载的版本 : 在线安装版本( 432M ): 下载的安装包包含 CW MCU v10.6 的核心工具,其他的安装包需要边安装边下载。这要求你安装的电脑能上网,而且网速足够快。鉴于中国大陆地区的一般网络条件,我并不建议使用。 离线安装版本( 1.37GB ):下载的安装包包括 CW MCU v10.6 的所有安装文件。既使安装的电脑不能上网,也能正常安装使用。 注意: CW10.6 是一个独立的完整的版本,在已经装有老版本的电脑上可以独立安装 CW10.6. 但不支持从老版本到新版本的直接升级。   和 CW10.5 比较, CW10.6 新增了对以下产品的支持: Kinetis E 系列 : MKE04Z8, MKE04Z64, MKE04Z128, MKE06Z64, MKE06Z128 Kinetis KEA 系列 : SKEAZN16, SKEAZN32, SKEAZN64, SKEAZ128 Kinetis K 系列 : MK24FN1M0, MK63FN1M0, MK64FX512, MK64FN1M0 Kinetis V 系列 : MKV10Z16, MKV10Z32 S08: HCS908RN8, HCS908RN16, HCS908RN32, HCS908RN48, HCS908RN60, HCS908RNA2, HCS908RNA4, HCS908RNA8, HCS908RNA16, HCS908RNA32, HCS908RNA48, HCS908RNA60 S12Z: MC9S12ZVC64, MC9S12ZVC128, MC9S12ZVC192, MC9S12ZVHY32     CW10.6 对以下芯片的支持进行了升级: DSC: MC56F844xx, MC56F845xx, MC56F847xx Kinetis E 系列 : MKE02Z16, MKE02Z32, MKE02Z64 (40MHz) S12Z: MC9S12ZVFP64, MC9S12ZVHY64   新特性: 对于 S12Z 系列芯片,新增了 64bit  'long long' 类型和 浮点的支持 对于 Kinetis V 系列,支持平方根运算和硬件除法指令 增加了对 P&E Cyclone Universal [FX] 的支持     CW10.6 license 的使用和升级: CW10.5 的 license 可用于 CW10.6.  但更老版本的 license(i.e. 10.0, 10.1,10.2, 10.3,10.4) 不能用于 CW10.6. 需要从 Freescale 购买升级后可以将 license 升级     MQX 与 CW10 的兼容性问题: 1. MQX3.8 支持 CW10.1 ,不支持 CW10.6. 2. MQX3.8.1 支持 CW10.2 ,不支持 CW10.6. 3. MQX 4.0 是为 CW10.2 和 CW10.3 而设计,在 CW10.6 上已通过测试。 4. MQX 4.0.1 是为 CW10.4 而设计 , 在 CW10.6 上已通过测试。 5. MQX 4.0.2 是为 CW10.4 和 CW10.5 而设计 , 在 CW10.6 上已通过测试。 6. MQX 4.1 是为 CW10.5 而设计 , 在 CW10.6 上已通过测试。 7. CW10.6 集成了 MQX Lite RTOS. 支持 Kinetis L 和 Kinetis K 系列 8. CW10.6 集成了 MQX Task Aware 调试器 , 支持对 MQX 和 MQX Lite 的调试
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
There are two situations happened when using CodeWarrior V10.3 for 84xxx. 1. It is failure when you try to add 56F84763 bean in 56F84789 project. 2. Try to open an example project “Init_eFlexPWM” but not successful in CW V10.3. This file illustrates how to solve these two use cases.
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
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
Hoping you had excellent and happy holydays, I must announce a brand new toy that has arrived to enbrighten 2013 developing! It is the NEW CodeWarrior Development Studio for Microcontrollers v10.3, Evaluation Edition , which will be available for you in the CodeWarrior Page and right in this post since TODAY! Take a few seconds to catch up with the new software! The Release Note will lead you through the new stuff Freescale has got for us! In there you will find the major new features, such as:   NEW Supported Architectures (for the first time!) Kinetis L Series and S12Z Simplified C/C++ and Debug perspectives focus on basic tasks needed for embedded development Commander view gives you one 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 L and K Series families Eclipse IDE 3.7.1 (Indigo) Aaaaand many more important details!   When you feel ready to try it out, there is another important detail for you to consider. There are 2 ways of downloading the Software, through the Online Installer or  the Offline Installer.   The Online installer assumes your computer has internet access. During the installation process the core tools will be installed and you will be asked to select the Freescale architecture support you want installed. The installer will automatically access the internet, download the necessary archives and install them in your CodeWarrior directory. Click here to start the download. This archive size is 646 MB.   The Offline installer assumes your computer does NOT have internet access. All data needed by the installer will be downloaded now and no other download will be performed. Click here to start the download. The total archive size is 1.23 GB Note: The Evaluation Edition license is automatically installed with your product and you do not need to register it. This license allows you to develop projects as Professional Edition within the 30-day evaluation period. After 30 days, the license works as Special Edition license (free permanent, but feature limited) which supports unlimited assembly code; up to 64KB of C code for ColdFire+, V1 ColdFire, DSC, Kinetis L Series, RS08, S08 derivatives; up to 128KB of C code for Kinetis K Series and V2-V4 ColdFire derivatives; and up to 512KB for Qorivva and PX derivatives.   Happy developing this 2013 CodeWarrior users!!!
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
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
If I talk to you about Luis Garabito, Mexican engineer who works at the Freescale's CodeWarrior labs from a very close approach, you might not know what the main point is.   He has recently made a post regarding MQX applications and how is vital for us to understand how the environment in which we are working on works, specially if we're developing for the first time in it.   He also made a really useful application note (attached within the document) for us to get closer and deeper into the development on Freescale MQXLite RTOS , providing the knowledge necessary to start developing in an easy, quick way. So, I personally thank Luis very much and encourage all of you to check out the attached preview of how awesome can a RTOS turn out when used into our particular design.   This Application Note is based on the Kinetis KL2 USB MCUs Family, specifically, the KL25Z128VLK4 micro controller. The Freescale Freedom development platform board (FRDM–KL25Z) is also used for this example.   Start it up already, and follow DebuggerGuys for more cool info!
View full article