I’ve been trying to get a can board memory-mapped into the system but seem
to fail each time. I want it’s IO to go into 0xD0000, which the board is
set up for. I was doing this with shm_open of Physical and mmap.
I think I’ve narrowed it down to a bad address being mmap’d. I copied the
sh_mem example 1 from the help viewer and ran it. It tells me that the "Map
addr is 00E000 even though the “off” parameter to mmap is 0xf0000. I assume
“Physical” starts at 0000 but even changing the “off” (F0000) to other
values, addr still is 00E000.
I was expecting addr to be 0xf0000.
So, using the example, how can I talk with a memory-mapped board at 0xF0000?
I am using QNX 4.25H and am compiling with -T1 and -g3.