Derek Fritz

Migrating an old bootloader over to the MC9S12XS128

Discussion created by Derek Fritz on Nov 24, 2009
Latest reply on Nov 26, 2009 by William Norris

I have an old bootloader (very old) for the MC9S12DB128 MCU that I'm trying to adapt for use with the MC9S12XS128 MCU.

 

This bootloader is based on application note AN2153 ("Serial Bootloader for Reprogramming the MC9S12DP256 FLASH Memory").  It is a pretty straightforward bootloader with some additional features added to the core code as specified by AN2153.

 

At this point I'm simply trying to compile it in a new project, and I'm receiving 5 of the following errors:

 

Link Error   : L1100: Segments .absSeg222 (0x0) and .absSeg292 (0x0) overlap
Link Error   : L1100: Segments .absSeg292 (0x0) and .absSeg294 (0x0) overlap
Link Error   : L1100: Segments .absSeg294 (0x0) and .absSeg296 (0x0) overlap
Link Error   : L1100: Segments .absSeg296 (0x0) and .absSeg298 (0x0) overlap

 

Any idea on what is causing this?  These segments are addressed from either 0x0 to 0x0, or 0x0 to 0x1 (type N/I).

 

My other questions are:

 

1.  Is this the best way to proceed in terms of creating a bootloader for the MC9S12XS128?  Are there any newer bootloader application notes that relate to this MCU family? (I looked but was unable to find any)

 

2.  Does anyone have any additional advice for porting this bootloader over to the MC9S12XS128?  Any potential trip-ups, memory map issues, instruction set mismatches, etc.? 

 

Any help would be greatly appreciated.

Outcomes