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.

RAM Debug configuration works, but Flash Debug not (IAR)

Status
Not open for further replies.

kender

Advanced Member level 4
Joined
Jun 19, 2005
Messages
1,422
Helped
138
Reputation
276
Reaction score
39
Trophy points
1,328
Location
Stanford, SF Bay Peninsula, California, Earth, Sol
Activity points
9,968
re: RAM Debug configuration works, but Flash Debug configuration gives error message (IAR Embedded Workbench, LPC2368)

Colleagues,

I have a project that works just fine in RAM Debug configuration with J-Link. I’ve switched to Flash Debug configuration, recompiled successfully. When I initiate the debug session, I get errors:

Fri Dec 04 14:21:08 2009: Error in C:\Program Files\IAR Systems\Embedded Workbench 5.0 Kickstart\ARM\config\flashloader\NXP\FlashNXPLPC512k2.mac at line 13, col 20: Operation error.
Fri Dec 04 14:21:08 2009: Error while calling macro execUserFlashInit
Fri Dec 04 14:21:12 2009: Fatal error: Write memory error @ address 0xE01FC10C, word access: Adaptive clocking timeout.
JTAG Timeout during adaptive clocking: RTCK did not respond.
Could you provide any insight why this is happening and what should I try in order to fix this?

Thanks,
- Nick
 

bobcat1

Advanced Member level 4
Joined
Jul 10, 2002
Messages
1,288
Helped
99
Reputation
198
Reaction score
34
Trophy points
1,328
Activity points
8,545
Hi


In the debugger setup menu change ADAPTIVE clocking to AUTO

OPTION->JLINK->JTAG SPEED ->AUTO

Also change the linker file to FLASH


All the best

Bobi

The microcontroller specialist
 

vijay s

Full Member level 3
Joined
Jun 14, 2008
Messages
159
Helped
27
Reputation
54
Reaction score
9
Trophy points
1,298
Location
Coimbatore, India
Activity points
2,152
Hi folks..
can anybody give me an idea how to write interrupt Routine in IAR for ARM... i have used KEIL where start-uo code inits Interrupt vector and its easy to write interrupt function..

please get me an idea or send me some code with interrupts to svijayelex@gmail.com
 

kender

Advanced Member level 4
Joined
Jun 19, 2005
Messages
1,422
Helped
138
Reputation
276
Reaction score
39
Trophy points
1,328
Location
Stanford, SF Bay Peninsula, California, Earth, Sol
Activity points
9,968
Hi Bobi,

bobcat1 said:
In the debugger setup menu change ADAPTIVE clocking to AUTO
OPTION->JLINK->JTAG SPEED ->AUTO
Also change the linker file to FLASH
Changed the JTAG speed to Auto, and I no longer get the JTAG timeout error. But I'm still getting the write memory error:
Code:
Sat Dec 05 12:41:59 2009: Fatal error: Write memory error @ address 0xE01FC10C, word access: Memory access timeout.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top