Skip to main content
Senior
September 25, 2024
Question

exit in touch debug

  • September 25, 2024
  • 4 replies
  • 1431 views

Hi, a project runs in below trace in debug. I use external V2 ISOL debugger.

GauravK_0-1727246456290.png

But program seems to run when I download. Pl let me know if more inputs needed.

4 replies

Andrew Neil
Super User
September 25, 2024

So you've hit an assert.

Trace back through that call stack to see what's causing the assert...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
GauravKAuthor
Senior
September 25, 2024

Pl can I know why code doesn't halt when I flash in Run?

It there in Debug only

Andrew Neil
Super User
September 25, 2024

@GauravK wrote:

Pl can I know why code doesn't halt when I flash in Run?

It there in Debug only


Do you use the 'Release' build for 'Run' ?

Presumably, the 'Release' build does not enable asserts

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
GauravKAuthor
Senior
September 26, 2024


Do you use the 'Release' build for 'Run' ?

Presumably, the 'Release' build does not enable asserts


Is this the setting or anything else? can you guide

GauravKAuthor
Senior
September 25, 2024

Thanks for responding but Build is at debug

GauravK_0-1727275227017.png

 

ST Employee
October 1, 2024

Hello @GauravK,

Could you please check what is the assert that causes the issue? 
Which board or MCU are you developing on? Are you using any of the TouchGFX Board Setups? Do you use STM32CubeIDE for downloading your application to your board? 

 

GauravKAuthor
Senior
October 10, 2024

Hi, thanks for replying.

This issue I face intermittent. Like with same code it gets the error as mentioned at times, other time runs ok. Ideally if erorr is there always it should get stuck always, but observation is strange.

Currently Im not seeing that. Wanted to know why it occurring so posted that time.

ST Employee
October 16, 2024

Hello @GauravK,

It is very hard to pinpoint where the problem originates from, but since the issue seems to be from the initialization functions, there might be some OS misconfigurations that is causing trouble.
Please check the settings of the OS, and it would help a lot if you mention the MCU or development kit that you are working on.