Author Topic: UUencoding question  (Read 5454 times)

Embedded-Systems-Designer

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
UUencoding question
« on: January 23, 2007, 08:49:33 am »
First, I'd like to say that Flash Magic is a great piece of software and incredibly usefull.

I am working on a project with the LPC2134 and I have a couple of questions regarding the UUEncoding protocol used by Flash Magic.  When I attempt to decode a line it looks as though the decoded line doesn't match the expected data.

The first 45 bytes of my hex file are:

0228BE7B FE7A0079 00222202 19DC7F00
7E407D01 7C00124C A7BF5503 024CAB12
4CAE2202 2C57D218 7F02124A F1

During a programming operation, Flash Magic sends the following UUEncoded line:

M`BB^>_YZ`'D`(B("&=Q_`'Y`?0'`$B'QI[]5`P),JQ),KB("+%%?2&'\"$DKQ

My first observation is that the length of the line is 62 bytes and LPC datasheets recommend no more than 61 bytes.  Is this correct?

My second observation is that this line decodes into the following 45 bytes:

0228BE7B FE7A0079 00222202 19DC7F00
7E407D01 C01221F1 A7BF5503 024CAB12
4CAE2202 2C515F48 61FC0849 2B

Am I decoding this incorrectly?  Is this the standard decoding scheme?

Any help you could give would be greatly appreciated.

John

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2165
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: UUencoding question
« Reply #1 on: January 24, 2007, 09:49:07 am »
Are you encountering a bug with Flash Magic? If so what are you trying to do and what is the error message? Is your hex file failing to program and then verify perhaps?

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

Embedded-Systems-Designer

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: UUencoding question
« Reply #2 on: January 25, 2007, 06:07:39 am »
No, I havn't encountered a bug...everything seems to work correctly.  I have built a programmer for our manufacturing department and am trying to emulate the functions of the LPC chips with it so that I can use Flash Magic to write hex files to it.

I want to understand what Flash Magic is doing by sending data that is different than the hex file (for the first 512 bytes at least).  If it is not sending different data, I would like to know how I am misunderstanding this problem.

I am aware of the boot block remap in ISP mode and the visibility of the interrupt vectors starting at location 0.  Does Flash Magic send modified data to manipulate this visibility?

John

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2165
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: UUencoding question
« Reply #3 on: January 26, 2007, 08:59:58 am »
Please generate a debug file and send it to me so I can see the context of the line you are referring to.

  http://forum.flashmagictool.com/index.php?topic=3272.0

Embedded Systems Academy, Inc.
support at esacademy dot com