Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

H-jtag debugging using keil3 on board lpc 2129 got error please solve this..........

Status
Not open for further replies.

vijin

Newbie level 5
Joined
Sep 20, 2010
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,365
LOAD Flash\Blinky.axf INCREMENT
Setup();
^
*** error 34,line 19: undefined identifier
//setup for running
g, main



please solve this error
 

are you able to flash the ELF file onto lpc2129 using the device or you get while loading the executable or during running....

have youmade proper settings in keil to identify the Jtag device?????????
explain clearly what you have done till now and
when, and at what step you get this error........
 
  • Like
Reactions: vijin

    vijin

    Points: 2
    Helpful Answer Positive Rating
hi,
ckshivaram
i am using lpc 2129 board ,HJTAG,KEIL UV3,
i able to flash hex file using h-jtag,Flasher and RDI interface, JLINK but while debugging in keil uv3 i got these errors i e

Load size error(Addr:=0x00000000)
Load size error(Addr:=0x00000004)
Load size error(Addr:=0x00000008)
Load size error(Addr:=0x000000012)
..........................so on
AGDI:memory read failed(Addr:=0x00000032)


please give solution for this errors...........................
 

please check the following setting in the options for target..

debug tab:
1. you have select 2 columns with radio buttons like "Use simulator" and use {a box where you have to select your debugger) ,select " proper debugger by using drop down window.
2. the you have load application at startup and go till main, select the 1st one, and try to select go till main as next option if everything fails....
3. restore debug session settings: se;lect all the boxes.
4. driver DLL: SARM.dll parameter: leave it blank
5. Dialog DLL: TARMP.dll parameter: -pLPC21xx

next select utilities tab and select first option "Use target driver for flash programming" and select your debugger and try

let me know what happens.....
 
hi,
thank you your response to me.........
in debug tab:
1) i have selected only one use(RDI interface driver)
and followed your 2,3,4 steps .......
then also after debugging step i am getting these errors..
please help me to over come these followings...


Load size error. (Addr:=0x00000000)
Load size error. (Addr:=0x00000004)
Load size error. (Addr:=0x00000008)
Load size error. (Addr:=0x0000000C)
Load size error. (Addr:=0x00000010)
Load size error. (Addr:=0x00000014)
Load size error. (Addr:=0x00000018)
Load size error. (Addr:=0x0000001C)
Load size error. (Addr:=0x00000020)
Load size error. (Addr:=0x00000024)
Load size error. (Addr:=0x00000028)
Load size error. (Addr:=0x0000002C)
Load size error. (Addr:=0x00000030)
U $

^
*** error 122: AGDI: memory read failed (0x00000030)
Load "C:\\Documents and Settings\\viji\\Desktop\\EXAMPLE PROGRAMS\\MCB2100\\Blinky\\Blinky.AXF"

*** Restricted Version with 32768 Byte Code Size Limit
*** Currently used: 1616 Bytes (4%)

Load size error. (Addr:=0x00000000)
Load size error. (Addr:=0x00000004)
Load size error. (Addr:=0x00000008)
Load size error. (Addr:=0x0000000C)
Load size error. (Addr:=0x00000010)
Load size error. (Addr:=0x00000014)
Load size error. (Addr:=0x00000018)
Load size error. (Addr:=0x0000001C)
Load size error. (Addr:=0x00000020)
Load size error. (Addr:=0x00000024)
Load size error. (Addr:=0x00000028)
Load size error. (Addr:=0x0000002C)
Load size error. (Addr:=0x00000030)
U $

^
*** error 122: AGDI: memory read failed (0x00000030)
Include "C:\\Documents and Settings\\viji\\Desktop\\EXAMPLE PROGRAMS\\MCB2100\\Blinky\\RAM.ini"
FUNC void Setup (void) {
// <o> Program Entry Point
PC = 0x40000000;
}
LOAD Blinky.axf INCREMENTAL // Download

*** Restricted Version with 32768 Byte Code Size Limit
*** Currently used: 1616 Bytes (4%)

Load size error. (Addr:=0x00000000)
Load size error. (Addr:=0x00000004)
Load size error. (Addr:=0x00000008)
Load size error. (Addr:=0x0000000C)
Load size error. (Addr:=0x00000010)
Load size error. (Addr:=0x00000014)
Load size error. (Addr:=0x00000018)
Load size error. (Addr:=0x0000001C)
Load size error. (Addr:=0x00000020)
Load size error. (Addr:=0x00000024)
Load size error. (Addr:=0x00000028)
Load size error. (Addr:=0x0000002C)
Load size error. (Addr:=0x00000030)
Load size error. (Addr:=0x00000000)
Load size error. (Addr:=0x00000004)
Load size error. (Addr:=0x00000008)
Load size error. (Addr:=0x0000000C)
Load size error. (Addr:=0x00000010)
Load size error. (Addr:=0x00000014)
Load size error. (Addr:=0x00000018)
Load size error. (Addr:=0x0000001C)
Load size error. (Addr:=0x00000020)
Load size error. (Addr:=0x00000024)
Load size error. (Addr:=0x00000028)
Load size error. (Addr:=0x0000002C)
Load size error. (Addr:=0x00000030)
*** error 122, line 5: AGDI: memory read failed (0x00000030)
Setup(); // Setup for Running
Load size error. (Addr:=0x40000000)
Load size error. (Addr:=0x40000004)
Load size error. (Addr:=0x40000008)
Load size error. (Addr:=0x4000000C)
Load size error. (Addr:=0x40000010)
Load size error. (Addr:=0x40000014)
Load size error. (Addr:=0x40000018)
Load size error. (Addr:=0x4000001C)
Load size error. (Addr:=0x40000020)
Load size error. (Addr:=0x40000024)
Load size error. (Addr:=0x40000028)
Load size error. (Addr:=0x4000002C)
Load size error. (Addr:=0x40000030)
^
*** error 122, line 6: AGDI: memory read failed (0x40000030)
g ,main
 

To download program into FLASH, you need to configure H-JTAG and H-Flasher properly.

1 - In H-JTAG, enable Flasher -> Auto download
2 - In H-Flasher, select LPC2129 in the flash list;
3 - In keil, disable the use of flash loader.

Please try again as follows:
1 - Ensure that your program is located in the flash address range.
2 - In H-Jtag, enable the auto download option;
3 - In H-Flasher, select the right chip and don't perform any other operations.
4 - In Keil, please choose download app at startup and uncheck run to main

also try to debug the program in the keil simulator and see if it works or throws the same error while debugging on simulator,..........
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top