UART output garbled

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

UART output garbled

Jump to solution
886 Views
caibai
Contributor III

hi,

    i run FreeRTOS on cortex-M4 and linux on cortex-A9,when i run demo app <FreeRTOS_BSP_1.0.0_iMX6SX/examples/imx6sx_sdb_m4/demo_apps/low_power_imx6sx/periodic_wfi_qspi> and cortex-M4 uart garbled after linux startup,it seems that uart clock is change,what can i do?

选区_009.png

Labels (1)
0 Kudos
1 Solution
657 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi cai bai,

Sometimes there are problems in clock sync when A9 starts. Run your system and stop the bootloader, then apply the following commands and run your application.

env default -a

setenv fdt_file imx6sx-sdb-m4.dtb

setenv bootcmd "run m4boot;${bootcmd}"

setenv mmcargs "${mmcargs} uart_from_osc"

saveenv

Please let me know if it works.


Regards,
Carlos

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

View solution in original post

3 Replies
658 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi cai bai,

Sometimes there are problems in clock sync when A9 starts. Run your system and stop the bootloader, then apply the following commands and run your application.

env default -a

setenv fdt_file imx6sx-sdb-m4.dtb

setenv bootcmd "run m4boot;${bootcmd}"

setenv mmcargs "${mmcargs} uart_from_osc"

saveenv

Please let me know if it works.


Regards,
Carlos

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

657 Views
caibai
Contributor III

it work now ,thank you very much

657 Views
caibai
Contributor III

i find that uart root clock will change from osc to PLL3 ,so when i get this change on cortext-M4, then reconfigure uart like

DbgConsole_Init(BOARD_DEBUG_UART_BASEADDR,80000000,115200);

but it also output garbled.

when are the clock init in linux

0 Kudos