Connection problem with MCXN647 (Ee(42) error)

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

Connection problem with MCXN647 (Ee(42) error)

498 Views
Peter-D
Contributor I

Hi,

I am having a problem with my FRDM-MCXN947 . Whenever I try to debug or flash my project, I get this error :

PeterD_0-1766924466842.pngPeterD_1-1766924526627.png

I don't know if it's related, but it started when I changed this line in a while(1) loop to increase its frequency : SDK_DelayAtLeastUs(30000, SystemCoreClock); -> SDK_DelayAtLeastUs(10000, SystemCoreClock);

I didn't update before the problem occurred, but I updated LinkFlash afterwards and it didn't solve anything.
I already tried SPT erase but it didn't work. (Maybe I did it wrong.)

On the SPT, after activating ISP mode, I was able to perform the “build image” and “write image” operations, but erasing still does not work.

PeterD_3-1766926202287.pngPeterD_4-1766926211594.png

Thank you in advance for your help.
PS: Please excuse my English and technical vocabulary, I am just starting this project at engineering school.

Labels (4)
0 Kudos
Reply
5 Replies

423 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi @Peter-D 

Please try using the Flash Programmer inside the SPT tool to erase and program a blinky SDK demo, and check whether it works properly. For details, please refer to the video in the attachment.

If these steps work well but you still cannot debug with the onboard debugger, please use an external debugger to test.

If you still have issues, please feel free to contact me.

Thank you.

 

BR

Alice

393 Views
Peter-D
Contributor I

Hi @Alice_Yang,
Thank you very much for your reply.

 

I followed the instructions in the video, and the method works to make the LED flash.
However, I get the same error when I return to the debugger from the MCUXpresso IDE.

