Changing Over Current Protection Comparator threshold does not change the Standby 1 and 2 outputs accordingly in the code
I'm currently trying to spin a motor using the STEVAL_SPIN3201 and the motor control workbench and when I add a small load I get the overcurrent fault. After some research in the source code I realised that the OCCOMP was indeed overcurrenting with the 100mV comparator threshold. I then tried to set the threshold to 500mV but when I generate the source code the OCTH_STBY2_Pin stays at GPIO_PIN_RESET and I still overcurrent. I tried changing manually in the source code the output for GPIO_PIN_SET and I don't overcurrent anymore but whenever I regenerate code from motor workbench this gets overwritten. Is there another setting in the motor workbench that prevents this threshold to change or is there a bug in the code generation?



Best regards,
