MCUXpresso for VS Code: Built projects flash without errors but don’t run (MIMXRT1160-EVK)

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

MCUXpresso for VS Code: Built projects flash without errors but don’t run (MIMXRT1160-EVK)

2,235 Views
erlend
Contributor II

I’ve been following the Getting Started with MCUXpresso for VS Code guide and I'm working with a MIMXRT1160-EVK.

Using VS Code and the MCUXpresso extension, I can successfully import SDKs (both from the remote archive and via the SDK builder), and build and flash demo projects without any errors. However, when I run a simple example like the LED blinky, the code compiles and flashes successfully, but the LED does not blink.

Strangely, if I do the exact same thing using the MCUXpresso IDE (not VS Code), the LED blinky example works as expected. Even importing a known-working project from the IDE into VS Code works fine, it builds, flashes, and runs correctly.

I’ve tried multiple SDK versions and different examples, but the issue is consistent: builds done from scratch in VS Code seem to flash but not execute properly.

Has anyone else experienced this? Any ideas on what could be going wrong?

0 Kudos
Reply
5 Replies

2,215 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @erlend 

“Strangely, if I do the exact same thing using the MCUXpresso IDE (not VS Code), the LED blinky example works as expected. ”

You mentioned that it can work.

Did you try to import the local working SDK package?

Harry_Zhang_0-1754881252802.png

BR

Harry

0 Kudos
Reply

2,209 Views
erlend
Contributor II

Yes, i have tried with both local and remote archive, same result for both.

0 Kudos
Reply

2,194 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @erlend 

I have tested it.

You are right.

There is bug in our RT1160 VSCODE LEDBLINKY PROJECT.

I have reported it to our VSCODE team.

Thanks for your information.

BR

Harry

2,179 Views
erlend
Contributor II

Okay thanks, I have also tried with the "Hello world" demo, which i had the same problem with.

0 Kudos
Reply

2,174 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @erlend 

We will fix it on  VSCode_25.08.00 version.

Thanks for your understanding.

BR

Harry

%3CLINGO-SUB%20id%3D%22lingo-sub-2149055%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMCUXpresso%20for%20VS%20Code%3A%20Built%20projects%20flash%20without%20errors%20but%20don%E2%80%99t%20run%20(MIMXRT1160-EVK)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149055%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%E2%80%99ve%20been%20following%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Ftraining%2FTIP-GETTING-STARTED-WITH-MCUXPRESSO-FOR-VS-CODE%22%20target%3D%22_new%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EGetting%20Started%20with%20MCUXpresso%20for%20VS%20Code%20guide%3C%2FA%3E%20and%20I'm%20working%20with%20a%20MIMXRT1160-EVK.%3C%2FP%3E%3CP%3EUsing%20VS%20Code%20and%20the%20MCUXpresso%20extension%2C%20I%20can%20successfully%20import%20SDKs%20(both%20from%20the%20remote%20archive%20and%20via%20the%20SDK%20builder)%2C%20and%20build%20and%20flash%20demo%20projects%20without%20any%20errors.%20However%2C%20when%20I%20run%20a%20simple%20example%20like%20the%20LED%20blinky%2C%20the%20code%20compiles%20and%20flashes%20successfully%2C%20but%20the%20LED%20does%20not%20blink.%3C%2FP%3E%3CP%3EStrangely%2C%20if%20I%20do%20the%20exact%20same%20thing%20using%20the%20MCUXpresso%20IDE%20(not%20VS%20Code)%2C%20the%20LED%20blinky%20example%20works%20as%20expected.%20Even%20importing%20a%20known-working%20project%20from%20the%20IDE%20into%20VS%20Code%20works%20fine%2C%20it%20builds%2C%20flashes%2C%20and%20runs%20correctly.%3C%2FP%3E%3CP%3EI%E2%80%99ve%20tried%20multiple%20SDK%20versions%20and%20different%20examples%2C%20but%20the%20issue%20is%20consistent%3A%20builds%20done%20%3CEM%3Efrom%20scratch%3C%2FEM%3E%20in%20VS%20Code%20seem%20to%20flash%20but%20not%20execute%20properly.%3C%2FP%3E%3CP%3EHas%20anyone%20else%20experienced%20this%3F%20Any%20ideas%20on%20what%20could%20be%20going%20wrong%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2150823%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCUXpresso%20for%20VS%20Code%3A%20Built%20projects%20flash%20without%20errors%20but%20don%E2%80%99t%20run%20(MIMXRT1160-EVK)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150823%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%2F253536%22%20target%3D%22_blank%22%3E%40erlend%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20will%20fix%20it%20on%26nbsp%3B%20VSCode_25.08.00%20version.%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20understanding.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2150582%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCUXpresso%20for%20VS%20Code%3A%20Built%20projects%20flash%20without%20errors%20but%20don%E2%80%99t%20run%20(MIMXRT1160-EVK)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150582%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOkay%20thanks%2C%20I%20have%20also%20tried%20with%20the%20%22Hello%20world%22%20demo%2C%20which%20i%20had%20the%20same%20problem%20with.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2150527%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCUXpresso%20for%20VS%20Code%3A%20Built%20projects%20flash%20without%20errors%20but%20don%E2%80%99t%20run%20(MIMXRT1160-EVK)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150527%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%2F253536%22%20target%3D%22_blank%22%3E%40erlend%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20tested%20it.%3C%2FP%3E%0A%3CP%3EYou%20are%20right.%3C%2FP%3E%0A%3CP%3EThere%20is%20bug%20in%20our%20RT1160%20VSCODE%20LEDBLINKY%20PROJECT.%3C%2FP%3E%0A%3CP%3EI%20have%20reported%20it%20to%20our%20VSCODE%20team.%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20information.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149819%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCUXpresso%20for%20VS%20Code%3A%20Built%20projects%20flash%20without%20errors%20but%20don%E2%80%99t%20run%20(MIMXRT1160-EVK)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149819%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYes%2C%20i%20have%20tried%20with%20both%20local%20and%20remote%20archive%2C%20same%20result%20for%20both.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149635%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCUXpresso%20for%20VS%20Code%3A%20Built%20projects%20flash%20without%20errors%20but%20don%E2%80%99t%20run%20(MIMXRT1160-EVK)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149635%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%2F253536%22%20target%3D%22_blank%22%3E%40erlend%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E2%80%9C%3CSPAN%3EStrangely%2C%20if%20I%20do%20the%20exact%20same%20thing%20using%20the%20MCUXpresso%20IDE%20(not%20VS%20Code)%2C%20the%20LED%20blinky%20example%20works%20as%20expected.%26nbsp%3B%3C%2FSPAN%3E%E2%80%9D%3C%2FP%3E%0A%3CP%3EYou%20mentioned%20that%20it%20can%20work.%3C%2FP%3E%0A%3CP%3EDid%20you%20try%20to%20import%20the%20local%20working%20SDK%20package%EF%BC%9F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Harry_Zhang_0-1754881252802.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Harry_Zhang_0-1754881252802.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F351683i2A57415E6213B786%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Harry_Zhang_0-1754881252802.png%22%20alt%3D%22Harry_Zhang_0-1754881252802.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E