Skip to main content
james farrant
Associate II
Dec 19, 2017 4:50 AM UTC
Solved

Toggling GPIO STM32F407VGT6

Posted on December 19, 2017 at 05:50

Hello,

I am using the Mikro Pro C IDE to write a simple program to toggle GPIOA pin 0 on a STM32F407VGT6. When I compile I get several errors, but I don't think it has to do with an error in my code, more or less a problem with the IDE I'm using. Hopefully someone can take a look at the program attached and verify the code looks correct.  

0690X00000609FsQAI.png
    This topic has been closed for replies.
    waclawek.jan
    waclawek.janBest answer
    Super User
    Dec 21, 2017 1:05 PM UTC
    Posted on December 21, 2017 at 13:05

    Appears to be solved and related to toolchain rather than STM32

    https://forum.mikroe.com/viewtopic.php?f=224&t=71378

     

    3 replies

    AvaTar
    Senior III
    Dec 21, 2017 8:31 AM UTC
    Posted on December 21, 2017 at 09:31

    MikroC has very few adherents here, and I don't like the closed nature of it's libs.

    When I compile I get several errors, but I don't think it has to do with an error in my code, more or less a problem with the IDE I'm using.

    It would be helpful to post the actual error messages.

    Hopefully someone can take a look at the program attached and verify the code looks correct. 

    You mean in the screenshot image ?

    The usage of the constants and bit definitions in ST's device header (stm34f4xx.h) would make it more readable than magic numbers written into registers.

    AvaTar
    Senior III
    Dec 21, 2017 9:02 AM UTC
    Posted on December 21, 2017 at 10:02

    While my first post is still being moderated  -  it would be nice to post the actuall error messages your compiler throws.

    waclawek.jan
    waclawek.janBest answer
    Super User
    Dec 21, 2017 1:05 PM UTC
    Posted on December 21, 2017 at 13:05

    Appears to be solved and related to toolchain rather than STM32

    https://forum.mikroe.com/viewtopic.php?f=224&t=71378