Hi,
We were working on LS1021 ATWR. We needs Serial Ports 3 and 8 to support both synchronous and asynchronous. Did qe driver supports both? I needs UART protocol for asynchronous mode and SDLC protocol for synchronous mode. what drivers I needs to enable to support both protocols in the same port?
Hi Pavel,
Now both HDLC and UART send and receiving when software loopback is enabled. But it was working when both are assigned to different ports ucc1 and ucc3.
We wants to both HDLC and UART in same port. When I tried to modify dts for that, UART is not getting binded. ucc_uart probe is not getting called. How to enable both the protocols in the same port? I can work on switching between two protocols with the help of QEIWRM. But, I don't know how to enable both the protocols.
Should I do SysArch & Info Internetworks or SysArch & Intelligence? I'm not really sure about intelligence but I also know AI and deep learning are big on the job industry right now so it would probably be best to finish college with knowledge on those subjects. Could someone explain a bit on each thread?
NXP Linux BSP does not support UCC UART for the LS1021a.
This BSP supports HDLC or TDM for the LS1021a.
Hi Pavel,
HDLC is throwing some kernel panic when I tested. I have posted log in this link
Your log from community shows that HDLC is correctly works.
There is a problem for using HDLC and UART on the same port.
Is there problem for using HDLC and UCC UART on different ports?
Hi Pavel,
Can you tell me what is the issue in using UART and HDLC in same port? Also How to enable them for different ports? I am using default kernel and dts from NXP. I enabled UART and HDLC related things in menuconfig alone.
The main problem for using UART and HDLC in same port is reconfiguration between UART and HDLC.
The LS1021a UCC requires different configuration for UART and HDLC. Software should stop one protocol and set initialization for different protocol.
It looks like problem concerns of this software.
Hi Pavel,
Thanks for your info. We will modify the software to enable switching between 2 protocols. Before that, I wants to test them individually. That's why I enabled both. I have 2 questions
1. Hope you saw my log. In that my concern is why HDLC Tx packet count not incrementing even after transmitting?
2. Now I have disabled HDLC in build, still UART is not transmitting after 1st instance. Do UCC-UART transmits only when it receives some sort of acknowledgement?
Do you use the Section 7.2.23 from LSDK 2004 User Guide?
Did you test UART using this QE ucode?
You driver should contains code for switching between Fast and slow protocols. It requires from QE hardware. Use recommendations from the QEIWRM.
Is the Switching steps same for all processors? Can you give the steps to be followed for switching protocols in LS1021? How to send PushSched command in LS1021?
Also, in which file should we do this switching steps implementation?
Thanks for your help so far.
I have looked our examples and BSP files.
There is no example for protocol switching.
It looks like it should be your code using QEIRM.
Thanks for your reply. I am closing this for now. Do you have any idea where we will add this switching steps ?
I tested with the QE code given by yipingwang. It was not transmitting after 1st instance. But after sometime, it works fine. And HDLC Tx packets as well as Rx packets starts incrementing. So, UART and HDLC working fine in different ports.
Can you help me to get both of them in same port? QEIWRM describes about how to switch between Fast and slow protocols. But I needs to know, how to setup both fast and slow protocol in same port so that switching between them can happen?