Re: Setting up registers on PXA270?



XXX_Init, I suppose I need to access the registers by virtual
addresses, but I'm not sure how to do this. Is it ok to use
MmMapIoSpace() on them? I don't know if they are already controlled by
some other piece of code in the BSP that could cause conflicts.


Using MmMapIoSpace:

- It's OK to map the same physical memory to the virtual memory of
different processes at the same time, if that's what you're worried
about. You won't get a conflict because the GPIO driver has the same
memory mapped, but you WILL get a conflict if the GPIO driver happens
to be toggling your pin. Said conflict will be expressed in the form
of your device not working. You should check the documentation for
your BSP or call the people you bought it from and make sure that GPIO
is available

- Make sure your driver is running in kernel space and not user
space. User mode drivers can't access physical memory directly, as I
understand it

The only alternative I can think of is to modify RedBoot so it does
the required setup before CE even loads, but I don't know if this is a
sensible thing to do.

I agree with FoolBlah in that you should set your peripheral up in the
driver
.



Relevant Pages

  • Re: Windows Vista Home Premium
    ... If you recently updated a driver, ... IRQ 2 is a stepping block for I/O devices and remaps to other IRQs. ... Installed Physical Memory 4.00 GB ... Available Virtual Memory 6.43 GB ...
    (microsoft.public.windows.vista.performance_maintenance)
  • Re: Boots up in safe mode-graphics card message.
    ... 3- I have downloaded the updated drivers from the Device Manager, ... Unichrome driver for the device. ... It's still odd that you didn't see any conflict(s) listed since Code 12 is a conflict error. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Windows XP Repair
    ... Beginning dump of physical memory ... error in a non paging area and suggested an updated graphics driver. ... For more detailed information about this error see MVP Jim Eshelman's ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: stop error screen
    ... disable the driver or check with the manufacturer for driver ... Physical memory dump complete. ... Contact your system administrator or technical support group for further ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: My Laptop is going in the garbage!
    ... One of the error messages that I wanted him to fix was as follows: ... If a driver is identified in the stop message, disable the driver or check with the manufacture for driver updates. ... Beginning dump of Physical Memory ... Physical Memory dump Complete ...
    (microsoft.public.windowsxp.perform_maintain)

Loading