Hi,
AFAIK, the black pill received very little testing… That being said, it should work in theory.
First thing first, which of the two cores are you using (Maple or STM32duino)?
Secondly, did you manage to get an output using the default PWM mode?
Lastly, the pins seem correct, but I wonder if it should not be PA5, PA7 instead of A5 and A7.
Do not hesitate to report back, as I said, this MCU received very little (or no?) testing, hence your feedback is quite valuable!
Hope it helps,
Tom