We bought an ADuC7020 QuickStart system. GNU Compiler translates C++ programs successfully, but uVision3 hangs when trying to download an executable file into the chip (through Keil ULINK). Whereas C-programs download normally. uVision3 hangs even when downloading such simplest program: struct A { virtual void f()=0; }; struct B : public A { virtual void f(){} }; int main() { B b; A* a = &b; a->f(); return 0; } Thanks. Dr. Tychinsky.
Aha - You're right! The critical bit had gone off the edge of my screen!
This is Peter's email: Yuri, Thanks for your pointer regarding the -lstdc++ linker option, I missed it. I have tried again your code (actually put it into the blinky example) and it loads and runs fine here. The GNU gcc version used here is 3.3.1. Also, high level debugging works as expected. Peter I understood that debugging works. But my English is very bad...
"Peter Holzer wrote, that his uVision allows debuging C++ code" Did he? He said he could load & run it - I didn't see any mention of debugging it.
Peter Holzer wrote, that his uVision allows debuging C++ code. See abowe in this discution thread.
"In uVision3 I set debug options. With these options C-program are debuging, but C++program not." Back to my original question, does uVision support C++ debugging? I thought Keil was a strictly 'C' toolset - not C++. The debugger can always show disassembly, because that is independent of the source language - but it can only give source-level debugging if it understands the source language. I don't think that uVision understands C++...
In uVision3 I set debug options. With these options C-program are debuging, but C++program not. Can I see debug information directly from elf-file?
Does your elf contain debug information?
I downloaded new version of uVision3 (V3.23). Now C++ program downloads into flash, but debuger shows only disassembly, not C++ code. Breikpoints do not work.
http://www.keil.com/update/sw/carm/2.40
Sorry, Reinhard. What version of CARM works with C++? And where in Help About dialog can I see version of CARM? Word CARM is not presented there.
Thanks, Reinhard. Soon i will download updates.
Please download from http://www.keil.com/demo. Reinhard
Yuri, Yes, it is outdated, you should update your software. Peter
Thanks, Peter. But what is the problem? I wrote my toolset version. Maybe it is outdated?
You should update the uVision version to the current release. Please download from http://www.keil.com/demo. Reinhard