cancel
Showing results for 
Search instead for 
Did you mean: 

Toggling GPIO STM32F407VGT6

james farrant
Associate II
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
1 ACCEPTED SOLUTION

Accepted Solutions
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

 

View solution in original post

3 REPLIES 3
AvaTar
Lead
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
Lead
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.

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