cancel
Showing results for 
Search instead for 
Did you mean: 

Update Current Settings in MCW without changing peripherals and pin configuration

PCama.1
Associate III

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

2 REPLIES 2
GMA
ST Employee

@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:

GMA_0-1751874900222.png

 

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
PCama.1
Associate III

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...