Cannot Debug using JLink

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

Cannot Debug using JLink

Jump to solution
1,172 Views
razools
Contributor III

Hi,

I have a board with Hyperflash (S26KS128S) connected to MIMXRT1176

I followed the following link
https://www.cnblogs.com/henjay724/p/14942574.html
and I am using MIMXRT1170_UFL_L2 in the Device under JLink Debugger

I can erase and program Flash using the GUI Flash Tool.
However, I cannot run a debugger using IDE. The code doesn't stop at the main and directly gives the screen as shown in the screenshot. I am sure that code isn't running as I cannot see any serial logs coming out

Following has the issue resolved
https://community.nxp.com/t5/MCUXpresso-IDE/MCUXPresso-IDE-can-t-debug-through-JLINK/m-p/1756156/thr...
But it was done using personal message. For which I dont know what was the solution provided by the NXP Team

@kerryzhou 

 

 

0 Kudos
Reply
1 Solution
1,129 Views
razools
Contributor III

Hi @Kan_Li 
I am able to resolve the problem by changing the RAM Location to OCRAM as mentioned in 5.2.1 Flashloader modification points

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT1170-Octal-flash-enablement/ta-p/1498369

I am able to pause and debug the code.

If I press the reset button it doesn't resets the code back to main. The code stops running. Do you know what could be the issue ?

View solution in original post

0 Kudos
Reply
5 Replies
1,130 Views
razools
Contributor III

Hi @Kan_Li 
I am able to resolve the problem by changing the RAM Location to OCRAM as mentioned in 5.2.1 Flashloader modification points

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT1170-Octal-flash-enablement/ta-p/1498369

I am able to pause and debug the code.

If I press the reset button it doesn't resets the code back to main. The code stops running. Do you know what could be the issue ?

0 Kudos
Reply
1,123 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @razools ,

  As I know, the RT-UFL really have this reset button issues.

  And I also report to our RT-UFL author, he will helps to update the RT-UFL.

  So, in the meanwhile, just don't use the reset button, you can try to download the code again if you want to do the reset, thanks.

  In the future, if I find the workaround, I will also write document in the community. 

  Thanks a lot for your understanding.

 

Best Regards,

Kerry

0 Kudos
Reply
1,116 Views
razools
Contributor III

Hi @kerryzhou 
Oh its ok then. I thought I might be the only one facing this issue. 
Do you me to keep this thread open till we have reset button solution?
OR
I can accept the solution in my above post and close this thread while waiting for reset solution from author of RT-UFL

0 Kudos
Reply
1,136 Views
razools
Contributor III

Hi @Kan_Li 

Yeh @kerryzhou solution worked
However, Now my code is going into an assertion. I am trying to find a solution for it
I have been using this same code with P&E Micro Debugger and it works fine and I can see no assertion 

I have attached the screen shot FYR.

Do you think MIMXRT_FLEXSPI_UFL_512B_64KB.FLM would be good for my flash as mentioned in JLinkDevices.xml?

@Kan_Li @ @kerryzhou @I would really appreciate help on it

0 Kudos
Reply
1,144 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @razools ,

 

Seems Kerry has already provided you the solution in the post of Solved: Re: MCUXPresso IDE can't debug through JLINK - NXP Community , does it work for you? Please kindly clarify.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply