I import the S32 dual motor project from NXP,but has the Error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I import the S32 dual motor project from NXP,but has the Error

1,556件の閲覧回数
edenli
Contributor V

Hi Guys,

Why I import the Dual Motor Project for MPC5643L,buthas the error, when i dubg it  .shown as below:

189628_189628.pngpastedImage_1.png

 

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

タグ(3)
0 件の賞賛
8 返答(返信)

1,113件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

in attachment is project tested on MPC5643L Dual PMSM Development Kit with S32DS for Power PC v. 1.2. with PE Micro FX.  I'm able successfully control Motor via FreeMaster.  

Jiri 

0 件の賞賛

1,113件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

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

0 件の賞賛

1,112件の閲覧回数
edenli
Contributor V

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#:

pastedImage_2.png

2#:

pastedImage_7.png

3#:
pastedImage_8.png

4#

pastedImage_9.png

5#

pastedImage_10.png

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!

0 件の賞賛

1,110件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

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 

0 件の賞賛

1,111件の閲覧回数
edenli
Contributor V

Hi Jiri,

About one week ago,the C-code can be download,but now the Error come out

0 件の賞賛

1,111件の閲覧回数
edenli
Contributor V

Hi Jiri,:smileysad:,the question make me confused more than one week .:smileysad:

0 件の賞賛

1,111件の閲覧回数
edenli
Contributor V

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.

0 件の賞賛

1,111件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

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  

0 件の賞賛