CW10.2 broke my bootloader

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

CW10.2 broke my bootloader

Jump to solution
1,430 Views
mittymcdoogle
Contributor III

I have been reprogramming my HCS08 microcontrollers through a serial bootloader without any problems for quite some time. However, I recently tried to migrate from CW 5.9 to CW 10.2. When I program one of my uCs in debug mode through CW 10.2 using a PE micro JTAG adapter, the bootloader on the uC appears to get corrupted. When I try to run the serial bootloader executable on my PC, I never receive an ACK from my uC.

 

Is there a change I need to make in CW 10.2 to make it compatible with my bootloader?

 

Thanks,

Mitty

Labels (1)
0 Kudos
1 Solution
1,008 Views
mittymcdoogle
Contributor III

The assembly boot loader source code did not define HISPEED. So, my device was running at 9600 baud instead of 115200 baud. 'HISPEED' was defined in the classic project file, but I guess this information wasn't translated through the classic importer.

View solution in original post

12 Replies
1,008 Views
mittymcdoogle
Contributor III

Hi Pascal,

I have an MC9S08AW32 microcontroller. AN2295SW does have a project for this uC, but like you said it was based on MCU V6.3. If I import a project from AN2295SW or my personal project into the new CW, it fails to work. It downloads onto my board just fine, but the master serial bootloader application always times out. I was hoping there might be a version of the bootloader project that was created in the latest MCU version. Clearly something is not importing correctly from the old projects into the new CW, but I have no idea what that something is.

0 Kudos
1,008 Views
trytohelp
NXP Employee
NXP Employee

Hi Mittty,

Opening the \an2295sw\src\S08AW\hc08sprg-s08aw.mcp project under MCU V6.3, I can see there are 12 targets.

A target for SCI1 and SCI2 for each derivatives: S08AW60, S08AW60 HiSpeed, S08AW48, S08AW32, S08AW16 and S08AW8.

This project is for me too complex to be imported under Eclipse with the importer feature.

I've contacted the Technical writers to get their feedback too.

For me, I think it's better to use the classic version to generate them.

On my side under MCU V6.3, I've generated the 2 targets (SCI1 & SCI2) for AW60.

Attached you will find the generated files (.abs.s19 files and other linker output files).

Hope this will help.


Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,008 Views
mittymcdoogle
Contributor III

Hi Pascal,

I've followed the same procedure and the generated files do not seem to work. Please let me know what the technical writers have to say. Thank you for your help!

Mitty

0 Kudos
1,008 Views
trytohelp
NXP Employee
NXP Employee

Hi Mitty,

I don't get info at this time.

As we exchanged lot of message I prefer to keep this post in this place.

Now I've created a new one under 8-bit Microcontrollers box which is:

    Need Bootloader for MC9S08AW32

Please can you follow this new post ?

You can add other info too.

Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,009 Views
mittymcdoogle
Contributor III

The assembly boot loader source code did not define HISPEED. So, my device was running at 9600 baud instead of 115200 baud. 'HISPEED' was defined in the classic project file, but I guess this information wasn't translated through the classic importer.

1,008 Views
trytohelp
NXP Employee
NXP Employee

Hi Mitty,

Difficult to say.

Converting a classic project to Eclipse could be more and lees difficult.

The MCU V10.2 is an old version released in 2012.

This version included a classic tool importer.

     Did you used it to convert your project ?

This feature is documented under the installation:

     CodeWarrior Project Importer Quick Start.pdf

What was the classic version used ?

CW for MCU V6.3 was the last version.

Below another doc explaining how to convert a classic project to Eclipse.

         AN4727, Import project from CW classic to CW MCU v10 4 CodeWarrior for Microcontrollers v10.4

                        http://cache.freescale.com/files/soft_dev_tools/doc/app_note/AN4727.pdf


Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,008 Views
mittymcdoogle
Contributor III

Hi Pascal,

Yes, I used the classic tool importer to convert my project. The classic IDE I was using is CW 5.9.

0 Kudos
1,008 Views
trytohelp
NXP Employee
NXP Employee

Hi Mitty,

The prm file is managing the memory allocation.

May be the importer doesn't care about your prm file.

The importer was stopped on MCU V10.2.

Why ?

Most of the time the importer was running for sample project but not for complex one.

If the importer is not working we recommend you to import manually your project using the process explained in the AN4727.

Regarding the old version.

V5.9 is not the tool version but the IDE version which is a tool as the compiler, linker or debugger.

The IDE V5.9 was used in several CodeWarrior development tools.

