OpenQNX :: The QNX Community Portal

May 18, 2008 - 12:07 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 43 unlogged users and 1 registered user online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kranthim
Post subject: Retreive address of onboard flash ROM ???  PostPosted: Sep 06, 2007 - 06:56 AM
New Member


Joined: Sep 06, 2007
Posts: 2

Hi All,

I want to read data from onboard flash ROM, so I want the address list either through QNX system call or commands.

If I want to read image in the flash ROM from my target board, is there any procedure to do it.

Thanking you,

Regards,
kranthi.M
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Retreive address of onboard flash ROM ???  PostPosted: Sep 06, 2007 - 12:33 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2675

If the board is PCI based you should be able to get the physical address of the rom via the PCI register and/or pci_device_attach. If it's ISA, the address is most probably control via switched or hardwired.

Once you get the address you must map it with map_device_memory to get access to it.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kranthim
Post subject:   PostPosted: Sep 07, 2007 - 07:28 AM
New Member


Joined: Sep 06, 2007
Posts: 2

Hi,

I am currently working on VP5, 6U VME bus Embedded Computer. I have a 8MB onboard Flash memory mounted on to the board, how to identify weather it is PCI or not.
Can you provide me the system call details which you have provided me (pci_attach_device and map_device_memory)
It there is any sample code for reading data on the onboard flash, can you please provide me any source code.

Thanking you,

Regards,
Kranthi.M
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.