Cannot debug board with e500v2 processor on C++ project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot debug board with e500v2 processor on C++ project

379 Views
eliotdudley
Contributor I

Just a heads up so maybe others can save some time.  Brought up CodeWarrior for Power Architecture,  Version: 10.3.3,  Build Id:131024 and attempted to run hello_world example according to the quick start instructions.  Foolishly, I checked c++ instead of c as project type and the system never got to main(). 

 

The problem is already described in the release notes. The workaround is to replace libc++_E500V2.a  with libstdc++_E500V2.a.  Here's some search strings that may lead someone to the answer more quickly:

 

static Metrowerks::console_outputbuf<char> fout(stdout);

fout.pubsetbuf(0, 0);

#if _EWL_WIDE_CHAR

   wchar_t      ungetwc_buffer[__ungetc_buffer_size];

#endif /* _EWL_WIDE_CHAR */

MPCDUARTRead

__read_console

__flush_buffer

 

The good news is that finding the defect was a good exercise in using the debugger.

Labels (1)
0 Kudos
1 Reply

282 Views
yipingwang
NXP TechSupport
NXP TechSupport

Thanks for your information.

Libc++ is incompatible with libc99 due to header differences and run time inits. Libstdc++

meets libc99.

0 Kudos