I was trying to port your project for BluePill (see https://github.com/joric/ts80player), figures out HAL_TIM_PWM_PulseHalfFinishedCallback is never called. Also it looks like you really fill only the quarter of the buffer not the half as expected. So what's up with that. Have you really got a decent sound quality from that? I'm getting a lot of crackling.
That callback is never called, I wonder why:
htim1.hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = HAL_TIM_PWM_PulseHalfFinishedCallback;
This code clearly offsets only for a quarter of the buffer (FATFS_BUFFER_SIZE/2), not a half:
I was trying to port your project for BluePill (see https://github.com/joric/ts80player), figures out
HAL_TIM_PWM_PulseHalfFinishedCallback
is never called. Also it looks like you really fill only the quarter of the buffer not the half as expected. So what's up with that. Have you really got a decent sound quality from that? I'm getting a lot of crackling.That callback is never called, I wonder why:
htim1.hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = HAL_TIM_PWM_PulseHalfFinishedCallback;
This code clearly offsets only for a quarter of the buffer (FATFS_BUFFER_SIZE/2), not a half:
So what's up with that?