Hi dears,
I'm using a FRDM-K82F and I'm trying to use a FLEXIO_UART and a FLEXIO_I2C simultaneously.
I'm using the sdk 2.0 examples as start point:
I2C is using SHIFTER0, BUFFER0, SHIFTER1 and BUFFER1.
UART is using SHIFTER2, BUFFER2, SHIFTER3 and BUFFER3.
But, after redirecting UART's SHIFTERs and BUFFERs to another resources the program does not work. There is not I2C communication neither UART communication.
What could I do to put those implementation to work properly?
What else is necessary to reconfigure?
Best regards,
Luis
Hi,
i think it is okay to implement both UART and IIC for the FlexIO module, regarding your issue, maybe you code has issue. Pls refer to the doc about FlexIO module.
https://community.freescale.com/docs/DOC-105640
BR
XiangJun Rong
Dear XiangJun Rong,
I already know that doc. It refers about of use of FLEXIO_DRIVER but not include information about FLEXIO_I2C DRIVER or FLEXIO_UART DRIVER and my questions it's about of those two last mentioned drivers.
I've just copied two kds2.0 driver examples (FLEXIO_I2C and FLEXIO_UART) and include both in one project.
I use #ifdef compiler directive to compile each one separately in the same project. Separately, each one works nicely, but together does not works.
Some details of reconfiguration for using FLEXIO_UART INTERRUP TRANSFER example:
IFLEXIO_UART_Type uartDev variable was reconfigured:
uartDev.shifterIndex[0] = 2U; //original value was 0U
uartDev.shifterIndex[1] = 3U; //original value was 1U
uartDev.timerIndex[0] = 2U; //original value was 0U
uartDev.timerIndex[1] = 3U; //original value was 1U
What could I do to put those implementation to work properly?
What else is necessary to reconfigure?
Best regards,
Luis
Hi, Luis,
Regarding your issue, I think you have to debug in the FlexIO register level to track the issue.
BR
XiangJun Rong