Enable Serial Output debugging on the friendly 2440 Development Board

Source: Internet
Author: User
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:

  1. // Function: OEMInitDebugSerial
  2. //
  3. // Initializes the debug serial port
  4. //
  5. # If defined (KITL_SERIAL_UART0)
  6. # Define BSP_DEBUG_UART0
  7. # Elif defined (KITL_SERIAL_UART1)
  8. # Define BSP_DEBUG_UART1
  9. # Endif
  10. # Define BSP_DEBUG_UART0 // add
  11. # Undef BSP_DEBUGPORT
  12. # If defined (BSP_DEBUG_UART0) | defined (BSP_DEBUG_UART1)
  13. # Define BSP_DEBUGPORT
  14. # 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

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.