MIMXRT1052 fsl_spdif driver bug

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MIMXRT1052 fsl_spdif driver bug

453 Views
mmlee
Contributor II

Hello!

It's impossible to satisfy assert in the fsl_spdif driver for the MIMXRT1052, in the newest SDK (2.5.0):

void SPDIF_WriteBlocking(SPDIF_Type *base, uint8_t *buffer, uint32_t size)
{
assert(buffer);
assert(size / 6U == 0U);

as well as:

void SPDIF_ReadBlocking(SPDIF_Type *base, uint8_t *buffer, uint32_t size)
{
assert(buffer);
assert(size / 6U == 0U);

I assume it's supposed to be:

assert(size % 6U == 0U);

I guess this is the case for all the IMXRT processors.

0 Kudos
1 Reply

349 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi mmlee:

Thank you for your feedback. I think you are right. I will report it to the developers

Regards

Daniel

0 Kudos