2023-02-13 03:28 AM - last edited on 2025-01-28 02:10 AM by Andrew Neil
Hi, I would like to launch a function automatically when my program stops after a breakpoint.
I work on motor control application and it is recommanded to disable PWM channel before a breakpoint.
How I do configure cubeide ? thanks for your help
2023-02-22 01:11 AM
Yes, you're right. I overlooked RM0090 and only looked at RM0390 which describes STM32F446xx devices. Sorry. Indeed, I do not see any easy rule to determine whether the feature is present on a given MCU.
Fred.
2023-02-22 02:27 AM
Should be possible, see https://sourceware.org/gdb/current/onlinedocs/gdb.html/Break-Commands.html#Break-Commands.
hth
KnarfB
2023-02-22 04:58 AM
I see. Thanks Fred.
Jan
@Fred V.
2023-02-22 05:17 AM
@KnarfB ,
nice, thanks!
Jan