The code you are using is for PT8211.
For TDA1543, you have to :
- exchange the high and low bytes order (it requires LSB then MSB, while your code is sending MSB then LSB)
- the TDA is fed with 5V, the STM32F1 is working with 3.3V - level adaptation may be necessary

The code you are using is for PT8211.
For TDA1543, you have to :
- exchange the high and low bytes order (it requires LSB then MSB, while your code is sending MSB then LSB)
- the TDA is fed with 5V, the STM32F1 is working with 3.3V - level adaptation may be necessary