EmbeddedRelated.com
Forums

paged function and S2

Started by bdesyf February 19, 2003
Hello!

I am trying to convert a banked S19 file to a linear S2 format, to
flash my program using DBug12 as a pod. I am using a DP256B.

In my S19 file, the beginning of my paged function is declared like
this:
S211018000CC003216D9DDCC003416D9DD0ACD

As I have been advised, I use SRecCvt to convert my file to a S2
format. My command line is:
SRecCvt -b 16 0x30 32 -m C0000 FFFFF 32 -lp -o %p.s2 %p.s19

The resulting function is:
S2240D8000CC003216D9DDCC003416D9DD0A3B34B7751B98E603876C1E2709EC1E8C00
012778

The function would be supposed to be at PPAGE 1, at the address
0x8000, right? But in fact, after validation, the function is at
PPAGE 6, at the address 0x8000. In the program, when I call this
function (that is supposed to be at PPAGE 01, address 0x8000), the
system does a reset.

I tried to remove the option "-lp" from the command line of SRectCvt
(as I can't see the necessity to use this option) and I receive an
error: "S-Record Data Not In Specified Memory Map".

What am I doing wrong?

Thanks for your time!

Frederic



Frederic,

>In my S19 file, the beginning of my paged function is declared like
>this:
>S211018000CC003216D9DDCC003416D9DD0ACD

This S-Record shows that your 'paged function' is beginning on page $01 (S2
11 01 8000) which is not really a valid page number for the DP256. PPAGE
numbers range from $30 - $3F (16 * 16K = 256K). You will need to change
your linker file to locate the code in the proper PPAGE range. Once you have
that accomplished, the correct SRecCvt command line for converting a banked
to linear S-Record for the DP256 is:

sreccvt -b 16 0x30 32 -o %p.s2 %p.s19

You should not use the -m or -lp option when converting from banked to
linear. I'll have to check the SRecCvt source, you should have gotten an
error using the -b & -m option on the command line.

Regards,
Gordon

wrote:

> Hello!
>
> I am trying to convert a banked S19 file to a linear S2 format, to
> flash my program using DBug12 as a pod. I am using a DP256B.
>
> In my S19 file, the beginning of my paged function is declared like
> this:
> S211018000CC003216D9DDCC003416D9DD0ACD
>
> As I have been advised, I use SRecCvt to convert my file to a S2
> format. My command line is:
> SRecCvt -b 16 0x30 32 -m C0000 FFFFF 32 -lp -o %p.s2 %p.s19
>
> The resulting function is:
> S2240D8000CC003216D9DDCC003416D9DD0A3B34B7751B98E603876C1E2709EC1E8C00
> 012778
>
> The function would be supposed to be at PPAGE 1, at the address
> 0x8000, right? But in fact, after validation, the function is at
> PPAGE 6, at the address 0x8000. In the program, when I call this
> function (that is supposed to be at PPAGE 01, address 0x8000), the
> system does a reset.
>
> I tried to remove the option "-lp" from the command line of SRectCvt
> (as I can't see the necessity to use this option) and I receive an
> error: "S-Record Data Not In Specified Memory Map".
>
> What am I doing wrong?
>
> Thanks for your time!
>
> Frederic > -------------------- >
> ">http://docs.yahoo.com/info/terms/

--
===============================================================
Gordon Doughman Ph: 937-438-6811
Motorola Semiconductor Fax: 937-434-7457
Field Applications Engineer Pager: 800-759-8352 Pin: 1304089
Suite 175
3131 Newmark Drive
Miamisburg, OH 45342

Check out my HC12 book at:
http://www.rtcgroup.com/books/



Hummm. Ok then!

I looked in the documentation of the Imagecraft ICC12 and found
nothing regarding the settings to determine the PPAGE range.

Does anyone have an idea on how this can be done with ICC12?

Thanks again!

Frederic --- In , Gordon Doughman <g.doughman@m...>
wrote:
> Frederic,
>
> >In my S19 file, the beginning of my paged function is declared like
> >this:
> >S211018000CC003216D9DDCC003416D9DD0ACD
>
> This S-Record shows that your 'paged function' is beginning on page
$01 (S2
> 11 01 8000) which is not really a valid page number for the DP256.
PPAGE
> numbers range from $30 - $3F (16 * 16K = 256K). You will need to
change
> your linker file to locate the code in the proper PPAGE range. Once
you have
> that accomplished, the correct SRecCvt command line for converting
a banked
> to linear S-Record for the DP256 is:
>
> sreccvt -b 16 0x30 32 -o %p.s2 %p.s19
>
> You should not use the -m or -lp option when converting from banked
to
> linear. I'll have to check the SRecCvt source, you should have
gotten an
> error using the -b & -m option on the command line.
>
> Regards,
> Gordon
>
> bdesyf@y... wrote:
>
> > Hello!
> >
> > I am trying to convert a banked S19 file to a linear S2 format, to
> > flash my program using DBug12 as a pod. I am using a DP256B.
> >
> > In my S19 file, the beginning of my paged function is declared
like
> > this:
> > S211018000CC003216D9DDCC003416D9DD0ACD
> >
> > As I have been advised, I use SRecCvt to convert my file to a S2
> > format. My command line is:
> > SRecCvt -b 16 0x30 32 -m C0000 FFFFF 32 -lp -o %p.s2 %p.s19
> >
> > The resulting function is:
> >
S2240D8000CC003216D9DDCC003416D9DD0A3B34B7751B98E603876C1E2709EC1E8C00
> > 012778
> >
> > The function would be supposed to be at PPAGE 1, at the address
> > 0x8000, right? But in fact, after validation, the function is at
> > PPAGE 6, at the address 0x8000. In the program, when I call this
> > function (that is supposed to be at PPAGE 01, address 0x8000), the
> > system does a reset.
> >
> > I tried to remove the option "-lp" from the command line of
SRectCvt
> > (as I can't see the necessity to use this option) and I receive an
> > error: "S-Record Data Not In Specified Memory Map".
> >
> > What am I doing wrong?
> >
> > Thanks for your time!
> >
> > Frederic
> >
> >
> > --------------------
> >
> >
> >
> > ">http://docs.yahoo.com/info/terms/
>
> --
> ===============================================================
> Gordon Doughman Ph: 937-438-6811
> Motorola Semiconductor Fax: 937-434-7457
> Field Applications Engineer Pager: 800-759-8352 Pin: 1304089
> Suite 175
> 3131 Newmark Drive
> Miamisburg, OH 45342
>
> Check out my HC12 book at:
> http://www.rtcgroup.com/books/