Other Parts Discussed in Thread: MOTORWARE
I'm using instaspin FOC with motorware 01_01_00_16.
I have a problem about the HAL_setTrigger() function which is different from the previous version code I used.
I think there might be a problem with the code.
When one or two shunts are ignored the offset is calculated as:
offset = pwmCMPAX + cmpOffset;
However when pwmCMPAX has a large value (which should be normal in this situation).
The offset is going to be larger than he period value and the ADC sample could not be triggered in the next cycle.
I think this could be a problem.
Or you intend to do that? Why?
Best,
George