Click here to Skip to main content
15,889,876 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to store a value at the specified location in RAM. Pin
chandu0049-Nov-08 23:38
chandu0049-Nov-08 23:38 
QuestionRe: how to store a value at the specified location in RAM. Pin
CPallini9-Nov-08 23:56
mveCPallini9-Nov-08 23:56 
AnswerRe: how to store a value at the specified location in RAM. Pin
chandu00410-Nov-08 0:20
chandu00410-Nov-08 0:20 
AnswerRe: how to store a value at the specified location in RAM. Pin
Iain Clarke, Warrior Programmer9-Nov-08 23:52
Iain Clarke, Warrior Programmer9-Nov-08 23:52 
GeneralRe: how to store a value at the specified location in RAM. Pin
chandu00410-Nov-08 2:32
chandu00410-Nov-08 2:32 
QuestionRe: how to store a value at the specified location in RAM. Pin
David Crow10-Nov-08 3:15
David Crow10-Nov-08 3:15 
AnswerRe: how to store a value at the specified location in RAM. Pin
Nemanja Trifunovic10-Nov-08 7:52
Nemanja Trifunovic10-Nov-08 7:52 
AnswerRe: how to store a value at the specified location in RAM. Pin
Roger Stoltz10-Nov-08 4:50
Roger Stoltz10-Nov-08 4:50 
chandu004 wrote:
i need to use the memory available at a predefined address, say for example, 0xe000 2828 in RAM.


This is most likely a physical address and depending on what ARM architecture you're developing for, you may have an MMU[^] that maps physical addresses to virtual. This means you have to check your documentation for the following:
  1. Is your ARM architecture equipped with an MMU?
  2. If so, is it enabled?
  3. If 'yes', what API call are you supposed to make to read and write to and from physical addresses?


chandu004 wrote:
int *i=0xe000 2828;


Like Iain said, the compiler will swallow a type cast such as
int* pAddr = (int*)0xe0002828;
but depending on the MMU-stuff this will give you a virtual address which may not be what you need.
The documentation for your compiler and your chip ought to have information about this.

Finally:
Your problem is very specific to your environment, so it's very hard to advise you to anything but reading the documentation for your compiler and the chipset you're using. You haven't even informed us what ARM architecture you are targeting.
Also keep in mind that this forum is dedicated to developing windows applications with MFC and/or Win32 API, which is very different from developing for embedded systems.
Of course you may be developing with Windows CE for embedded systems, but you haven't really said so clearly. If that's the case you may need to call ReadPhysical()[^] or WritePhysical()[^].


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


AnswerRe: how to store a value at the specified location in RAM. Pin
Nemanja Trifunovic10-Nov-08 7:48
Nemanja Trifunovic10-Nov-08 7:48 
QuestionHelp Workshop question [SOLVED] Pin
Ahmed Charfeddine9-Nov-08 20:51
Ahmed Charfeddine9-Nov-08 20:51 
AnswerRe: Help Workshop question Pin
Iain Clarke, Warrior Programmer9-Nov-08 21:56
Iain Clarke, Warrior Programmer9-Nov-08 21:56 
GeneralRe: Help Workshop question Pin
Ahmed Charfeddine9-Nov-08 21:59
Ahmed Charfeddine9-Nov-08 21:59 
Questionclosing of a dialog box on button click problem! Pin
Dhiraj kumar Saini9-Nov-08 20:31
Dhiraj kumar Saini9-Nov-08 20:31 
AnswerRe: closing of a dialog box on button click problem! Pin
_AnsHUMAN_ 9-Nov-08 20:36
_AnsHUMAN_ 9-Nov-08 20:36 
GeneralRe: closing of a dialog box on button click problem! Pin
Dhiraj kumar Saini9-Nov-08 20:41
Dhiraj kumar Saini9-Nov-08 20:41 
GeneralRe: closing of a dialog box on button click problem! Pin
_AnsHUMAN_ 9-Nov-08 20:47
_AnsHUMAN_ 9-Nov-08 20:47 
GeneralRe: closing of a dialog box on button click problem! Pin
Dhiraj kumar Saini9-Nov-08 20:59
Dhiraj kumar Saini9-Nov-08 20:59 
GeneralRe: closing of a dialog box on button click problem! Pin
_AnsHUMAN_ 9-Nov-08 21:19
_AnsHUMAN_ 9-Nov-08 21:19 
GeneralRe: closing of a dialog box on button click problem! Pin
SandipG 9-Nov-08 21:26
SandipG 9-Nov-08 21:26 
GeneralRe: closing of a dialog box on button click problem! Pin
Dhiraj kumar Saini9-Nov-08 22:23
Dhiraj kumar Saini9-Nov-08 22:23 
GeneralRe: closing of a dialog box on button click problem! Pin
enhzflep9-Nov-08 22:30
enhzflep9-Nov-08 22:30 
GeneralRe: closing of a dialog box on button click problem! Pin
Dhiraj kumar Saini9-Nov-08 22:50
Dhiraj kumar Saini9-Nov-08 22:50 
GeneralRe: closing of a dialog box on button click problem! Pin
enhzflep9-Nov-08 22:57
enhzflep9-Nov-08 22:57 
GeneralRe: closing of a dialog box on button click problem! Pin
Dhiraj kumar Saini9-Nov-08 23:05
Dhiraj kumar Saini9-Nov-08 23:05 
GeneralRe: closing of a dialog box on button click problem! Pin
Iain Clarke, Warrior Programmer10-Nov-08 0:00
Iain Clarke, Warrior Programmer10-Nov-08 0:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.