This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

uVision3 hangs when downloading C++ executable

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.

Parents
  • I have tried your code with RealView 2.2, loading and running it successfully in the uVision simulator. Since the ELF/DWARF loader is the same for sim and target, there must be something different.

    I failed doing the same with the GNU toolset. The linker always complains about undefined vtable/typeinfo reference(s):

    .\obj\blinky.o(.gnu.linkonce.r._ZTI1A+0x0):
       /cygdrive/c/Keil/ARM/GNU/Examples/Blinky/blinky.cpp:14:
       undefined reference to 'vtable for __cxxabiv1::__class_type_info'
    

    Peter

Reply
  • I have tried your code with RealView 2.2, loading and running it successfully in the uVision simulator. Since the ELF/DWARF loader is the same for sim and target, there must be something different.

    I failed doing the same with the GNU toolset. The linker always complains about undefined vtable/typeinfo reference(s):

    .\obj\blinky.o(.gnu.linkonce.r._ZTI1A+0x0):
       /cygdrive/c/Keil/ARM/GNU/Examples/Blinky/blinky.cpp:14:
       undefined reference to 'vtable for __cxxabiv1::__class_type_info'
    

    Peter

Children