UART port 1 not working on LS1028A RDB

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

UART port 1 not working on LS1028A RDB

847 Views
fouad
Contributor II

Hi it's me again! I am using the LS1028A RDB UART 1 port to load an app via uboot and to recieve back the data sent by my application. Overnight the UART 1 stopped working, redirecting the app outputs on UART 2 works if i load the app by JTAG on OCRAM but i cannot communicate to uboot via UART 2 as it sends and recieves signals only trough UART 1. I would like to know if there could be a software workaround to redirect UART 1 signals on UART 2 peripheral, if it's possible that the problem is software knowing that the UART 1 port stays completely silent whitout showing even the uboot boot logs and if it's hardware what the most likely causes could be and what workarounds might be employed to solve it. Thank you again!

Labels (1)
0 Kudos
Reply
2 Replies

742 Views
fouad
Contributor II

hi yipingwang! Thank you, where can i find the atf directory? I do not have access to the uboot source code right now as i am using the uboot version preinstalled on the LS1028A flash memory

0 Kudos
Reply

748 Views
yipingwang
NXP TechSupport
NXP TechSupport

You need to modify and rebuild atf and u-boot source code to redirect UART1 to UART2.

In atf, plat/nxp/soc-ls1028a/include/soc.h, 

#define NXP_CONSOLE_ADDR        NXP_UART_ADDR

modify to 

#define NXP_CONSOLE_ADDR        NXP_UART1_ADDR

In u-boot source code, please add the following line in configs/ls1028ardb_tfa_defconfig

CONFIG_CONS_INDEX=2

Then rebuild u-boot and atf source code to generate new atf images and program them to the target board.

%3CLINGO-SUB%20id%3D%22lingo-sub-2344994%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUART%20port%201%20not%20working%20on%20LS1028A%20RDB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2344994%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20it's%20me%20again!%20I%20am%20using%20the%20LS1028A%20RDB%20UART%201%20port%20to%20load%20an%20app%20via%20uboot%20and%20to%20recieve%20back%20the%20data%20sent%20by%20my%20application.%20Overnight%20the%20UART%201%20stopped%20working%2C%20redirecting%20the%20app%20outputs%20on%20UART%202%20works%20if%20i%20load%20the%20app%20by%20JTAG%20on%20OCRAM%20but%20i%20cannot%20communicate%20to%20uboot%20via%20UART%202%20as%20it%20sends%20and%20recieves%20signals%20only%20trough%20UART%201.%20I%20would%20like%20to%20know%20if%20there%20could%20be%20a%20software%20workaround%20to%20redirect%20UART%201%20signals%20on%20UART%202%20peripheral%2C%20if%20it's%20possible%20that%20the%20problem%20is%20software%20knowing%20that%20the%20UART%201%20port%20stays%20completely%20silent%20whitout%20showing%20even%20the%20uboot%20boot%20logs%20and%20if%20it's%20hardware%20what%20the%20most%20likely%20causes%20could%20be%20and%20what%20workarounds%20might%20be%20employed%20to%20solve%20it.%20Thank%20you%20again!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2344994%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EEvaluation%20Board%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2346855%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20UART%20port%201%20not%20working%20on%20LS1028A%20RDB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2346855%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%20yipingwang!%20Thank%20you%2C%20where%20can%20i%20find%20the%20atf%20directory%3F%20I%20do%20not%20have%20access%20to%20the%20uboot%20source%20code%20right%20now%20as%20i%20am%20using%20the%20uboot%20version%20preinstalled%20on%20the%20LS1028A%20flash%20memory%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2346834%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20UART%20port%201%20not%20working%20on%20LS1028A%20RDB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2346834%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYou%20need%20to%20modify%20and%20rebuild%20atf%20and%20u-boot%20source%20code%20to%20redirect%20UART1%20to%20UART2.%3C%2FP%3E%0A%3CP%3EIn%20atf%2C%26nbsp%3Bplat%2Fnxp%2Fsoc-ls1028a%2Finclude%2Fsoc.h%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%23define%20NXP_CONSOLE_ADDR%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NXP_UART_ADDR%3C%2FP%3E%0A%3CP%3Emodify%20to%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%23define%20NXP_CONSOLE_ADDR%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NXP_UART1_ADDR%3C%2FP%3E%0A%3CP%3EIn%20u-boot%20source%20code%2C%20please%20add%20the%20following%20line%20in%26nbsp%3Bconfigs%2Fls1028ardb_tfa_defconfig%3C%2FP%3E%0A%3CP%3ECONFIG_CONS_INDEX%3D2%3C%2FP%3E%0A%3CP%3EThen%20rebuild%20u-boot%20and%20atf%20source%20code%20to%20generate%20new%20atf%20images%20and%20program%20them%20to%20the%20target%20board.%3C%2FP%3E%3C%2FLINGO-BODY%3E