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!