2024-09-19 01:46 AM
Hi,
I designed a sw on STM32F746 with STM32CubeIDE.
Some functions work fine when I use the debugger (ST-LINK) but this same functions halts when I don't use the debugger !
I play se sequence hereafter :
- run the sw using debugger : execution ok
- exit de debugger session into the STM32CubeIDE, the sw still running well
- disconnect physically the ST-LINK, the sw still running well
- reset my board, the functions halt before end execution !!! (others functions work fine)
Someone can help me, please ?
Solved! Go to Solution.
2024-09-19 06:32 AM
Sorry for my sollicitation but I found the origin of my problem.
It's my delay procedure based on DWT who blocked some time.
I replaced with the HAL_Delay() and it work fine.
I've not understood why the debugger mask the problem and done that it work normally
This ticket can be closed
2024-09-19 02:06 AM
Hi,
We'd need more context.
Could you show us some code ? What are you trying to do ? Where does the code stops ?
2024-09-19 02:27 AM
Provide some instrumentation which allows you to see what your code is doing when the debugger is not connected.
eg, UART, LEDs, etc ...
In particular, make sure that your Hard Fault handler, and any other error handler(s) give a clear clear indication when they "fire"
2024-09-19 06:32 AM
Sorry for my sollicitation but I found the origin of my problem.
It's my delay procedure based on DWT who blocked some time.
I replaced with the HAL_Delay() and it work fine.
I've not understood why the debugger mask the problem and done that it work normally
This ticket can be closed
2024-09-19 06:41 AM
@ABITT.1 wrote:This ticket can be closed
You do that by marking the solution:
https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256
@ABITT.1 wrote:Sorry for my sollicitation but I found the origin of my problem.
It's my delay procedure based on DWT who blocked some time.
I replaced with the HAL_Delay() and it work fine.I've not understood why the debugger mask the problem and done that it work normally
To understand that, you'd need to give more detail - in particular, show your code
2024-09-19 07:07 AM
@ABITT.1 The post that you mark as the solution should be one which actually gives the solution!
That would be your post - not mine!
2024-09-20 01:36 AM
I'm sorry but I'd give feedback at all contributors
2024-09-23 10:46 PM
Hi SMarie,
I've resolved my problem, it was my wait who not work well.
thanks
2024-09-23 10:48 PM
Sorry Andrew but I have some difficulties to understand how the forum work.
I've resolved my problem, my wait don't work well. It's ok now.
thanks