1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Arm 7t and C++ code

Discussion in 'ARM' started by Gaza2k1, Nov 21, 2007.

  1. Gaza2k1

    Gaza2k1 New Member

    Joined:
    Nov 21, 2007
    Messages:
    3
    Likes:
    0
    Hi all, im sorry to ask for help on my first post but i am really stuck.
    I am a final year student who is working wiht the arm processor for
    the first time. I have been given the Arm Evaluator 7t board (samsung S3C4510X01).

    So far i have been successfully porgrammed the baord to do numerous tasks
    including writing to external Ram but this has all been using assembler language. I know need to write it in C++,and while i have a reasonable
    knowledge in writing C++ i have never written any for embbedded systems.
    I need help in understanding what header files are available, how to go about using them.

    taks i need to be able to do inluclude:-

    - transfering files via the uart.
    - writing to and reading from output pins
    - displaying text over uart
    - accessing specific registers for data maniplualtion


    Any help would be greatfully appreciated, this is for my final year project
    so i am not looking for answers but i have been banging my head against a
    brick wall so to speak so any advice/references or websites would be great

    thanks all

    Gareth

    p.s i am using the metrowerks codewarrior environment.
     
    Last edited: Nov 21, 2007
  2. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,227
    Likes:
    641
    Location:
    Derbyshire, UK
    ONLINE
    I've never seen that particular processor, but any required headers or include files should be supplied with the compiler, along with instructions or helpfiles for it. Also C++ isn't usually applicable to imbedded programming, usually it's just C that's used.
     
  3. Gaza2k1

    Gaza2k1 New Member

    Joined:
    Nov 21, 2007
    Messages:
    3
    Likes:
    0
    thanks for the reply. The processor is based around the arm 7t core but produced by samsung as arm dont fabricate their own chips.

    I have managed to find the header files in codewarrior and now have a bit more of an idea how to go about it. The only questions i still have is how would you go about accessing a particular memory address from C, and how
    is their a way a program running on the processor could request for a file location to be entered via a host pc and then the file at location on a host
    pc be opened and set via the uart?
    I have managed to use the usart to request and read single bit and strings
    but this operation is a bit more involved.

    again any help will be greatly appreciated
    thanks all
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,227
    Likes:
    641
    Location:
    Derbyshire, UK
    ONLINE

    I don't use C, and I don't use ARM - but presumably you have to write programs for both ends of the link to do what you want?.
     
  6. Gaza2k1

    Gaza2k1 New Member

    Joined:
    Nov 21, 2007
    Messages:
    3
    Likes:
    0
    hi, for the UART connection a dumb terminal (windows hyperterminal) can be used, so far i have written all the code in assembly and data requests can be sent from the board to the host and displayed on the screen and then data can be read from the keyboard, this works without any code on the host.

    Now if two separate codes are needed, which could be the case the interface betweeen the two would be an issue i do not know how to
    resolve.

    However i was jst playing with hyperterminal and their is a send file option
    in the tool bar which if could be used would be sufficient. this may be a
    plausable method although i have never used it before.

    thanks again
     
  7. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,227
    Likes:
    641
    Location:
    Derbyshire, UK
    ONLINE
    If all you want is a dumb terminal on the PC end, then Hyperterminal is fine - but from what you said you wanted somewhat more than that?.

    If you're going to do file transfers, you need to consider the protocol you're going to use - Hyperterminal supports a number of different ones.

    Going back a LONG time (pre-Windows) I implemented XMODEM using Turbo Pascal in a comms program I wrote.
     

Share This Page