Skip to main content
james farrant
Associate II
December 19, 2017
Solved

Toggling GPIO STM32F407VGT6

  • December 19, 2017
  • 2 replies
  • 894 views
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.
    Best answer by waclawek.jan
    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

     

    2 replies

    AvaTar
    Senior III
    December 21, 2017
    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
    December 21, 2017
    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
    December 21, 2017
    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