EvkMIMXrt1064 error when debugging with JLink

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

EvkMIMXrt1064 error when debugging with JLink

1,358 Views
cleo
Contributor I

I am using EvkMIMXrt1064 and MCUXpresso v25.6 and I am trying to debug a demo project using JLink probe. When I launch the debug command I keep getting an error message "

warning: could not convert 'main' from the host encoding (CP1252) to UTF-32.

This normally should not happen, please file a bug report.

monitor exec SetRestartOnClose=1

 

Program received signal SIGTRAP, Trace/breakpoint trap.

0xdeadbeee in ?? ()"

 

I have checked previous posts and I so I have cleaned the project, deleted the launch sequence for JLink probe but
nothing helped. I have attached images with the JLink settings and the project screen.
Could you please explain how to get rid of this error ?

0 Kudos
Reply
3 Replies

1,286 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @cleo,

Could you please help me clarify the following points:

Does this also happen with the onboard debugger? What SDK version are you using? Have you done any modifications to the demo application that you are trying to program via J-Link? What demo is it?

Finally, the "warning: could not convert 'main' from the host encoding" is most likely not the actual error, but rather a warning message thrown by the debug console that is only a symptom of another underlying issue. Could you share the whole output or log of the Debugger Console?

BR,
Edwin.

0 Kudos
Reply

1,281 Views
cleo
Contributor I

Hi @EdwinHz ,

I am using evkmimxrt1064_iled_blinky demo project and I can debug it using the DAP Link debugger, the onboard debugger. I am using SDK version 25.03.00 and MCUXpresso IDE version 25.6. I haven't done any modification to the demo application, I just switched from debugging with DAP Link to debugging using J-Link. The J-Link probe is connected through SWD and I removed the  jumpers J47 and J48. I have tried to debug using J-Link when the board was set to boot in Internal Mode and also in Serial Download Mode. In both cases I get the same error message.
"

GNU gdb (Arm GNU Toolchain 14.2.Rel1 (Build arm-14.52)) 15.2.90.20241130-git
Copyright (C) 2024 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=x86_64-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.linaro.org/>.
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".

 

warning: could not convert 'main' from the host encoding (CP1252) to UTF-32.
This normally should not happen, please file a bug report.
monitor exec SetRestartOnClose=1

Program received signal SIGTRAP, Trace/breakpoint trap.
0xdeadbeee in ?? ()"

0 Kudos
Reply

1,260 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @cleo,

Please try doing the following procedure:

Power off the board
Configure SW7: 1-OFF, 2-OFF, 3-OFF, 4-ON
Disconnect J45, J46, J47, J48, J49, J50
Connect your external JLINK to J21 JTAG interface.
Open the JLINK commander
Try to connect and do a mass erase via JLINK commander.

Let me know if you encounter any issues during this procedure.

