[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Serial port ttys0 and ttys2




We made a program for checking the serial port. The program store 
received data in a file (in the /tmp directory). The program run at 
115200 bauds and it run very well on the ttys0.

But, with the same program we have a problem on the ttys2. The received 
data are not complet (The program lost some data).

We have a .config file like this (Axis Developer Board LX) :

I don't know what to do with CONFIG_ETRAX_RESCUE_SER2=y
And, I made a link /dev/console -> /dev/null

#
# Hardware setup
#
CONFIG_ETRAX100LX=y
# CONFIG_ETRAX100LX_V2 is not set
# CONFIG_SVINTO_SIM is not set
CONFIG_CRIS_LOW_MAP=y
CONFIG_ETRAX_DRAM_VIRTUAL_BASE=60000000
CONFIG_ETRAX_DRAM_SIZE=8
CONFIG_ETRAX_FLASH_BUSWIDTH=2
CONFIG_ETRAX_ROOT_DEVICE="/dev/mtdblock3"
CONFIG_ETRAX_PA_LEDS=y
# CONFIG_ETRAX_PB_LEDS is not set
# CONFIG_ETRAX_CSP0_LEDS is not set
# CONFIG_ETRAX_NO_LEDS is not set
CONFIG_ETRAX_LED1G=2
CONFIG_ETRAX_LED1R=2
CONFIG_ETRAX_LED2G=2
CONFIG_ETRAX_LED2R=2
CONFIG_ETRAX_LED3G=2
CONFIG_ETRAX_LED3R=2
# CONFIG_ETRAX_DEBUG_PORT0 is not set
# CONFIG_ETRAX_DEBUG_PORT1 is not set
# CONFIG_ETRAX_DEBUG_PORT2 is not set
# CONFIG_ETRAX_DEBUG_PORT3 is not set
CONFIG_ETRAX_DEBUG_PORT_NULL=y
# CONFIG_ETRAX_RESCUE_SER0 is not set
# CONFIG_ETRAX_RESCUE_SER1 is not set
CONFIG_ETRAX_RESCUE_SER2=y
# CONFIG_ETRAX_RESCUE_SER3 is not set
CONFIG_ETRAX_DEF_R_WAITSTATES=95f8
CONFIG_ETRAX_DEF_R_BUS_CONFIG=104
# CONFIG_ETRAX_SDRAM is not set
CONFIG_ETRAX_DEF_R_DRAM_CONFIG=1a200040
CONFIG_ETRAX_DEF_R_DRAM_TIMING=5611
CONFIG_ETRAX_DEF_R_PORT_PA_DIR=1d
CONFIG_ETRAX_DEF_R_PORT_PA_DATA=f0
CONFIG_ETRAX_DEF_R_PORT_PB_CONFIG=00
CONFIG_ETRAX_DEF_R_PORT_PB_DIR=1e
CONFIG_ETRAX_DEF_R_PORT_PB_DATA=f3
# CONFIG_ETRAX_SOFT_SHUTDOWN is not set

-- 
Philippe Frossard