EmbeddedRelated.com
Forums

Smart Card REader developed on HCS12 (SNAG)

Started by airam_alex December 28, 2005
Hi,
We are developing smart card reader using MC9S12A256B
controller. We are having the source code for the reference design of
the Smart card reader developed on P89C51RD2 Philips 8 bit
controller, when the code is ported to the motorola it is failing in
the Authentication Process (Crypto Error). We are unable to find the
problem as the code is ported without any changes only the required
one like the timer is added. Philips is unwilling to support fully
due to the change in the controller to motorola.

what i would like to know is
What is the difference between the motorola controller and the
Philips reader?
On what basis does the 3pass Authentication Work on MF RC500?
Under What condition does the Crypto Fail?

Motorola Operating Frequency : 24.576MHz (PLL ON)

Philips controller frequency : 22.1184MHz

Thanks in advance

With REgards,
Murga


--- In 68HC12@68HC..., "airam_alex" <murugavelu.t@s...> wrote:

> what i would like to know is
> What is the difference between the motorola controller and the
> Philips reader?
> On what basis does the 3pass Authentication Work on MF RC500?
> Under What condition does the Crypto Fail?

That sounds like a job for... some cardreader mailing list.
OTOH, maybe someone could help you here if you were at least using the
UF32 instead of the D Family of 9S12.


My limited exposure to smart card is enough to warn you that freebees
will be hard to find. At my last company, the smart card code was
audited by a third party and even single bit changes required
re-certification.

rob

airam_alex wrote:

> Hi,
> We are developing smart card reader using MC9S12A256B
> controller. We are having the source code for the reference design of
> the Smart card reader developed on P89C51RD2 Philips 8 bit
> controller, when the code is ported to the motorola it is failing in
> the Authentication Process (Crypto Error). We are unable to find the
> problem as the code is ported without any changes only the required
> one like the timer is added. Philips is unwilling to support fully
> due to the change in the controller to motorola.
>
> what i would like to know is
> What is the difference between the motorola controller and the
> Philips reader?
> On what basis does the 3pass Authentication Work on MF RC500?
> Under What condition does the Crypto Fail?
>
> Motorola Operating Frequency : 24.576MHz (PLL ON)
>
> Philips controller frequency : 22.1184MHz
>
> Thanks in advance
>
> With REgards,
> Murga >
>
> SPONSORED LINKS
> Freescale semiconductor inc
> <http://groups.yahoo.com/gads?t=ms&k=Freescale+semiconductor+inc&w1=Freescale+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+microprocessor&c=4&s6&.sig=K2HGv-zFlv5OYUv_QxIq_Q>
> Microcontrollers
> <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Freescale+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+microprocessor&c=4&s6&.sig=SYHwNJjjGQXRvtt_GybT4g>
> Pic microcontrollers
> <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Freescale+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+microprocessor&c=4&s6&.sig=umVbbnUwsPzEzKKD_pQfUw>
>
> 8051 microprocessor
> <http://groups.yahoo.com/gads?t=ms&k51+microprocessor&w1=Freescale+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w451+microprocessor&c=4&s6&.sig=NO-nSKjHoAlh9XtZ8LB1_A >
> >. >




On Wed, Dec 28, 2005 at 02:57:38PM -0000, Jefferson Smith wrote:
> --- In 68HC12@68HC..., "airam_alex" <murugavelu.t@s...> wrote:
>
> > what i would like to know is
> > What is the difference between the motorola controller and the
> > Philips reader?
> > On what basis does the 3pass Authentication Work on MF RC500?
> > Under What condition does the Crypto Fail?
>
> That sounds like a job for... some cardreader mailing list. OTOH,
> maybe someone could help you here if you were at least using the UF32
> instead of the D Family of 9S12.

I don't intend to sound negative here but to rephrase the original
question, "We ported code from another CPU to an HC12 and it doesn't
work. Am not bothering to mention what tools were used on the original
working version, nor what tools we are using for the non working HC12
version. Am not providing samples of the non working source code. Why
doesn't my code work?"

Guessing the source is in C, I would look closely for sloppy uses of
"char" which are signed in some compilers, unsigned in others. Makes a
big difference when signed values are promoted into a 16 bit field.

Also don't trust definitions of short, int, ... use uint8_t, uint16_t,
int8_t, int16_t, etc, altho it doesn't appear CodeWarrior provides these
definitions which should be found with #include <stdint.h>.

--
David Kelly N4HHE, dkelly@dkel...
========================================================================
Whom computers would destroy, they must first drive mad.