Skip navigation.
Home
The QNX Community Portal

View topic - mmap_device_io works first time, fails all others til reboot

mmap_device_io works first time, fails all others til reboot

For discussion of realtime and/or embedded programming.

mmap_device_io works first time, fails all others til reboot

Postby corrumpu » Fri Mar 05, 2010 4:26 pm

So i have an opto isolated dio card at base address 0x200.
After i do the first mmap_device_io after a reboot the card is mapped properly and I see the device id registers that the manufacturer has populated to identify you have the board up and running.

After my first kill of the app (for debugging purposes) all subsequent mmap_ calls return what looks to be a valid address and seems happy but there is a disconnect as I can no longer read the proper values from these registers.

I'm in c++, qnx 6.3.x

--chris
corrumpu
Active Member
 
Posts: 11
Joined: Mon Dec 08, 2008 1:18 pm

RE: mmap_device_io works first time, fails all others til re

Postby mario » Fri Mar 05, 2010 5:21 pm

Maybe your code is leaving the card in an invalid state.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 2 guests