How to get the tool release:

  Under CodeWarrior IDE (classic)

                Start the IDE and click on Help | About Freescale CodeWarrior.

                Click on Installed Products 

                Provide us all info displayed.

                Or you can save them in a txt file.

If the Installed Products is not available for older version you should find information in the welcome.txt under the installation folder.

The last Classic version for HC08 is CW for MCU V6.3

To avoid problem, since the CW for MCU V10.3, the importer feature was removed.

It was too complex to be managed as the CW for MCU V10.x is supporting too different architectures (HC08, Coldfire, MPC56xx).

In addition to AN4727, if your application is using PEx, you can import the PEx too.

What 's about project using Processor Expert ?

By default on MCU V10.6.4 (or previous version) you must create a project including Processor Expert.

When the project is created to import PEx settings you just need to copy the .pe file to new MCU project and replace the .pe file by the old one.

Now when the MCU project is re-opened, the classic PEx settings will be used.

Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,008 Views
mittymcdoogle
Contributor III

Can you direct me to some code or a CW project that will let me reload the bootloader onto my uC?

Here is the installed product info:

Installed Products:

  CodeWarrior Development Studio for Microcontrollers V6.0 Release, build 7134-30May07.

IDE Version: 5.9.0 Build 2330

Plugins: 74

================================================================================================

ASINTPPC.dll             5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:22 PM         628K     

================================================================================================

================================================================================================

CmdIDE.exe               5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:50 PM         41K      

================================================================================================

================================================================================================

IDE.exe                   5.9.0 Build 2330         5.9.0.2330               5.9.0.2330               5/18/2007, 3:17 AM       10.11M   

================================================================================================

================================================================================================

IDENewDialog.dll         5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:22 PM         201K     

================================================================================================

================================================================================================

IDE_MFC60cw.dll           6.00.8665.0               6.0.8665.0               6.0.4.0                   4/1/2007, 4:13 PM         1.59M    

================================================================================================

================================================================================================

IDE_MSL_DLL90_x86.dll     5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:08 PM         296K     

================================================================================================

================================================================================================

InstallHelperKeys.exe     No Version Info           0.0.0.0                   0.0.0.0                   3/22/2005, 11:01 AM       76K      

================================================================================================

================================================================================================

lmgr8c.dll               No Version Info           0.0.0.0                   0.0.0.0                   2/15/2004, 5:02 PM       832K     

================================================================================================

================================================================================================

MWCore5_0.dll             5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:14 PM         236K     

================================================================================================

================================================================================================

MWRADUtils.dll           5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:22 PM         260K     

================================================================================================

================================================================================================

Mwregsvr.exe             5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:27 PM         36K      

================================================================================================

================================================================================================

MWRegSvrWinApp.exe       5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:27 PM         36K      

================================================================================================

================================================================================================

PluginLib.dll             5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:09 PM         120K     

================================================================================================

================================================================================================

PluginLib2.dll           5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:09 PM         120K     

================================================================================================

================================================================================================

PluginLib3.dll           5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:09 PM         120K     

================================================================================================

================================================================================================

PluginLib4.dll           5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:09 PM         84K      

================================================================================================

================================================================================================

PluginLib5.dll           5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:10 PM         84K      

================================================================================================

================================================================================================

PluginLib6.dll           5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:11 PM         84K      

================================================================================================

================================================================================================

SHW32.DLL                                         4.0.1.0                   4.0.1.0                   2/10/2000, 5:15 PM       110K     

================================================================================================

================================================================================================

sunvmhub.dll             No Version Info           0.0.0.0                   0.0.0.0                   1/29/2002, 2:20 PM       49K      

================================================================================================

================================================================================================

tcl84t.dll               8.4.12                   8.4.2.12                 8.4.2.12                 9/25/2006, 2:22 PM       576K     

================================================================================================

================================================================================================

xerces-2_2_0.dll         2, 2, 0                   2.2.0.0                   2.2.0.0                   4/1/2007, 4:27 PM         2.14M    

================================================================================================

================================================================================================

Bin\plugins\com

