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

Problem with flashing LPC2294

Hello,

since a few days I'm working with uVision3. The Target-HW is a LPC2294 on a phyCORE HD200-Board, the flashing works with a ULINK-USB-Adapter. Examples like Hello and Blinky are working fine, but now I have problems with the example EasyWeb. Flashing the board with EasyWeb often results in an error-message (see below) but not always!!! Sometimes the flashing works fine! Does anyone have an idea what's going wrong with it?

Error-Message:
In PopUp-Window:
"Error: AM29x800BTx2.FLX"
"Cant't Load Flash Programming Algorithm!"

In Output-Window:
Load "C:\\Programme\\Keil\\ARM\\Boards\\Phytec\\LPC229x\\EasyWEB\\Objects\\easyweb.ELF"
Include "C:\\Programme\\Keil\\ARM\\Boards\\Phytec\\LPC229x\\EasyWEB\\Flash.ini"
/***********************************************************************/
/*  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
Cannot enter Debug Mode
*** function 'Setup', error 125, line 28: AGDI: memory write failed (0xFFE00000)
Can't Write to RAM for Flash Algorithms !
Erase Failed!

Parents
  • Thanks for the answer, but that information doesn't really help me. The problem is, that the error occurs only sometimes. In much cases the flashing works fine. The settings for the Flash Programming Algorithm are the default settings as they described in the HW-Manual:

    Flash Programming Algorithm:
    LPC2000 IAP 256kB Flash (0x00000000 - 0x0003DFFF)
    AM29x800BT (0x80000000 - 0x801FFFFF)
    RAM for Algorithm:
    Start: 0x40000000
    Size: 0x0800


    I can't see any errors in this settings. The problem happens only with Ethernet-Applications (such as EasyWEB), all other Demos are working faultless! Or is it a problem with the settings for the developmentboard HD200? Any ideas?

    Thanks in advance!

Reply
  • Thanks for the answer, but that information doesn't really help me. The problem is, that the error occurs only sometimes. In much cases the flashing works fine. The settings for the Flash Programming Algorithm are the default settings as they described in the HW-Manual:

    Flash Programming Algorithm:
    LPC2000 IAP 256kB Flash (0x00000000 - 0x0003DFFF)
    AM29x800BT (0x80000000 - 0x801FFFFF)
    RAM for Algorithm:
    Start: 0x40000000
    Size: 0x0800


    I can't see any errors in this settings. The problem happens only with Ethernet-Applications (such as EasyWEB), all other Demos are working faultless! Or is it a problem with the settings for the developmentboard HD200? Any ideas?

    Thanks in advance!

Children