STM32G431CBU6 - problems with Motor Pilot UART communication
Hello @all
The following problem hunts me since some weeks: I use a custom motor control PCB based on STM32G431CBU. Communication via UART works great through motor pilot but as soon as I start the motor, the comunication is gone and I cant stop the motor for a couple seconds. There are several error messages on the bottom, ASPEP PACKET UNKNOWN" , or sometimes:
and sometimes a CRC error...
On tart of the motor pilot when connecting to COM port, there are several errors indicated, one of them:
The NVIC priority is already set HAL_NVIC_SetPriority(DMA1_Channel2_IRQn, 3, 0); by default.
Baudrate is 1843200.
I tried using USB isolator , using a notebook with battery and without power supply, to see whether its caused by noise from the ground. Nothing changed.
When I dont log any parameters like phase current A, B, communication is a bit better. But as soon as I want to log data, the traffic seems too high to handle and communication breaks down.
Help is very much appreciated.
