1176 does not debug correctly in flash

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

1176 does not debug correctly in flash

1,132 Views
hhh
Contributor III

we have designed a custom board for 1176(same as EVM), also used same qspi flash as the evm. we have debug our code on the board for a while.  but suddenly the jlink can not connect with the board. we tried to boot in serial bootloader mode, and jlink can connect. the helloworld program debug without any issue in ram. but it had problem when debug in flash. some time break point does not work, step over does not work, after run the problem, then tried to break. it has went somewhere else. Any idea, and how to debug from current status?

 

thanks

0 Kudos
8 Replies

1,102 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello
Hope you are well.

Is the code running correctly in flash without the debugger? Could you please share your debugger configuration?
Please try doing a mass erase in flash and load an SDK example to check if something is changing.

If you have more questions do not hesitate to ask me.
Best regards,
Omar

0 Kudos

1,044 Views
hhh
Contributor III

by the way i am testing demo_app hello_world for m7 with default setting.

 

 

0 Kudos

1,049 Views
hhh
Contributor III

i tried to enable the QE bit like the other thread suggested,  looks like it is correctly setup the QE bit. but after that i still not be able to run the helloworld in flash correctly. debug also have problem, can not even probe ram.

 

0 Kudos

1,084 Views
hhh
Contributor III

currently our board does not seem like be able to connect with JTAG probe in SWD. look like power up failure. 32k crystal working properly, on chip bucker work correctly, but looks like 24Mhz clock is not oscillate, have any idea where to look up ?

 

thanks

 

0 Kudos

1,021 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Thank you for the detailed information.
It will be helpful to check that your power delivery scheme is using the correct power-up sequence. It will be helpful if you attach a scope with those measures on the power pins.
Are you using an IC to drive POR_B, it is important to assure that it is maintained asserted during the whole power-up sequence until the last power rail is stable.
Not complying with this sequence could result in boot issues as one possible scenario.

Do you have Boot_CFG pins on board? Or are you using the fuses?

It is possible to assure that you do not have any power glitches, RT cannot deal properly with these glitches so a voltage monitor is suggested.

If 24Mhz clock is not able to run please check that this crystal complies with the specifications listed on the Hardware Development Guide.

Best regards,
Omar

0 Kudos

1,063 Views
hhh
Contributor III

after a few try, looks like if we debug the program in ram, everything works fine. but if we debug in flash, there is problem.

 

 

0 Kudos

1,065 Views
hhh
Contributor III

we figure that problem out. reset pin is hold low, there is an small logic for voltage translate on the 3.3V to 1.8V damaged.  we have several new boards.  looks like debug have problem also looks like the program not running correctly in the flash. when start debug, looks like it correct loading the code, and we put down some break point, it stopped at the break point, but wont be able to check memory.

 

0 Kudos

1,115 Views
hhh
Contributor III

there is some strange things happen, llike step over not work well in flash, but some time break points works. some time when hit go, jlink loss connection. have to recycle the board to regain debug capability.

 

 

0 Kudos