gcc arm instruction set

Asked by Freeman Gilmore

Not sure that I am asking the right question. Is there an gcc instruction set that applies yo the M-4? I am looking to program in c but from what I understand so far is that gcc standard would have to extend to manipulate the M-4 e.g. setting up ports and pins. So far Google has not helped and the manuals may talk about this but not how to write the c code. Even a pdf or something that explains how to write the c code for this type of thing would be a great help?
Thank you,
ƒree

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Freeman Gilmore
Solved:
Last query:
Last reply:
Revision history for this message
Terry Guo (terry.guo) said :
#1

Are you looking for something like CMSIS cmsis.arm.com?

Revision history for this message
Freeman Gilmore (freeman-gilmore) said :
#2

​Terry:

I have logged in into cmsis.arm.com That could be very help full. There
is a lot there.

I have not found what I am looking for though. Let me try and explain,
say I want to use the I/O ports and pins.. I assume that the IDE set up
for say STM32F429I (which I have) will have the libraries for the
I/O's. My question is how do I write code in C to set up say port B
pin 3 and send data? Or may be port G upper 16 bits as a 16 bit port,
etc.? There must be something out there that would help. The data
books tell what should be sent in assemble. That does not tell me how to
do it in C (which I have a lot to learn).

Thank you,
ƒree

On Thu, Dec 25, 2014 at 10:11 PM, Terry Guo <
<email address hidden>> wrote:

> Your question #259682 on GCC ARM Embedded changed:
> https://answers.launchpad.net/gcc-arm-embedded/+question/259682
>
> Status: Open => Answered
>
> Terry Guo proposed the following answer:
> Are you looking for something like CMSIS cmsis.arm.com?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/gcc-arm-embedded/+question/259682/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/gcc-arm-embedded/+question/259682
>
> You received this question notification because you asked the question.
>

Revision history for this message
Freeman Gilmore (freeman-gilmore) said :
#3

Yes, as I replied in my last email.
Thank you,
ƒree​

On Thu, Dec 25, 2014 at 11:26 PM, Freeman Gilmore <
<email address hidden>> wrote:

> Your question #259682 on GCC ARM Embedded changed:
> https://answers.launchpad.net/gcc-arm-embedded/+question/259682
>
> Status: Answered => Open
>
> You are still having a problem:
> ​Terry:
>
> I have logged in into cmsis.arm.com That could be very help full. There
> is a lot there.
>
> I have not found what I am looking for though. Let me try and explain,
> say I want to use the I/O ports and pins.. I assume that the IDE set up
> for say STM32F429I (which I have) will have the libraries for the
> I/O's. My question is how do I write code in C to set up say port B
> pin 3 and send data? Or may be port G upper 16 bits as a 16 bit port,
> etc.? There must be something out there that would help. The data
> books tell what should be sent in assemble. That does not tell me how to
> do it in C (which I have a lot to learn).
>
> Thank you,
> ƒree
>
>
> On Thu, Dec 25, 2014 at 10:11 PM, Terry Guo <
> <email address hidden>> wrote:
>
> > Your question #259682 on GCC ARM Embedded changed:
> > https://answers.launchpad.net/gcc-arm-embedded/+question/259682
> >
> > Status: Open => Answered
> >
> > Terry Guo proposed the following answer:
> > Are you looking for something like CMSIS cmsis.arm.com?
> >
> > --
> > If this answers your question, please go to the following page to let us
> > know that it is solved:
> >
> >
> https://answers.launchpad.net/gcc-arm-embedded/+question/259682/+confirm?answer_id=0
> >
> > If you still need help, you can reply to this email or go to the
> > following page to enter your feedback:
> > https://answers.launchpad.net/gcc-arm-embedded/+question/259682
> >
> > You received this question notification because you asked the question.
> >
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Terry Guo (terry.guo) said :
#4

If you are looking for some high level things, I suggest you to try MBED stuff http://developer.mbed.org/handbook/Homepage. You need to find a MBED supported board http://developer.mbed.org/platforms/, then start with MBED Online IDE. This is one of example projects to blink the LED:

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
    }
}

Once you get familiar with MBED Online IDE, you can find all MBED code repositories at https://github.com/mbedmicro. It's easy to extend the MBED code to support your new board and export the code to some other IDE projects like Keil MDK project.

Revision history for this message
Freeman Gilmore (freeman-gilmore) said :
#5

The site will help much thanks