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

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