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:
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
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
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
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
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