Could someone help with MCP overrun errors ?
Hi, first the good news: I have motor control up and working. And communication with the workbench works fine. Having read up on the ST motor control protocol, and watching serial comms with the HHD software device monitor app, I can see that commands are 4 to 6 bytes, and acknowledges about the same. I've extended the protocol (by subclassing MCP_Init), to add a custom command and acknowledge, that are each 10 or so bytes. And I was shocked to find that mostly, it works. Now the bad news, I get error acknowledges indicating 'overrun', when the motor is running. The help on this error is not much help :\ Can anyone shed some light on how to resolve? I have as one does, tried a bunch of things, all either destabilised motor control or didn't help. Very briefly 1) Experimenting with USART1 NVIC prio wrt TIM2. 2) Lowering or raising baud from the present 9600. 3) Inserting an inter-byte delay to the command and/or acknowledge. 4) In Cube, disabling overrun detect, however the overrun error seems to be something different. 5) Searching this forum, and consulting google. More details available, hopefully this suffices for an opener. Best regards, David