Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: wince 5.0 USART1 blocked at waitcommevent?
PostPosted: Wed Aug 18, 2010 12:37 pm 
Offline

Joined: Thu Jul 29, 2010 1:21 pm
Posts: 8
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~


Top
 Profile  
 
 Post subject: Re: wince 5.0 USART1 blocked at waitcommevent?
PostPosted: Tue Aug 24, 2010 4:07 pm 
Offline

Joined: Fri Aug 06, 2010 5:17 am
Posts: 3
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.


Top
 Profile  
 
 Post subject: Re: wince 5.0 USART1 blocked at waitcommevent?
PostPosted: Thu Aug 26, 2010 3:02 pm 
Offline

Joined: Mon Aug 18, 2008 3:31 pm
Posts: 15
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.


Top
 Profile  
 
 Post subject: Re: wince 5.0 USART1 blocked at waitcommevent?
PostPosted: Mon Aug 30, 2010 2:10 pm 
Offline

Joined: Fri May 14, 2004 9:58 am
Posts: 183
Location: France - USA
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.


Top
 Profile  
 
 Post subject: Re: wince 5.0 USART1 blocked at waitcommevent?
PostPosted: Thu Dec 16, 2010 12:44 pm 
Offline

Joined: Mon Apr 19, 2010 12:41 pm
Posts: 1
hi,all
I have the same problem on at91sam9g45,Is this a bug of the BSP?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: