element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Freedom development platform
  • Products
  • Dev Tools
  • Freedom development platform
  • More
  • Cancel
Freedom development platform
Documents Processor Expert Trick & Tips: Switching Processor Package - Simplified in MCU10.4
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Freedom development platform to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: FreescaleTools_and_Software
  • Date Created: 4 Jul 2013 2:40 PM Date Created
  • Last Updated Last Updated: 8 Oct 2021 5:33 AM
  • Views 726 views
  • Likes 0 likes
  • Comments 0 comments
Related
Recommended

Processor Expert Trick & Tips: Switching Processor Package - Simplified in MCU10.4

This tutorial was extracted from Erich Styger blog http://mcuoneclipse.wordpress.com with his agreement.

imageimage

 

When I create a new project for the KL05Z with Processor Expert, then it shows up as 48 pin LQFP package in the project:

 

48pin LQFP Package in Components View

48pin LQFP Package in Components View

 

 

However, when I look at my board, it has a KL05Z32 in a LQFP package with 32 pins:

 

FRDM-KL05Z Board

FRDM-KL05Z Board

 

 

 

Looking at the Processor View, it shows me the package as with 48 pins too:

 

  48pin LQFP Package in Processor View  48pin LQFP Package in Processor View

   

   

So how can I change things so Processor Expert is using a different package?

 

Note: I’m using here the CodeWarrior for MCU10.3 release from December 2013. See the note at the end if you are using a different version of CodeWarrior.

 

Why do I care about the package? In many cases, different packages contain the same silicon (die), but depending on the package some pins are not bonded to the outside. So it makes sense to select the proper package, so Processor Expert knows what pins and registers are available.

 

The first place to check if I can switch the package would be in the CPU component properties, but in MCU10.3 I only can check the FLASH size variant (16 KByte or 32 KByte), but not the package:

 

  CPU Type in CPU Properties 
CPU Type in CPU Properties

 

  

The next place would be the list of supported CPUs in the Components Library view:

 

  KL05Z32 in Components Library View 
KL05Z32 in Components Library View

 

 

The trick here is: that tooltip actually does not tell everything: there *are* different packages supported beside of the one shown. And here is how to get it:

I double click on the CPU component to add it to my project. This will open a dialog where I can select the package supported, and here it lists all the packages:

 

  Add Processor Component Wizard 
Add Processor Component Wizard

 

  

Pressing next, and it offers me to select the compiler:

  

  Selecting Compiler 
Selecting Compiler

 

  

Now here I need to be careful: for the Kinetis-L family, only GNU gcc is supported. So I better select GNU C Compiler here. But if I screwed up, I can change it in the CPU component properties under the ‘Build options’ tab:

 

  Changing Compiler in CPU Properties 
Changing Compiler in CPU Properties

 

 

Now I have added a KL05Z in 32-pin LQFP package to my project:

 

  KL05Z with 32pin LQFP Package 
KL05Z with 32pin LQFP Package

 

 

The other CPU package/variant is still in the project, but disabled. If I want, I can switch between the packaging variants. But usually I remove the ones I’m not using:

 

  Removing Component from Project 
Removing Component from Project

 

 

I do the same for the orphaned configuration:

 

  Delete Configuration 
Delete Configuration

 

 

And if I rename the remaining configuration back to FLASH, I have it nice and clean:

 

Cleaned up Project

Cleaned up Project

 

 

And a last look at the picture in the Processor View shows me that I have now the 32 pin package :-) :

 

  KL05Z with 32 pins in Processor View 
KL05Z with 32 pins in Processor View
 

 

Summary

 

Changing the processor package is important as not every package has all the registers/ports mapped to the outside world. Processor Expert creates you a project with maybe a widely used package, and it is easy to change the package type later in the project (if I know how to do it :-) . Changing or switching packages is important as well if I develop a project which has to be used with different packaging variants.

 

 

Update

 

While writing this article, I had a sneak preview of the upcoming update of MCU10.3. In that update things are changed a lbit to make things easier. For example, the tooltip in the Components Library view shows now all supported packages:

 

Tooltip showing all packages

Tooltip showing all packages

 

 

And I can switch the CPU package in the CPU properties directly:

 

  Switching Packages in the CPU Type 
Switching Packages in the CPU Type

     

  

Update Codewarrior for MCU v10.4

 

I continue to uncover new things in CodeWarrior in MCU10.4 :-) .

Although that’s not something I need to do on a daily base, this process is simplified in the new version 10.4 :-)

 

  Select Package 
Select Package
   

   

 

As a bonus, the Processor View has now a ‘Generate Code’ button too :-) .

 

The ‘Processor’ view has now a button ‘Select Package’ where I can switch the package:

 

:idea: The Processor view is available from the menu Window > Show View > Other > Processor Expert > Processor.

 

  Available Packages 
Available Packages
 

 

This then changes me current package to the new one.

Another way is to use the Inspector view on the CPU: here I can change it too:

 

Selecting CPU Type in Inspector

Selecting CPU Type in Inspector

 

 

Now things are easier and easier to find, and changing the microcontroller package is as easy as it should be :-) .

 

Happy Selecting :-)

  • compiler
  • Processor
  • expert
  • freescale
  • package
  • kinetis
  • codewarrior
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube