imx6ull evk - ttymxc1 loopback test is successful but read() always returns -1

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

imx6ull evk - ttymxc1 loopback test is successful but read() always returns -1

846 Views
sneha_raghunand
Contributor II

I am using the IMX6ull evk i.MX 6ULL Applications Processor | Single Arm® Cortex®-A7 @ 900 MHz |NXP 

I am trying to read the uart ttymxc1 and it was working fine till yesterday. Today, the same piece of code, with read() function returns -1 always.

I performed a loopback test to check the functionality of uart and the test is successful. Can you please help me on this ?

Edit: The read() function fails in both DMA and interrupt mode (tested spearately)

Thank you !

Tags (1)
4 Replies

641 Views
igorpadykov
NXP Employee
NXP Employee

Hi Sneha

probably sd card image become corrupted, one can try to reprogram image with

Demo Images from link

i.MX Software|NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

641 Views
sneha_raghunand
Contributor II

Hello Igor,

Thank you ! It worked. Do you know what could have caused the image to be corrupted ?

0 Kudos

641 Views
igorpadykov
NXP Employee
NXP Employee

Hi Sneha

it may become corrupted if power was suddenly removed

(not using linux poweroff).

Best regards
igor

641 Views
sneha_raghunand
Contributor II

Hi Igor,

Thank you ! The answer made sense to the situation that I had encountered

0 Kudos