2440 external serial port driver debugging (Author: wogoyixikexie @ gliet)

Source: Internet
Author: User
2440 external serial port driver debugging (Author: wogoyixikexie @ gliet)

The previous week, the serial port MDD has been transplanted to BSP, and the three serial ports are already normal, but the external serial ports can only be sent and cannot be received. Later, I found that the external serial port was interrupted, but 2440 never reflected it. At first, I had been dead and thought that the eint1 initialization was correct, however, I did not expect that this initialization may be overwritten or modified elsewhere. After all, this BSP is not written by us. This is a headache. Fortunately, WinCE. He has written a register read/write tool. Now I am going to use it for use. I will report the result later.

-----------------------------------------------------

ARM-WinCE5.0-register read/write Tool

Original address http://www.cnblogs.com/we-hjb/archive/2008/10/23/1317176.html

To solve these two questions, I wrote a small software named memmgr.exe. The function is very clear. It is used to read and write registers in wince, including the control registers inside the CPU and the general online extended registers. In this way, we can monitor gpio, and we will never be afraid of anyone else. Registers on the control panel are also more convenient. The program interface is as follows:


Here, phyaddr is the physical address of the Register, such as the RTC register 0x57000070 of S3c2410. Length is the data width, 1 corresponds to a byte, 2 corresponds to a word, and 4 corresponds to a DWORD. Value corresponds to the register value.
This program runs on the wince5.0 of S3C2410 and PXA270. Because the memory management of wince6.0 has changed a lot, the program cannot work normally on ce6.0. If you need it again, open the road before the car arrives.
For memmgr.exe: http://files.cnblogs.com/we-hjb/memmgr.rar.

 

------------------------------------

 

Good. Now we can start testing. First, check whether the actual value of the eint1 register is reliable.

-- Indeed, this setting is incorrect. However, it is found that the program settings are correct and it is estimated that they are overwritten by other places.

Try again with application settings. After the settings are completed, an interruption occurs.

_______________________________________________________________________________________________________

Haha, this software is very powerful. Using it really makes a lot of difficult bugs escape! Thanks to sunrain_hjb!

 

Reprinted please indicate: Author wogoyixikexie @ gliet. guilin University of electronic science and technology, a Department of Science Association, the original address: http://www.cnblogs.com/wogoyixikexie/ (or my blog in csdn: http://blog.csdn.net/gooogleman) -- if there is a mistake, hope to leave a message to point out; if you have a better way, please leave a message after your blog. I will be grateful for your criticism and sharing.

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.