Enable Serial Output debugging on the friendly 2440 Development Board
Favorites
2440 Development Board, WINCE6.0 system. When the system was started, it was found that the serial port tool did not output any information. Google, it turned out to be friendly and blocked.
Solution:
1. Modify the Debug. c file and add # define BSP_DEBUG_UART0, as shown below:
- // Function: OEMInitDebugSerial
- //
- // Initializes the debug serial port
- //
- # If defined (KITL_SERIAL_UART0)
- # Define BSP_DEBUG_UART0
- # Elif defined (KITL_SERIAL_UART1)
- # Define BSP_DEBUG_UART1
- # Endif
- # Define BSP_DEBUG_UART0 // add
- # Undef BSP_DEBUGPORT
- # If defined (BSP_DEBUG_UART0) | defined (BSP_DEBUG_UART1)
- # Define BSP_DEBUGPORT
- # Endif
// Function: OEMInitDebugSerial // Initializes the debug serial port // # if defined (KITL_SERIAL_UART0) # define BSP_DEBUG_UART0 # elif defined (KITL_SERIAL_UART1) # define attributes # endif # define BSP_DEBUG_UART0 // add # undef BSP_DEBUGPORT # if defined (BSP_DEBUG_UART0) | defined (BSP_DEBUG_UART1) # define BSP_DEBUGPORT # endif
2. Modify platform. reg to shield the configuration code related to serial port 0.
3. Rebuild the image and install it.
----------------------------------------------------------
Respect others' labor results, reprinted please indicate the source http://www.cnblogs.com/feishanm