If the problem comes from the onboard debugger, I don't think I'll buy an external debugger such as PEMicro or SEGGER J-Link (if that's what you were referring to) especially since the board I'm using was lent to me at school.

If I can't find a solution, I'll continue to use the flash programmer, which also works for my project, and I'll ask my professors if they have an external debugger.

 

Best regards,

Peter

0 Kudos
Reply

359 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Peter-D 

I’m not sure if the debugger on your board is actually broken. Please try updating the debugger firmware by following the instructions here: https://docs.nxp.com/bundle/UM12018/page/topics/Updating_MCU_Link_firmware.html 

After the update, power cycle the board, create a new workspace in MCUXpresso IDE, import a fresh SDK demo, and try debugging again.

It would be better if you could take a video and share it with me. I’ll help you check it.
Thank you.
 
 

BR

Alice

0 Kudos
Reply

112 Views
Peter-D
Contributor I

Hello @Alice_Yang

Thank you for your reply.

I updated LinkServer as suggested, but I think I already had it after the problem appeared. I tried the update again anyway, then power-cycled the board, created a new workspace, and imported a demo project, but I am still getting the same Ee(42) error when trying to debug.

I have recorded a short video showing the process, which I have attached.

Thank you for your help, and I wish you a happy new year.

Best regards,
Peter

0 Kudos
Reply

64 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Peter-D

Thanks for your video.

Please delete the .launch file (in below picture)and erase your board again.

Use the Debug button shown in the picture below to start debugging.

Alice_Yang_0-1767148514011.png

 

If it still doesn’t work, I recommend replacing the board.

By the way, I will be on New Year holiday and will return on January 5th. If you still have questions, please contact me on that day.

Thank you for your understanding, and Happy New Year!

 

BR

Alice

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2269396%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EConnection%20problem%20with%20MCXN647%20(Ee(42)%20error)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269396%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20having%20a%20problem%20with%20my%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FFRDM-MCXN947%2Fpd-p%2FFRDM-MCXN947%22%20class%3D%22lia-product-mention%22%20data-product%3D%222740-1%22%20target%3D%22_blank%22%3EFRDM-MCXN947%3C%2FA%3E%26nbsp%3B.%20Whenever%20I%20try%20to%20debug%20or%20flash%20my%20project%2C%20I%20get%20this%20error%20%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PeterD_0-1766924466842.png%22%20style%3D%22width%3A%20375px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_0-1766924466842.png%22%20style%3D%22width%3A%20375px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_0-1766924466842.png%22%20style%3D%22width%3A%20375px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_0-1766924466842.png%22%20style%3D%22width%3A%20375px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371264iE9739BEF91B4DD12%2Fimage-dimensions%2F375x240%3Fv%3Dv2%22%20width%3D%22375%22%20height%3D%22240%22%20role%3D%22button%22%20title%3D%22PeterD_0-1766924466842.png%22%20alt%3D%22PeterD_0-1766924466842.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PeterD_1-1766924526627.png%22%20style%3D%22width%3A%20348px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_1-1766924526627.png%22%20style%3D%22width%3A%20348px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_1-1766924526627.png%22%20style%3D%22width%3A%20348px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_1-1766924526627.png%22%20style%3D%22width%3A%20348px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371265i394848B693A10719%2Fimage-dimensions%2F348x240%3Fv%3Dv2%22%20width%3D%22348%22%20height%3D%22240%22%20role%3D%22button%22%20title%3D%22PeterD_1-1766924526627.png%22%20alt%3D%22PeterD_1-1766924526627.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20don't%20know%20if%20it's%20related%2C%20but%20it%20started%20when%20I%20changed%20this%20line%20in%20a%20while(1)%20loop%20to%20increase%20its%20frequency%20%3A%20%3CEM%3ESDK_DelayAtLeastUs(%3CSTRONG%3E30000%3C%2FSTRONG%3E%2C%20SystemCoreClock)%3B%3C%2FEM%3E%20-%26gt%3B%20%3CEM%3ESDK_DelayAtLeastUs(%3CSTRONG%3E10000%3C%2FSTRONG%3E%2C%20SystemCoreClock)%3B%3C%2FEM%3E%3C%2FP%3E%3CP%3EI%20didn't%20update%20before%20the%20problem%20occurred%2C%20but%20I%20updated%20LinkFlash%20afterwards%20and%20it%20didn't%20solve%20anything.%3CBR%20%2F%3EI%20already%20tried%20SPT%20erase%20but%20it%20didn't%20work.%20(Maybe%20I%20did%20it%20wrong.)%3C%2FP%3E%3CP%3EOn%20the%20SPT%2C%20after%20activating%20ISP%20mode%2C%20I%20was%20able%20to%20perform%20the%20%E2%80%9Cbuild%20image%E2%80%9D%20and%20%E2%80%9Cwrite%20image%E2%80%9D%20operations%2C%20but%20erasing%20still%20does%20not%20work.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PeterD_3-1766926202287.png%22%20style%3D%22width%3A%20448px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_3-1766926202287.png%22%20style%3D%22width%3A%20448px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_3-1766926202287.png%22%20style%3D%22width%3A%20448px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_3-1766926202287.png%22%20style%3D%22width%3A%20448px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371267i459FD1F8192CDBCD%2Fimage-dimensions%2F448x314%3Fv%3Dv2%22%20width%3D%22448%22%20height%3D%22314%22%20role%3D%22button%22%20title%3D%22PeterD_3-1766926202287.png%22%20alt%3D%22PeterD_3-1766926202287.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PeterD_4-1766926211594.png%22%20style%3D%22width%3A%20275px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_4-1766926211594.png%22%20style%3D%22width%3A%20275px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_4-1766926211594.png%22%20style%3D%22width%3A%20275px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PeterD_4-1766926211594.png%22%20style%3D%22width%3A%20275px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371268iADD963500EFBB38C%2Fimage-dimensions%2F275x145%3Fv%3Dv2%22%20width%3D%22275%22%20height%3D%22145%22%20role%3D%22button%22%20title%3D%22PeterD_4-1766926211594.png%22%20alt%3D%22PeterD_4-1766926211594.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%20for%20your%20help.%3CBR%20%2F%3EPS%3A%20Please%20excuse%20my%20English%20and%20technical%20vocabulary%2C%20I%20am%20just%20starting%20this%20project%20at%20engineering%20school.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2269396%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EBoot%20ROM%7CBooting%20%7C%20Flash%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EClock%7CTimers%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMCXN%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUSB%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2269449%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Connection%20problem%20with%20MCXN647%20(Ee(42)%20error)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269449%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%2F258353%22%20target%3D%22_blank%22%3E%40Peter-D%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%0A%3CP%3EPlease%20try%20using%20the%20Flash%20Programmer%20inside%20the%20SPT%20tool%20to%20erase%20and%20program%20a%20blinky%20SDK%20demo%2C%20and%20check%20whether%20it%20works%20properly.%20For%20details%2C%20please%20refer%20to%20the%20video%20in%20the%20attachment.%3C%2FP%3E%0A%3CP%3EIf%20these%20steps%20work%20well%20but%20you%20still%20cannot%20debug%20with%20the%20onboard%20debugger%2C%20please%20use%20an%20external%20debugger%20to%20test.%3C%2FP%3E%0A%3CP%3EIf%20you%20still%20have%20issues%2C%20please%20feel%20free%20to%20contact%20me.%3C%2FP%3E%0A%3CP%3EThank%20you.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2269680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Connection%20problem%20with%20MCXN647%20(Ee(42)%20error)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269680%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%2F27788%22%20target%3D%22_blank%22%3E%40Alice_Yang%3C%2FA%3E%2C%3CBR%20%2F%3EThank%20you%20very%20much%20for%20your%20reply.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20followed%20the%20instructions%20in%20the%20video%2C%20and%20the%20method%20works%20to%20make%20the%20LED%20flash.%3CBR%20%2F%3EHowever%2C%20I%20get%20the%20same%20error%20when%20I%20return%20to%20the%20debugger%20from%20the%20MCUXpresso%20IDE.%3C%2FP%3E%3CP%3EIf%20the%20problem%20comes%20from%20the%20onboard%20debugger%2C%20I%20don't%20think%20I'll%20buy%20an%20external%20debugger%20such%20as%20PEMicro%20or%20SEGGER%20J-Link%20(if%20that's%20what%20you%20were%20referring%20to)%20especially%20since%20the%20board%20I'm%20using%20was%20lent%20to%20me%20at%20school.%3C%2FP%3E%3CP%3EIf%20I%20can't%20find%20a%20solution%2C%20I'll%20continue%20to%20use%20the%20flash%20programmer%2C%20which%20also%20works%20for%20my%20project%2C%20and%20I'll%20ask%20my%20professors%20if%20they%20have%20an%20external%20debugger.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EBest%20regards%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPeter%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2269766%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Connection%20problem%20with%20MCXN647%20(Ee(42)%20error)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269766%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258353%22%20target%3D%22_blank%22%3E%40Peter-D%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%0A%3CP%3EI%E2%80%99m%20not%20sure%20if%20the%20debugger%20on%20your%20board%20is%20actually%20broken.%20Please%20try%20updating%20the%20debugger%20firmware%20by%20following%20the%20instructions%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.nxp.com%2Fbundle%2FUM12018%2Fpage%2Ftopics%2FUpdating_MCU_Link_firmware.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.nxp.com%2Fbundle%2FUM12018%2Fpage%2Ftopics%2FUpdating_MCU_Link_firmware.html%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20the%20update%2C%20power%20cycle%20the%20board%2C%20create%20a%20new%20workspace%20in%20MCUXpresso%20IDE%2C%20import%20a%20fresh%20SDK%20demo%2C%20and%20try%20debugging%20again.%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CDIV%3EIt%20would%20be%20better%20if%20you%20could%20take%20a%20video%20and%20share%20it%20with%20me.%20I%E2%80%99ll%20help%20you%20check%20it.%3C%2FDIV%3E%0A%3CDIV%3EThank%20you.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%3C%2FLINGO-BODY%3E