This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Basics: C programming for ARM - AHB transfers

Note: This was originally posted on 18th September 2007 at http://forums.arm.com

Hello,
Would someone please help me about the next basic things?
I have programed microcontrollers in the past but now I need to work with ARM processors and need some basic pieces to connect the puzzle.
I wil write a C/C++ code for ARM966 but I don't know what to do in the code to communicate to an AHB peripheral. It should be memory mapped but I don't know at what location and if I need to do the memory initalisation at the start of the code or I can read it from somewhere - I have not been able so far to find a clear document about that.
Also, I expect that is enough for me to write to that location in the memory and to read from it and the compiler 'armcc' will take care of generating AHB transaction data that will go to ARM AHB interface ports. I am right or there are specific C functions for AHB transfers in both directions?
I expect to have a library of the C functions that I can use in the code but also somehow I couldn't find the place where it is explained.
I have been digging over RealView 3.0 (Unix) directories in the search for that and I see several header files (like rt_heap.h, rt_memory.h and so on) but I don't have any single C project example where I can see their usage.
I would really apreciate if someone can give me some examples or point me to a location where I can read about that.
The same questions go for the tightly coupled memory (TCM) - where is it in the memory map and so on.
Any help is appreciated.
Thank you very much,
joewu
Parents
  • Note: This was originally posted on 18th September 2007 at http://forums.arm.com

    As a programmer you don't see the details of the bus protocol (AHB / AXI / etc) - the hardware does all of this for you, so don't worry about it. The compiler will generate "load" and "store" instructions - the ARM core will handle the rest =P

    Simply use standard C pointer operations (with appropriate volatile type modifiers) to access data from the hardware peripheral you want to connect to.

    Cheers,

    I
Reply
  • Note: This was originally posted on 18th September 2007 at http://forums.arm.com

    As a programmer you don't see the details of the bus protocol (AHB / AXI / etc) - the hardware does all of this for you, so don't worry about it. The compiler will generate "load" and "store" instructions - the ARM core will handle the rest =P

    Simply use standard C pointer operations (with appropriate volatile type modifiers) to access data from the hardware peripheral you want to connect to.

    Cheers,

    I
Children
No data