S32M276官方程序无法运行

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

S32M276官方程序无法运行

698 Views
FIZERL
Contributor I

在使用官网的电机例程NXP\MC_DevKits\ S32M276SFFR\sw

S32M276SFFRD_PMSM_FOC_1Sh 程序时;

运行时程序报错如下:

Starting target CPU...

ERROR: Cannot read register 15 (R15) while CPU is running

Reading common registers: ERROR: Cannot read register 0 (R0) while CPU is running

Read register 'r0' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 1 (R1) while CPU is running

Read register 'r1' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 2 (R2) while CPU is running

Read register 'r2' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 3 (R3) while CPU is running

Read register 'r3' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 4 (R4) while CPU is running

Read register 'r4' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 5 (R5) while CPU is running

Read register 'r5' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 6 (R6) while CPU is running

Read register 'r6' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 7 (R7) while CPU is running

Read register 'r7' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 8 (R8) while CPU is running

Read register 'r8' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 9 (R9) while CPU is running

Read register 'r9' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 10 (R10) while CPU is running

Read register 'r10' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 11 (R11) while CPU is running

Read register 'r11' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 12 (R12) while CPU is running

Read register 'r12' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 13 (R13) while CPU is running

Read register 'sp' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 14 (R14) while CPU is running

Read register 'lr' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 15 (R15) while CPU is running

Read register 'pc' (4 bytes) from hardware: 0xEFBEADDE

ERROR: Cannot read register 16 (XPSR) while CPU is running

Read register 'xpsr' (4 bytes) from hardware: 0xEFBEADDE

WARNING: Failed to read memory @ address 0xDEADBEEE

下载其他程序,能正常运行;请问这是怎么回事,要怎样解决?

 

Tags (1)
0 Kudos
Reply
3 Replies

626 Views
_Leo_
NXP TechSupport
NXP TechSupport

[Google translation]
When using the official website's motor routine NXP\MC_DevKits\ S32M276SFFR\sw

S32M276SFFRD_PMSM_FOC_1Sh program time;

The program reports the following error during runtime:

Starting target CPU...

ERROR…

I can download other programs and they run normally. What's going on and how can I solve this problem?

 

 

Thank you for your interest in our products and for contributing to our community.

I have tested the example and works as expected following the S32M276 Motor Control Quick Start Guide.

Could you please verify if you are using the correct SW versions according to the S32M276SFFRD_ReleaseNotes.txt?

