Author Topic: How does flash magic write firmware  (Read 4034 times)


  • Jr. Member
  • **
  • Posts: 1
    • View Profile
    • Email
How does flash magic write firmware
« on: August 23, 2007, 01:13:11 am »
Hi All,
    Does any one know How flash magic write firmware to MCU,

    I want to know the detail ?
    I write a program to do firmware writting, but always CRC check no match

    Can any one help me ?

    below are my setps

    I use MCB900, 89LPC921, send file by uart

    1. I set MCU under ISP mode first
    2. Send "U" character to sync serial loader baud rate by my program
    3. Send Clear security byte0, byte1, byte2, byte3 command (intel hex format)
    4. Send Erase Block 0, Block 1, Block 2, (intel hex format)
    5. Sned hex file line by line
    6. over

     When finish I use flash magic to read CRC , but they are no match.

« Last Edit: August 23, 2007, 01:18:01 am by casperhuang »

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: How does flash magic write firmware
« Reply #1 on: August 24, 2007, 09:00:40 am »
If you use Flash Magic to send the hex file does the CRC match?
Does it match for some blocks but not all? Don't forget that the bootloader is included in the CRC calculation for the top most block.

Embedded Systems Academy, Inc.
support at esacademy dot com