Hi Jiri,
I am sorry to tell you that the ERROR is still there,as your said my operation shown below:
My configure as below:
1#:

2#:

3#:

4#

5#

then my debug result shown as below:
GNU gdb (GDB) 7.8.2
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-mingw32 --target=powerpc-eabivle".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
monitor preserve1 0
monitor selectcore 0
Warning: the current language does not match this frame.
continue
Continuing.
Note: automatically using hardware breakpoints for read-only addresses.
Temporary breakpoint 1, main () at ../src/main.c:199
199 {
No breakpoint number 2.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000000 in RCHW ()
But when i download it the MPC5643L not run!
If i only use the *.elf file from NXP to download into the board ,the motor run normlly!but use the *.elf from my import project it not run!