Hi NXP Community,
I want to use the UART1 on our board (referenced S32G-VNP-RDB2) in Linux System.
As I execute "echo "XXX" > /dev/ttyLF1", I could not probe the signal on UATR1 TXD.
I could not communicate with other PC using minicom through UART1 either(I use BSP_37).
How could I use the UART1 in Linux System?
Solved! Go to Solution.
已解决! 转到解答。
Hi,
Thanks for your feedback. If you are not able to see ttyLF1 being listed, then other changes may have been made. We were able to get our hands on an RDB2 and we can see the same outcome as before:
Please, let us know.
No, it's not a solution. I want to use UART1 on the A core, not the M core. For example, I want to communicate with peripherals through UART1 on the A core, but I cannot send or receive messages through UART1 using BSP37 Linux. Could you please provide me with help? Where do I need to modify the code
Hi,
Thanks for your feedback and we apologize for our misunderstanding. We will verify the correct steps (if possible) and update you as soon as we can.
We apologize for any delay from our side.
Please, let us know.
Hi,
It seems that modifications to the device tree are required. Once we modified the device tree, we are able to ping through UART1:
Since you are working with an RDB2, the following modifications should be done under the "linux\arch\arm64\boot\dts\freescale\s32gxxxa-rdb.dtsi" file:
Once modified, the image needs to be compiled. Once compiled, the following files need to be replaced under the "boot" partition of your SD card:
With that, you should be able to use UART1.
Please, let us know.
Thank you very much for your reply. After modifying according to the method you provided, the device ttyLF1 is no longer available. Are you using the BSP37 version of Linux? I will use the BSP37 version of Linux directly, and there will be ttyLF1 as the device, but it cannot communicate。can you give me some help?
Hi,
Thanks for your feedback. As shown under our previous image, we are using BSP37.0 for this modification:
As for ttyLF1 not being available, since the modifications we shown are only related to pin mapping, the serial1 device should not be affected. Can you help us share the full boot log of your system? Also, help us adding the following command to your log:
dmesg | grep ttyLF1
As a note, we compiled Linux manually then copy the previously mentioned files into the boot partition of our SD card. The base BSP37.0 image we used was the pre-compiled image provided by NXP (under a *.tgz file).
Please, let us know.
I have noticed a difference. You are using the development board and device tree of s32g274aevb3, while I am using the development board and device tree of s32g274ard2. Could you please provide information on how to modify s32g274ard2?
I have noticed a difference. You are using the development board and device tree of s32g274aevb3, while I am using the development board and device tree of s32g274ard2. Could you please provide information on how to modify s32g274ard2?
Hi,
At this moment, EVB3 is the platform we have available. Still, the steps we provided were on regards of RDB2:
"
Since you are working with an RDB2, the following modifications should be done under the "linux\arch\arm64\boot\dts\freescale\s32gxxxa-rdb.dtsi" file:
...
Once modified, the image needs to be compiled. Once compiled, the following files need to be replaced under the "boot" partition of your SD card:
"
Are working with Yocto project or are you building the component manually? Can you help us share the respective logs from your setup?
Please, let us know.
I modified according to the method you provided and working with Yocto project .I used the dmseg | grep ttyTL1 command to search for the log of ttyTL1, but there was no output。As shown in the following figure
Hi,
Thanks for your feedback. If you are not able to see ttyLF1 being listed, then other changes may have been made. We were able to get our hands on an RDB2 and we can see the same outcome as before:
Please, let us know.