Flash Magic Forum

In-System Programming Support => LPC9xx/LPC9xxx => Topic started by: casperhuang on August 23, 2007, 01:13:11 AM

Title: How does flash magic write firmware
Post by: casperhuang 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.

   
Title: Re: How does flash magic write firmware
Post by: Andy Ayre 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.

Andy