Modify SMDK6410 debug serial port is a serial port. (Wince system)

        Environment: Feiling OK6410A development board, Windows CE6.0 system

         Recently doing GPRS communication, but GPRS module (Q2403A) on hand is a five-wire serial interface (RXD, TXD, GND, RCS , CTS), the boss does not want to buy a new module. So consider debugging serial port COM1 serial port to use instead of ordinary (Feiling development board also this one 5-wire serial interface). The Internet to find some information, and then let Young fumbled under test, available information found online can not be modified successfully, he gives the right to modify the method after several days of efforts. Here Share this modified method, the desire to help fellow human have the same needs. For reference purposes only !

        step 1:

        Modify SMDK6410.bat file location: C: \ WINCE600 \ PLATFORM \ SMDK6410 \ SMDK6410.bat

will:

set BSP_NOSERIAL=

set BSP_NOUART0=1

set BSP_NOUART1=

set BSP_NOUART2=

set BSP_NOUART3=

set BSP_NOIRDA2=1

set BSP_NOIRDA3=1

......

setBSP_DEBUGPORT=SERIAL_UART0

@REM set BSP_DEBUGPORT=SERIAL_UART1

@REM set BSP_DEBUGPORT=SERIAL_UART2

@REM set BSP_DEBUGPORT=SERIAL_UART3

change into:

set BSP_NOSERIAL=

set BSP_NOUART0=

set BSP_NOUART1=

set BSP_NOUART2=

set BSP_NOUART3=

set BSP_NOIRDA2=1

set BSP_NOIRDA3=1

......

@REM set BSP_DEBUGPORT=SERIAL_UART0

@REM set BSP_DEBUGPORT=SERIAL_UART1

@REM set BSP_DEBUGPORT=SERIAL_UART2

@REM set BSP_DEBUGPORT=SERIAL_UART3


        Step 2:    

        The ser_smdk6410.cpp in setDTR the function is called and its contents at all commented out, its location: C: \ WINCE600 \ PLATFORM \ SMDK6410 \ SRC \ DRIVERS \ SERIAL


        Step 3:

       The debug.c file OEMWriteDebugByte a function of the content of comment out its position:


           Step 4:

           Recompile, you can generate an image.


          Above shall revise our method, currently running well. For reference purposes only !



Published 37 original articles · won praise 204 · views 440 000 +

Guess you like

Origin blog.csdn.net/zwgdft/article/details/7535357