Hi Guys,
Why I import the Dual Motor Project for MPC5643L,buthas the error, when i dubg it .shown as below:
I don't know how to solve it ?The C-Code can not be download into the MPC5643L.
The Attachment is the Project
Original Attachment has been moved to: Test_9.zip
Hi,
I tried to run attached project - and I'm able normally debug it. But I'm using AMMCLIB v1.1.9 - which is the only version supported by S32DS for Power v1.2. In your project is used AMMCLIB v1.1.8 - this may cause your debug error. Here is output from my debug session:
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:198
198 {
No breakpoint number 2.
In attachment is your project configured for AMMCLIB v1.1.9
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!
Hi,
I find out that the example project is not updated for S32DS v1.2 - there is difference in the linker file between version 1.1 (on that version is the project tested) and the 1.2 version. You can fix it by updating linker files. Please replace liker files in [your_workspace_folder]\MTRCKTDPS5643L_S32DS\Project_Settings\Linker_Files\ by attached files.
Jiri
Hi Jiri,
About one week ago,the C-code can be download,but now the Error come out
Hi Jiri,:smileysad:,the question make me confused more than one week .:smileysad:
Hi jiri,
I replace the files that 56xx_flash.ld and 56xx_ram.ld,but the Error still there.
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:198
198 {
No breakpoint number 2.
Well - from your console log - I don't see any error. Program reach break point at the beginning of main function and debugger is waiting for action. Can you share screenshot of S32DS with error state? - in case that you are still have debug error.
Jiri