Keil Logo Arm Logo

Discussion Forum

error 123: AGDI: invalid operation when using Display command

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Paul Niu
Posted
19-Mar-2012 09:24 GMT
Toolset
ARM
New! error 123: AGDI: invalid operation when using Display command

Hi all,

When I use CooCox ColinkEx and Keil 4.23 to debug STM32F407, it seems that there're problems with AGDI.

When the CPU is set as STM32F407IG / Cortex-M4 FPU:
-----------------------------------
If the CPU is halted, the memory window can not show any address data, it is blank. And I execute the display command "D 0x0, 0x100" in command window gives "error 123: AGDI: invalid operation".

When the CPU is set as Cortex-M4:
-----------------------------------
If the CPU is halted, the memory window works fine. And I execute the display command "D 0x0, 0x100" in command window gives the memory result.

I compared the two target in the blinky.uvproj, I find the problem depends on the FPU2 option in the Cpu tag.
when the Cpu like:

<Cpu>IRAM(0x20000000-0x2001FFFF) IRAM2(0x10000000-0x1000FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) CPUTYPE("Cortex-M4") FPU2</Cpu>


Then the memory window and display command can not work.

when the Cpu like:

<Cpu>IRAM(0x20000000-0x2001FFFF) IRAM2(0x10000000-0x1000FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) CPUTYPE("Cortex-M4")</Cpu>


Both the memory window and display command work fine.

Is there any workaround for this problem ?

Here is a similar problem: http://www.segger2.com/index.php?page=Thread&threadID=977

Read-Only
Author
Joachim Krech
Posted
19-Mar-2012 14:31 GMT
Toolset
ARM
New! RE: error 123: AGDI: invalid operation when using Display command

This looks like a problem with your CoLinkEx driver. Your target processor is a Cortex-M4 with FPU, however the specification of the CoLinkEx reads that it supports Cortex-M0 and Cortex-M3 targets only. I assume that the debugger is not capable of handling the read and write of FPU registers. The failure of the memory display is only a side effect. As long as you do not make use of the FPU, it is safe to omitt the FPU2 option.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.