2025-06-24 10:35 AM
We are using MCWB 6.3.2
We generated a project that is working fine. However, testing our motor close to its peak current, we have been getting an over current fault.
We decided to increase Over current protection (OCP) Digital Filter Duration and Threshold (well within our system limits). We then go to 'Project HW & Info' and Run CubeMx. From there we generate the project.
Our main.c file is intact as well as the peripherals and pin configuration. However, we are not sure that the Digital Filter Duration and threshold have been updated.
Would you please, confirm that this is the correct workflow and where in the code I could confirm that our changes made through? We read somewhere that topology changes are not possible at this point, but this is not considered a topology change, correct? For us to generate new project every time would be very laborious giving that we have an extensive use of peripherals.
Would it be possible to turn OC protection off and even DP off momentarily for testing purposes only?
Best regards
2025-07-07 12:56 AM
@Hello @PCama.1,
After modifying parameters on workbench user interface, you should generate the project with workbench tool first (only running CubeMx at this point, will use the current unmodified .ioc file).
OC/DP protection could be disabled on workbench user interface:
2025-07-08 9:18 AM
Thank you for your reply!
However, if I do as you suggest, the CubeMx manual settings for our own timers and peripherals will be deleted, correct? We were hoping for a way that we could turn OCP on and off and keeping our CubeMx and main file intact...