How to generate Bootable code in FLASH using CW10.1 and Processor Expert?

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

How to generate Bootable code in FLASH using CW10.1 and Processor Expert?

923 Views
FirmEE
Contributor II

Hello All,

I'm using the K60 part and have a project created in CW10.1 using Processor Expert.  I can

load and execute the program from internal RAM.  Whwn I change the debugger to

use the internal FLASH version, the code still loads into RAM, 0x1FFFXXXX.

 

How do I get CW to generate code that will load into the FLASH?

0 Kudos
1 Reply

628 Views
ProcessorExpert
Senior Contributor III

Hello

 

For changing debug type of code memory to Flash it is necessary to change "Configurations" in project (of INTERNAL_RAM to INTERNAL_FLASH).


Steps for changing the configurations:
  1. Right click on "INTERNAL_FLASH"  in “Configuration” folder tree  in project.
  2. In pop-up menu select the "Select configuration as active".
  3. Right click on "ProcessorExpert.pe" folder tree in project and in pop-up menu select "Build configurations" -> "Set active" -> "XXX_INTERNAL_FLASH". This action selects active CPU from available “CPUs” in project tree configured to run code from FLASH memory.
  4. Generate Processor Expert code.
  5. Build project (Click on "Project" in Eclipse menu -> click on "Build project").
  6. Click on "Run" in eclipse menu and select "Debug Configurations…" -> In window click on "CodeWarrior Download" in tree -> select project configuration "XXXX_INTENAL_FLASH_YYYY" -> click on "Debug" button.
  7. Now it’s possible to debug your code from FLASH memory.

 

Best Regards,
Jiri Rezler
Processor Support Team

0 Kudos