This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Memory mismatch in Flash downloading

Hi all ,

I am using the Easyweb example program provided in Keil uvision3 for phytec board under c:\Keil\ARM\Boards\Phytec\LPC229x\.

I tried to download the program to the flash memory in the board...the program got donwloaded ...when i run the program i am getting an error as below

Memory mismatch
address: 0x80000000
Value=0x00
Expected =0x18

i would like to know the cause of the error and the any idea to overcome the error and run the program sucessfully...

looking for your help.

t.senthil

Parents
  • Hello all,

    This is the ini file that I am using it to download the program to the onchip flash memory.
    Is there any problem in the ini file?

    t.senthil

    /***********************************************************************/
    /*  This file is part of the ARM Compiler package                      */
    /*  Copyright KEIL ELEKTRONIK GmbH 1992-2004                           */
    /***********************************************************************/
    /*                                                                     */
    /*  FLASH.INI: Flash Initialization File                               */
    /*                                                                     */
    /***********************************************************************/
    
    
    //*** <<< Use Configuration Wizard in Context Menu >>> ***
    
    
    FUNC void Setup (void) {
    
    // <h> External Memory Controller (EMC)
    
    //   <h> Bank Configuration 0 (BCFG0)
    //     <o1.0..3>   IDCY: Idle Cycles <0-15>
    //     <o1.5..9>   WST1: Wait States 1 <0-31>
    //     <o1.11..15> WST2: Wait States 2 <0-31>
    //     <o1.10>     RBLE: Read Byte Lane Enable
    //     <o1.26>     WP: Write Protect
    //     <o1.27>     BM: Burst ROM
    //     <o1.28..29> MW: Memory Width  <0=>  8-bit  <1=> 16-bit
    //                                   <2=> 32-bit  <3=> Reserved
    //   </h>
      _WDWORD(0xFFE00000, 0x20003CE3);   // BCFG0: Flash Bus Configuration
    
      _WDWORD(0xE002C014, 0x0E6001E4);   // PINSEL2: CS0, OE, WE, BLS0..3
                                         //          D0..31, A2..23, JTAG
    
    // </h>
    
    }
    
    
    Setup();                             // Setup for Flash
    

Reply
  • Hello all,

    This is the ini file that I am using it to download the program to the onchip flash memory.
    Is there any problem in the ini file?

    t.senthil

    /***********************************************************************/
    /*  This file is part of the ARM Compiler package                      */
    /*  Copyright KEIL ELEKTRONIK GmbH 1992-2004                           */
    /***********************************************************************/
    /*                                                                     */
    /*  FLASH.INI: Flash Initialization File                               */
    /*                                                                     */
    /***********************************************************************/
    
    
    //*** <<< Use Configuration Wizard in Context Menu >>> ***
    
    
    FUNC void Setup (void) {
    
    // <h> External Memory Controller (EMC)
    
    //   <h> Bank Configuration 0 (BCFG0)
    //     <o1.0..3>   IDCY: Idle Cycles <0-15>
    //     <o1.5..9>   WST1: Wait States 1 <0-31>
    //     <o1.11..15> WST2: Wait States 2 <0-31>
    //     <o1.10>     RBLE: Read Byte Lane Enable
    //     <o1.26>     WP: Write Protect
    //     <o1.27>     BM: Burst ROM
    //     <o1.28..29> MW: Memory Width  <0=>  8-bit  <1=> 16-bit
    //                                   <2=> 32-bit  <3=> Reserved
    //   </h>
      _WDWORD(0xFFE00000, 0x20003CE3);   // BCFG0: Flash Bus Configuration
    
      _WDWORD(0xE002C014, 0x0E6001E4);   // PINSEL2: CS0, OE, WE, BLS0..3
                                         //          D0..31, A2..23, JTAG
    
    // </h>
    
    }
    
    
    Setup();                             // Setup for Flash
    

Children
No data