EmbeddedRelated.com
Forums

Serial Bootloader for HCS12xDP512

Started by jsbouchard1978 December 2, 2005
Is there something available to replace the serial bootloader that was
available with MC9S12DP256B?

If not, has anyone attempted to modify this serial bootloader created
for the MC9S12DP256B to adapt it to the MC9S12XDP512?

I know that the original code won't work because of the RAM mapping
that is not available on the XGATE series, but there might be a way
around this.


I mean the serial bootloader from Freescale AN2153

--- In 68HC12@68HC..., "jsbouchard1978" <js.bouchard@m...>
wrote:
>
> Is there something available to replace the serial bootloader that
was
> available with MC9S12DP256B?
>
> If not, has anyone attempted to modify this serial bootloader
created
> for the MC9S12DP256B to adapt it to the MC9S12XDP512?
>
> I know that the original code won't work because of the RAM mapping
> that is not available on the XGATE series, but there might be a way
> around this.
>




I have no idea what that bootloader was like, but making a bootloader from
scratch for the 9S12 is pretty simple.
Simply make it resident in FE00-FFFF and make sure to include a pseudovector
reference table above the real one (which is at FFDO) I think. -----Original Message-----
From: 68HC12@68HC... [mailto:68HC12@68HC...] On Behalf Of
jsbouchard1978
Sent: Friday, December 02, 2005 1:54 PM
To: 68HC12@68HC...
Subject: [68HC12] Re: Serial Bootloader for HCS12xDP512

I mean the serial bootloader from Freescale AN2153

--- In 68HC12@68HC..., "jsbouchard1978" <js.bouchard@m...>
wrote:
>
> Is there something available to replace the serial bootloader that
was
> available with MC9S12DP256B?
>
> If not, has anyone attempted to modify this serial bootloader
created
> for the MC9S12DP256B to adapt it to the MC9S12XDP512?
>
> I know that the original code won't work because of the RAM mapping
> that is not available on the XGATE series, but there might be a way
> around this.
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/dN_tlB/TM
--------------------------------~- Yahoo! Groups Links


>but there might be a way
> around this.

I did a quick look. You Change ppage $30 (document page 46) to start
at $E0 and ends at $FF for the erase routine.

I think the major changes are where the start of PPAGEs. The other
issue might that the SrecCVT in bank mode maynot support PPAGEs to
cover upto PPAGE = $FF. Anyway, that is what my experiment tells me.
Hopefully other may have some insights.




My problem is with the RAM address space relocation. the XGATE family doest
not support memory space relocation. So once the Bootloader is moved to RAM,
it is not able to use address space $F000 as RAM instead of address space
$3000.
_____

From: 68HC12@68HC... [mailto:68HC12@68HC...] On Behalf Of
zeta_alpha2002
Sent: December 2, 2005 4:17 PM
To: 68HC12@68HC...
Subject: [68HC12] Re: Serial Bootloader for HCS12xDP512 >but there might be a way
> around this.

I did a quick look. You Change ppage $30 (document page 46) to start
at $E0 and ends at $FF for the erase routine.

I think the major changes are where the start of PPAGEs. The other
issue might that the SrecCVT in bank mode maynot support PPAGEs to
cover upto PPAGE = $FF. Anyway, that is what my experiment tells me.
Hopefully other may have some insights.
SPONSORED LINKS
Freescale
<http://groups.yahoo.com/gads?t=ms&k=Freescale+semiconductor+inc&w1=Freescal
e+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+micr
oprocessor&c=4&s6&.sig=K2HGv-zFlv5OYUv_QxIq_Q> semiconductor inc
Microcontrollers
<http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Freescale+semicondu
ctor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+microprocessor&
c=4&s6&.sig=SYHwNJjjGQXRvtt_GybT4g> Pic
<http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Freescale+semic
onductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+microproces
sor&c=4&s6&.sig=umVbbnUwsPzEzKKD_pQfUw> microcontrollers
8051
<http://groups.yahoo.com/gads?t=ms&k51+microprocessor&w1=Freescale+semico
nductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+microprocess
or&c=4&s6&.sig=NO-nSKjHoAlh9XtZ8LB1_A> microprocessor

_____

> .


_____



>So once the Bootloader is moved to RAM,
> it is not able to use address space $F000 as RAM instead of address
space
> $3000.

Why not use the AN2548/D. I have already fix or ported it for the
S12X. It just uses a small portion in stack to write and erase FLASH.

Right now I am waiting for my GUI guy to fix the uBUG12 from
Technological Arts to support S12X.