BR,
Edwin.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2320849%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEvkMIMXrt1064%20error%20when%20debugging%20with%20JLink%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2320849%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20using%26nbsp%3BEvkMIMXrt1064%20and%20MCUXpresso%20v25.6%20and%20I%20am%20trying%20to%20debug%20a%20demo%20project%20using%20JLink%20probe.%20When%20I%20launch%20the%20debug%20command%20I%20keep%20getting%20an%20error%20message%20%22%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CP%3E%3CSPAN%3Ewarning%3A%20could%20not%20convert%20'main'%20from%20the%20host%20encoding%20(CP1252)%20to%20UTF-32.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThis%20normally%20should%20not%20happen%2C%20please%20file%20a%20bug%20report.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Emonitor%20exec%20SetRestartOnClose%3D1%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EProgram%20received%20signal%20SIGTRAP%2C%20Trace%2Fbreakpoint%20trap.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E0xdeadbeee%20in%20%3F%3F%20()%22%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EI%20have%20checked%20previous%20posts%20and%20I%20so%20I%20have%20cleaned%20the%20project%2C%20deleted%20the%20launch%20sequence%20for%20JLink%20probe%20but%3CBR%20%2F%3Enothing%20helped.%20I%20have%20attached%20images%20with%20the%20JLink%20settings%20and%20the%20project%20screen.%3CBR%20%2F%3ECould%20you%20please%20explain%20how%20to%20get%20rid%20of%20this%20error%20%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2322102%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EvkMIMXrt1064%20error%20when%20debugging%20with%20JLink%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2322102%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251109%22%20target%3D%22_blank%22%3E%40cleo%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EPlease%20try%20doing%20the%20following%20procedure%3A%3C%2FP%3E%0A%3CP%3EPower%20off%20the%20board%3CBR%20%2F%3EConfigure%20SW7%3A%201-OFF%2C%202-OFF%2C%203-OFF%2C%204-ON%3CBR%20%2F%3EDisconnect%20J45%2C%20J46%2C%20J47%2C%20J48%2C%20J49%2C%20J50%3CBR%20%2F%3EConnect%20your%20external%20JLINK%20to%20J21%20JTAG%20interface.%3CBR%20%2F%3EOpen%20the%20JLINK%20commander%3CBR%20%2F%3ETry%20to%20connect%20and%20do%20a%20mass%20erase%20via%20JLINK%20commander.%3C%2FP%3E%0A%3CP%3ELet%20me%20know%20if%20you%20encounter%20any%20issues%20during%20this%20procedure.%3C%2FP%3E%0A%3CP%3EBR%2C%3CBR%20%2F%3EEdwin.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2321501%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EvkMIMXrt1064%20error%20when%20debugging%20with%20JLink%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2321501%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F186731%22%20target%3D%22_blank%22%3E%40EdwinHz%3C%2FA%3E%26nbsp%3B%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EI%20am%20using%20evkmimxrt1064_iled_blinky%20demo%20project%20and%20I%20can%20debug%20it%20using%20the%20DAP%20Link%20debugger%2C%20the%20onboard%20debugger.%20I%20am%20using%20SDK%20version%2025.03.00%20and%20MCUXpresso%20IDE%20version%2025.6.%20I%20haven't%20done%20any%20modification%20to%20the%20demo%20application%2C%20I%20just%20switched%20from%20debugging%20with%20DAP%20Link%20to%20debugging%20using%20J-Link.%20The%20J-Link%20probe%20is%20connected%20through%20SWD%20and%20I%20removed%20the%26nbsp%3B%3CSPAN%3E%26nbsp%3Bjumpers%20J47%20and%20J48.%20I%20have%20tried%20to%20debug%20using%20J-Link%20when%20the%20board%20was%20set%20to%20boot%20in%20Internal%20Mode%20and%20also%20in%20Serial%20Download%20Mode.%20In%20both%20cases%20I%20get%20the%20same%20error%20message.%3CBR%20%2F%3E%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EGNU%20gdb%20(Arm%20GNU%20Toolchain%2014.2.Rel1%20(Build%20arm-14.52))%2015.2.90.20241130-git%3CBR%20%2F%3ECopyright%20(C)%202024%20Free%20Software%20Foundation%2C%20Inc.%3CBR%20%2F%3ELicense%20GPLv3%2B%3A%20GNU%20GPL%20version%203%20or%20later%20%26lt%3B%3CA%20href%3D%22http%3A%2F%2Fgnu.org%2Flicenses%2Fgpl.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fgnu.org%2Flicenses%2Fgpl.html%3C%2FA%3E%26gt%3B%3CBR%20%2F%3EThis%20is%20free%20software%3A%20you%20are%20free%20to%20change%20and%20redistribute%20it.%3CBR%20%2F%3EThere%20is%20NO%20WARRANTY%2C%20to%20the%20extent%20permitted%20by%20law.%3CBR%20%2F%3EType%20%22show%20copying%22%20and%20%22show%20warranty%22%20for%20details.%3CBR%20%2F%3EThis%20GDB%20was%20configured%20as%20%22--host%3Dx86_64-w64-mingw32%20--target%3Darm-none-eabi%22.%3CBR%20%2F%3EType%20%22show%20configuration%22%20for%20configuration%20details.%3CBR%20%2F%3EFor%20bug%20reporting%20instructions%2C%20please%20see%3A%3CBR%20%2F%3E%26lt%3B%3CA%20href%3D%22https%3A%2F%2Fbugs.linaro.org%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fbugs.linaro.org%2F%3C%2FA%3E%26gt%3B.%3CBR%20%2F%3EFind%20the%20GDB%20manual%20and%20other%20documentation%20resources%20online%20at%3A%3CBR%20%2F%3E%26lt%3B%3CA%20href%3D%22http%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fgdb%2Fdocumentation%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.gnu.org%2Fsoftware%2Fgdb%2Fdocumentation%2F%3C%2FA%3E%26gt%3B.%3C%2FP%3E%3CP%3EFor%20help%2C%20type%20%22help%22.%3CBR%20%2F%3EType%20%22apropos%20word%22%20to%20search%20for%20commands%20related%20to%20%22word%22.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ewarning%3A%20could%20not%20convert%20'main'%20from%20the%20host%20encoding%20(CP1252)%20to%20UTF-32.%3CBR%20%2F%3EThis%20normally%20should%20not%20happen%2C%20please%20file%20a%20bug%20report.%3CBR%20%2F%3Emonitor%20exec%20SetRestartOnClose%3D1%3C%2FP%3E%3CP%3EProgram%20received%20signal%20SIGTRAP%2C%20Trace%2Fbreakpoint%20trap.%3CBR%20%2F%3E0xdeadbeee%20in%20%3F%3F%20()%22%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2321457%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EvkMIMXrt1064%20error%20when%20debugging%20with%20JLink%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2321457%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251109%22%20target%3D%22_blank%22%3E%40cleo%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20help%20me%20clarify%20the%20following%20points%3A%3C%2FP%3E%0A%3CP%3EDoes%20this%20also%20happen%20with%20the%20onboard%20debugger%3F%20What%20SDK%20version%20are%20you%20using%3F%20Have%20you%20done%20any%20modifications%20to%20the%20demo%20application%20that%20you%20are%20trying%20to%20program%20via%20J-Link%3F%20What%20demo%20is%20it%3F%3C%2FP%3E%0A%3CP%3EFinally%2C%20the%20%22warning%3A%20could%20not%20convert%20'main'%20from%20the%20host%20encoding%22%20is%20most%20likely%20not%20the%20actual%20error%2C%20but%20rather%20a%20warning%20message%20thrown%20by%20the%20debug%20console%20that%20is%20only%20a%20symptom%20of%20another%20underlying%20issue.%20Could%20you%20share%20the%20whole%20output%20or%20log%20of%20the%20Debugger%20Console%3F%3C%2FP%3E%0A%3CP%3EBR%2C%3CBR%20%2F%3EEdwin.%3C%2FP%3E%3C%2FLINGO-BODY%3E