================================================================================================

  TipOfTheDay.dll           1,0,0,7134               1.0.0.7134               1.0.0.7134               5/15/2007, 12:44 AM       64K      

  PE_prelink.dll           1, 0, 0, 4               1.0.0.4                   1.0.0.4                   8/8/2005, 1:34 PM         95K      

  PE_Plugin.dll             3.89.0.7234               3.89.0.7234               3.89.0.7234               4/27/2007, 11:49 AM       6.84M    

  PE_options.dll           1, 0, 0, 13               1.0.0.13                 1.0.0.13                 8/8/2005, 1:33 PM         32K      

  PackAndGo.dll             1,0,0,7134               1.0.0.7134               1.0.0.7134               5/15/2007, 12:46 AM       344K     

  MWActivate.dll           5.9.0.2289               5.9.0.2289               5.9.0.2289               4/1/2007, 4:51 PM         600K     

  HC(S)08Wizard.dll         5.2.7134                 5.2.0.7134               5.2.0.7134               5/15/2007, 12:43 AM       928K     

  DebugRegisterMgr.dll     5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 5:04 PM         92K      

  DebugDatabase.dll         5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 5:04 PM         272K     

  CPPCodeCompletion.dll     5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:50 PM         808K     

================================================================================================

Bin\plugins

================================================================================================

================================================================================================

Bin\plugins\compiler

================================================================================================

  PCLintCompiler.dll       1.5                       1.5.0.5                   1.5.0.5                   9/4/2003, 4:58 PM         80K      

  OsekCompiler.dll         2, 1, 2, 0               2.1.2.0                   2.1.2.0                   9/12/2006, 2:00 PM       75K      

  MCFCCompiler.dll         0 build 0                 5.0.0.0                   5.0.0.0                   5/12/2007, 4:29 PM       2.01M    

  hw_rs08_importer.dll     5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:45 AM       87K      

  hw_rs08_compiler.dll     5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:45 AM       87K      

  hw_rs08_assembler.dll     5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:45 AM       87K      

  hw_hc08_assembler.dll     5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:45 AM       87K      

  hw_hc08_importer.dll     5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:45 AM       87K      

  hw_hc08_compiler.dll     5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:45 AM       87K      

  asm_mcf_elf.dll           7.0.0 build 1             7.0.0.1                   7.0.0.1                   5/12/2007, 4:32 PM       257K     

  ELFImporter.dll           1.0 Build 0005           1.0.0.5                   1.0.0.5                   5/12/2007, 4:32 PM       39K      

================================================================================================

Bin\plugins\Editor

================================================================================================

  RS08_Coloring             No Version Info           0.0.0.0                   0.0.0.0                   4/16/2007, 4:04 PM       78K      

  MWE_Common_Coloring       No Version Info           0.0.0.0                   0.0.0.0                   12/29/2004, 8:23 PM       29K      

  HC08_Coloring             No Version Info           0.0.0.0                   0.0.0.0                   4/16/2007, 4:04 PM       39K      

================================================================================================

Bin\plugins\linker

================================================================================================

  hw_rs08_linker.dll       5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:45 AM       92K      

  hw_rs08_libmaker.dll     5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:45 AM       92K      

  hw_hc08_linker.dll       5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:45 AM       92K      

  hw_hc08_libmaker.dll     5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:45 AM       92K      

  ExternalBuildLinker.dll   5.9.0.2289               5.9.0.2289               5.9.0.2289               4/1/2007, 5:17 PM         80K      

  BatchRunnerPreLinker.dll 1.0.0 build 0002         1.0.0.2                   1.0.0.2                   7/9/2004, 12:01 PM       42K      

  BatchRunnerPostLinker.dll 2.0.0 Build 0006         2.0.0.6                   2.0.0.6                   7/9/2004, 12:01 PM       40K      

  MCFLinker.dll             6.0 build 070512         5.0.0.29002               5.0.0.29002               5/12/2007, 4:29 PM       368K     

  PCLintLinker.dll         1.5                       1.5.0.5                   1.5.0.5                   9/4/2003, 4:58 PM         84K      

================================================================================================

Bin\plugins\preference_panel

