wince 5.0 USART1 blocked at waitcommevent?

This forum is for users of Atmel's SAM Series and who are interested in using WinCE OS.

Moderator: nferre

misswhile
Posts: 8
Joined: Thu Jul 29, 2010 1:21 pm

wince 5.0 USART1 blocked at waitcommevent?

Wed Aug 18, 2010 12:37 pm

hi,I have write a app to test COM,
first i wirte a receive thread to waiting the WaitCommEvent return, at firist time i get EV_RXCHAR and can read 2 bytes data(data is right), when i send more data to my board on pc,my board can not return from WaitCommEvent.

But if i delete WaitCommEvent,and direct read the File hand as belown:

memset( recvBuf,0,124);
BOOL fReadState = ReadFile(m_hComm, recvBuf, 1024, &dwLength, NULL);
i can read the right data send from pc.

My question is The wince5.0 (download form at91 for atmel9260) usart dirver do not support this event or some thing wrong in my app,
thank you~
reigys
Posts: 3
Joined: Fri Aug 06, 2010 5:17 am

Re: wince 5.0 USART1 blocked at waitcommevent?

Tue Aug 24, 2010 4:07 pm

Hi,
I have the same problem, at first time I get EV_RXCHAR and can read a character from pc, but after that I can't catch any more event.
I try both 9260ek and 9263ek bsp(latest version), both have this problem.

Can anybody help me?
Thank you.
craven
Posts: 14
Joined: Mon Aug 18, 2008 3:31 pm

Re: wince 5.0 USART1 blocked at waitcommevent?

Thu Aug 26, 2010 3:02 pm

I have the same problem on at91sam9263.
It looks like that an interrupt is missed! This is caused by the DisableInt() function. DisableInt() completely(!!!) disables processor interrupts at lowest level (CPSR). In my opinion this is a horrible solution as this also might break the interrupt handling of the whole system.
Adeneo
Contact:
Location: France - USA
Posts: 183
Joined: Fri May 14, 2004 9:58 am

Re: wince 5.0 USART1 blocked at waitcommevent?

Mon Aug 30, 2010 2:10 pm

Hi all,

The updates of the WinCE 6.0 BSP has priority over CE 5.0, so there is no update planned on WinCE 5.0 for the moment.

The serial driver of CE 6.0 has been improved and is more compatible with the win32 serial functions.
The easier way is that you back-port the WinCE 6.0 serial driver to CE 5.0.
The BSP has been modified and we pushed the new version to ATMEL but it seems that the web site has not been yet updated.

Please contact our sales service at sales.emea@adeneo-embedded.com to get the new version of the BSP for your target.

HTH

If this answer solves your problem, please edit the subject of this post by adding [Solved] at the beginning of the subject.
th007sw
Posts: 1
Joined: Mon Apr 19, 2010 12:41 pm

Re: wince 5.0 USART1 blocked at waitcommevent?

Thu Dec 16, 2010 12:44 pm

hi,all
I have the same problem on at91sam9g45,Is this a bug of the BSP?

Return to “WinCE”

Who is online

Users browsing this forum: No registered users and 1 guest