The Development Kit application was built and tested using the following IDE, Drivers and Tools:
=====================================================================================
Examples based on the RTD low level API:
- S32 Design Studio for S32 Platform Version 3.5 (Update
- S32M2xx development package version 3.5.8
- S32K3_S32M27x Real-Time Drivers Version 4.0.0 P20 (S32DS Extesnion and Updates installation)
- FreeMASTER 3.2.3.2
=====================================================================================

If the issue persist, please share the following details:

  • For "other programs", do you refer to S32M27xEVB_PMSM_FOC_1Sh?
  • Which debugger are you using?
  • Share an screenshot of your installation details.
  • Share a photo of you board connected.

I hope this information is helpful.

0 Kudos
Reply

615 Views
FIZERL
Contributor I
Debugging using J-LINK;
The program was discovered because of this in the program
AEC_PMCConfig(1,0);
If this program annotation is invalidated, the S32M276SFFRD_PMSM-FOC_1Sh program will not have the above-mentioned problems;
Is it possible that S32M276SFFRD is damaged? Or other questions?
0 Kudos
Reply

599 Views
_Leo_
NXP TechSupport
NXP TechSupport

The S32M276SFFRD_PMSM_FOC_1Sh uses by default use PEMicro as debugging interface.

For debugging with J-Link (tested with J-Link EDU Mini) please follow next steps:

• Right click in the project and select "Properties".
• Search for "Run/Debug Settings" and click in "New".
• Select the J-link option.
• Use the following configuration:

_Leo__0-1761254627917.png

I hope this information is helpful. If you have any further questions, please feel free to continue using our Technical Support Service by creating a new ticket.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2186120%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ES32M276%20official%20program%20does%20not%20run%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2186120%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20using%20the%20official%20website's%20motor%20routine%20NXP%5CMC_DevKits%5C%20S32M276SFFR%5Csw%3C%2FP%3E%3CP%3ES32M276SFFRD_PMSM_FOC_1Sh%20Program%20time%3B%3C%2FP%3E%3CP%3EThe%20program%20reports%20the%20following%20error%20at%20runtime%3A%3C%2FP%3E%3CP%3EStarting%20target%20CPU...%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%2015%20(R15)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3EReading%20common%20registers%3A%20ERROR%3A%20Cannot%20read%20register%200%20(R0)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r0'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%201%20(R1)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r1'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%202%20(R2)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r2'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%203%20(R3)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r3'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%204%20(R4)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r4'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%205%20(R5)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r5'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%206%20(R6)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r6'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%207%20(R7)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r7'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%208%20(R8)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r8'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%209%20(R9)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r9'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%2010%20(R10)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r10'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%2011%20(R11)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r11'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%2012%20(R12)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'r12'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%2013%20(R13)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'sp'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%2014%20(R14)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'lr'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%2015%20(R15)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'pc'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EERROR%3A%20Cannot%20read%20register%2016%20(XPSR)%20while%20CPU%20is%20running%3C%2FP%3E%3CP%3ERead%20register%20'xpsr'%20(4%20bytes)%20from%20hardware%3A%200xEFBEADDE%3C%2FP%3E%3CP%3EWARNING%3A%20Failed%20to%20read%20memory%20%40%20address%200xDEADBEEE%3C%2FP%3E%3CP%3EDownload%20other%20programs%20that%20work%20fine%3B%20what's%20going%20on%20and%20what%20do%20I%20have%20to%20do%20to%20fix%20it%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2191970%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32M276%E5%AE%98%E6%96%B9%E7%A8%8B%E5%BA%8F%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2191970%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20%3CEM%3ES32M276SFFRD_PMSM_FOC_1Sh%3C%2FEM%3E%20uses%20by%20default%20use%20PEMicro%20as%20debugging%20interface.%3C%2FP%3E%0A%3CP%3EFor%20debugging%20with%20J-Link%20(tested%20with%20J-Link%20EDU%20Mini)%20please%20follow%20next%20steps%3A%3C%2FP%3E%0A%3CP%3E%E2%80%A2%20Right%20click%20in%20the%20project%20and%20select%20%22%3CEM%3EProperties%3C%2FEM%3E%22.%3CBR%20%2F%3E%E2%80%A2%20Search%20for%20%22%3CEM%3ERun%2FDebug%20Settings%3C%2FEM%3E%22%20and%20click%20in%20%22%3CEM%3ENew%3C%2FEM%3E%22.%3CBR%20%2F%3E%E2%80%A2%20Select%20the%20J-link%20option.%3CBR%20%2F%3E%E2%80%A2%20Use%20the%20following%20configuration%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22_Leo__0-1761254627917.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22_Leo__0-1761254627917.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362384iA3CCEC1B216C2155%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22_Leo__0-1761254627917.png%22%20alt%3D%22_Leo__0-1761254627917.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20information%20is%20helpful.%20If%20you%20have%20any%20further%20questions%2C%20please%20feel%20free%20to%20continue%20using%20our%20Technical%20Support%20Service%20by%20creating%20a%20new%20ticket.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2191095%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32M276%E5%AE%98%E6%96%B9%E7%A8%8B%E5%BA%8F%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2191095%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EDebugging%20using%20J-LINK%3B%3CBR%20%2F%3EThe%20program%20was%20discovered%20because%20of%20this%20in%20the%20program%3CBR%20%2F%3EAEC_PMCConfig(1%2C0)%3B%3CBR%20%2F%3EIf%20this%20program%20annotation%20is%20invalidated%2C%20the%20S32M276SFFRD_PMSM-FOC_1Sh%20program%20will%20not%20have%20the%20above-mentioned%20problems%3B%3CBR%20%2F%3EIs%20it%20possible%20that%20S32M276SFFRD%20is%20damaged%3F%20Or%20other%20questions%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2191060%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32M276%E5%AE%98%E6%96%B9%E7%A8%8B%E5%BA%8F%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2191060%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%5BGoogle%20translation%5D%3CBR%20%2F%3E%3CEM%3EWhen%20using%20the%20official%20website's%20motor%20routine%20NXP%5CMC_DevKits%5C%20S32M276SFFR%5Csw%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3ES32M276SFFRD_PMSM_FOC_1Sh%20program%20time%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EThe%20program%20reports%20the%20following%20error%20during%20runtime%3A%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EStarting%20target%20CPU...%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EERROR%E2%80%A6%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EI%20can%20download%20other%20programs%20and%20they%20run%20normally.%20What's%20going%20on%20and%20how%20can%20I%20solve%20this%20problem%3F%3C%2FEM%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you%20for%20your%20interest%20in%20our%20products%20and%20for%20contributing%20to%20our%20community.%3C%2FP%3E%0A%3CP%3EI%20have%20tested%20the%20example%20and%20works%20as%20expected%20following%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocument%2Fguide%2Fs32m276-motor-control-quick-start-guide%3AGS-S32M276SFFRD%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ES32M276%20Motor%20Control%20Quick%20Start%20Guide%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20verify%20if%20you%20are%20using%20the%20correct%20SW%20versions%20according%20to%20the%20%3CEM%3ES32M276SFFRD_ReleaseNotes.txt%3C%2FEM%3E%3F%3C%2FP%3E%0A%3CP%3E%3CEM%3EThe%20Development%20Kit%20application%20was%20built%20and%20tested%20using%20the%20following%20IDE%2C%20Drivers%20and%20Tools%3A%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EExamples%20based%20on%20the%20RTD%20low%20level%20API%3A%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E-%20S32%20Design%20Studio%20for%20S32%20Platform%20Version%203.5%20(Update%20%3CLI-EMOJI%20id%3D%22lia_smiling-face-with-sunglasses%22%20title%3D%22%3Asmiling_face_with_sunglasses%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E-%20S32M2xx%20development%20package%20version%203.5.8%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E-%20S32K3_S32M27x%20Real-Time%20Drivers%20Version%204.0.0%20P20%20(S32DS%20Extesnion%20and%20Updates%20installation)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E-%20FreeMASTER%203.2.3.2%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EIf%20the%20issue%20persist%2C%20please%20share%20the%20following%20details%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EFor%20%22other%20programs%22%2C%20do%20you%20refer%20to%20S32M27xEVB_PMSM_FOC_1Sh%3F%3C%2FLI%3E%0A%3CLI%3EWhich%20debugger%20are%20you%20using%3F%3C%2FLI%3E%0A%3CLI%3EShare%20an%20screenshot%20of%20your%20installation%20details.%3C%2FLI%3E%0A%3CLI%3EShare%20a%20photo%20of%20you%20board%20connected.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EI%20hope%20this%20information%20is%20helpful.%3C%2FP%3E%3C%2FLINGO-BODY%3E