================================================================================================

  hw_hc08_assembler_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  hw_hc08_burner_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  hw_hc08_compiler_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  hw_hc08_importer_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  hw_hc08_libmaker_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  hw_hc08_linker_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  hw_rs08_assembler_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  hw_rs08_burner_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  hw_rs08_compiler_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  hw_rs08_importer_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  hw_rs08_libmaker_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  hw_rs08_linker_panel.dll 5.0.14.7134               5.0.14.7134               5.0.14.7134               5/15/2007, 12:46 AM       89K      

  OsekPanel.dll             2, 1, 2, 0               2.1.2.0                   2.1.2.0                   8/29/2006, 6:11 PM       70K      

  PAssemblerCF.dll         5, 0, 0, 1               5.0.0.1                   5.0.0.1                   5/12/2007, 4:32 PM       36K      

  PBackEndCF.dll           0 build 0                 5.0.0.0                   5.0.0.0                   5/12/2007, 4:32 PM       37K      

  PBatchRunnerPostLinker.dll 2.0.0 Build 0004         2.0.0.4                   2.0.0.4                   9/11/2003, 9:31 PM       39K      

  PBatchRunnerPreLinker.dll 1.0.0 build 0003         1.0.0.3                   1.0.0.3                   9/11/2003, 9:31 PM       29K      

  PCFGlobalOptimizer.dll   5.0.0.0                   3.0.3.0                   3.0.3.0                   5/12/2007, 4:32 PM       33K      

  PCLintOptions.dll         1.5                       1.5.0.5                   1.5.0.5                   9/4/2003, 4:58 PM         41K      

  PCLintSettings.dll       1.5                       1.5.0.5                   1.5.0.5                   9/4/2003, 4:58 PM         82K      

  PDebugx86Except.dll       5.8 Engineering Build     5.8.0.0                   5.8.0.0                   4/1/2007, 5:19 PM         64K      

  PDisassemblerELF.dll     1.2.0 Build 3             1.2.0.3                   1.2.0.3                   5/12/2007, 4:32 PM       45K      

  PExternalBuild.dll       1.0.1.0                   1.0.1.0                   1.0.1.0                   4/1/2007, 5:17 PM         64K      

  PFrontEndC.dll           5.0 Engineering Build     5.0.0.0                   5.0.0.0                   5/12/2007, 4:32 PM       68K      

  PLinkerCF.dll             6.0 build 070512         5.0.0.29002               5.0.0.29002               5/12/2007, 4:32 PM       49K      

  pMWCVS.dll               1.3.0.2289               1.3.0.2289               1.3.0.2289               4/1/2007, 5:18 PM         64K      

  pmwSourceSafe.dll         5.5.1.40704               5.5.1.40704               5.5.1.40704               4/13/2004, 3:47 PM       29K      

  PPreprocessorC.dll       5.0 Engineering Build     5.0.0.0                   5.0.0.0                   5/12/2007, 4:32 PM       72K      

  PProjectCF.dll           6.0 build 070512         5.0.0.29002               5.0.0.29002               5/12/2007, 4:32 PM       30K      

  PWarningC.dll             5.0 Engineering Build     5.0.0.0                   5.0.0.0                   5/12/2007, 4:32 PM       68K      

================================================================================================

Bin\plugins\Support

================================================================================================

  CPlusSourceGen.dll       5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:47 PM         272K     

  MWComBase.dll             5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:20 PM         64K      

  MWComHelpers.DLL         5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:16 PM         460K     

  MWRadModel.dll           5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:23 PM         572K     

================================================================================================

Bin\plugins\version_control

================================================================================================

  mwcvs.dll                 1.3.0.2289               1.3.0.2289               1.3.0.2289               4/1/2007, 5:18 PM         228K     

  mwSourceSafe.dll         1.0.3.716                 1.0.3.716                 1.0.3.716                 4/13/2004, 3:47 PM       137K     

  VCSClearCase.dll         1.1.2.1999               1.1.2.1999               1.1.2.1999               9/29/2004, 3:28 PM       76K      

================================================================================================

Bin\resource

================================================================================================

  CPlusResources.dll       5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:45 PM         24K      

  ExternalBuildResources.dll 5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 5:17 PM         6K       

  IDEAuxiliaryResources.dll 5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:15 PM         44K      

  IDEResources.dll         5.9.0 Build 2289         5.9.0.2289               5.9.0.2289               4/1/2007, 4:15 PM         52K      

0 Kudos
1,008 Views
trytohelp
NXP Employee
NXP Employee

Hi,

You used CW for MCU V6.0.

The last version was CW for MCU V6.3.

Is it the cause of the problem  ?

    I don't know but the importer was tested with last classic development tool so with MCU V6.3.

It's better to use the AN4727 to import a classic project.

Regarding the bootloader.

This is may be more for hardware colleagues.

Now I've found an AN for bootloader.

Perform a search for AN2295 to access the pdf and software associated.

Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,008 Views
mittymcdoogle
Contributor III

I'm able to find software for Kinetis microcontrollers, but not for my HCS08. Could you direct me to where I can find an example CW project for loading the bootloader?

0 Kudos
1,008 Views
trytohelp
NXP Employee
NXP Employee

Hi,

What is the device used ?

In the AN2295SW there are some projects based on MCU V6.3.

Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos