mmlee

MIMXRT1052 fsl_spdif driver bug

Discussion created by mmlee on Jan 17, 2019
Latest reply on Jan 17, 2019 by Daniel Chen

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.

Outcomes