ff000000.serial: ttyPS0 at MMIO 0xff000000 (irq = 47, base_baud = 6249999) is a xuartps 解决办法

在Vivado工程中配置PS端UART0波特率为115200,但在Petalinux配置时,默认波特率9600无法更改,导致系统打印停滞。此问题可能由于Petalinux配置工具的bug引起,表现为波特率不匹配,系统输出看似停止。参考相关链接,可发现配置过程中波特率被错误地设置为9600,需要找到解决此冲突的方法。

这个问题主要会在添加axi-uartlite后出现,尤其是当uartlite波特率为9600。
其主要问题是:
在vivado工程中,可以将PS端的uart0串口波特率设置为115200,但是在petalinux配置过程中其默认波特率为9600,且无法修改。

在这里插入图片描述

工程配置
petalinux-config --get-hw-description …/hardware/ 进行配置
Subsystem AUTO Hardware Settings —> Serial Settings —> System stdin/stdout baudrate for psu_uart_0 (115200) —>
在这里插入图片描述

如果uartlite波特率设置为9600,则在这一步会将uart波特率也设置为9600,应该是系统的bug。表现为系统打印时,到某一步会自动停止,其实并没有停止,只是波特率不对,所以不显示。

参考添加链接描述

1.163690] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized [ 1.165813] stm32-usart 40010000.serial: interrupt mode for rx (no dma) [ 1.165836] stm32-usart 40010000.serial: interrupt mode for tx (no dma) [ 1.165870] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 51, base_baud = 4000000) is a stm32-usart [ 2.406542] printk: console [ttySTM0] enabled [ 2.415608] panel-simple panel-rgb: panel-rgb supply power not found, using dummy regulator [ 2.426583] spi_stm32 44004000.spi: driver initialized [ 2.432010] stm32-dwmac 5800a000.ethernet: PTP uses main clock [ 2.436434] stm32-dwmac 5800a000.ethernet: no reset control found [ 2.442505] stm32-dwmac 5800a000.ethernet: No phy clock provided... [ 2.449373] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42 [ 2.455685] stm32-dwmac 5800a000.ethernet: DWMAC4/5 [ 2.460700] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported [ 2.468015] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported [ 2.475241] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported [ 2.482132] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported [ 2.488391] stm32-dwmac 5800a000.ethernet: TSO supported [ 2.493674] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer [ 2.501526] stm32-dwmac 5800a000.ethernet: device MAC address f2:a8:10:6d:12:47 [ 2.508824] stm32-dwmac 5800a000.ethernet: TSO feature enabled [ 2.514900] libphy: stmmac: probed [ 2.521817] stm32_rtc 5c004000.rtc: registered as rtc0 [ 2.525875] stm32_rtc 5c004000.rtc: Date/Time must be initialized [ 2.531662] stm32_rtc 5c004000.rtc: registered rev:1.2 [ 2.553910] stm32f7-i2c 40013000.i2c: using dma1chan2 (tx) and dma1chan3 (rx) for DMA transfers [ 2.562225] stm32f7-i2c 40013000.i2c: STM32F7 I2C-0 bus adapter [ 2.584305] stm32f7-i2c 40015000.i2c: using dma1chan4 (tx) and dma1chan5 (rx) for DMA transfers [ 2.592577] stm32f7-i2c 40015000.i2c: STM32F7 I2C-1 bus adapter [ 2.599329] mmci-pl18x 48004000.sdmmc: mmc0: PL180 manf 53 rev2 at 0x48004000 irq 39,0 (pio) [ 2.634301] mmci-pl18x 58005000.sdmmc: mmc1: PL180 manf 53 rev2 at 0x58005000 irq 45,0 (pio) [ 2.648810] mmci-pl18x 48004000.sdmmc: card claims to support voltages below defined range [ 2.670470] mmc0: new high speed SDIO card at address 0001 [ 2.681751] mmci-pl18x 58007000.sdmmc: mmc2: PL180 manf 53 rev2 at 0x58007000 irq 46,0 (pio) [ 2.718924] stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0 [ 2.732334] panel-simple panel-rgb: panel-rgb supply power not found, using dummy regulator [ 2.746263] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 2.751518] [drm] Driver supports precise vblank timestamp query. [ 2.760032] [drm] Initialized stm 1.0.0 20170330 for 5a001000.display-controller on minor 0 [ 2.808678] Console: switching to colour frame buffer device 100x30 [ 2.820036] mmc2: new high speed MMC card at address 0001 [ 2.821370] mmcblk2: mmc2:0001 MK008A 7.23 GiB [ 2.823185] mmcblk2boot0: mmc2:0001 MK008A partition 1 4.00 MiB [ 2.823843] mmcblk2boot1: mmc2:0001 MK008A partition 2 4.00 MiB [ 2.837830] mmcblk2rpmb: mmc2:0001 MK008A partition 3 4.00 MiB, chardev (242:0) [ 2.861389] stm32-display 5a001000.display-controller: fb0: stmdrmfb frame buffer device [ 2.874473] stm32_rtc 5c004000.rtc: setting system clock to 2000-11-09T02:58:35 UTC (973738715) [ 2.882661] ALSA device list: [ 2.884894] No soundcards found. [ 2.892378] mmcblk2: p1 p2 p3 [ 2.902100] Waiting for root device /dev/mmcblk1p3... 启动失败
最新发布
12-01
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值