stm32: use correct buffer size function for sw rts