/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / GPIOD undeclared

Username:     
Password:     
             

Forum

# 1   2009-07-27 12:44:22 GPIOD undeclared

nishant
Member
Registered: 2009-07-03
Posts: 10

GPIOD undeclared

Hi all,
In Primer2_mouse project, I am getting error "GPIOD undeclared". I tried including all the necessary files and tried declaring as given in 'STM32 Firmware Library' pdf also but didn't work.
What could be the reason?

Offline

 

# 2   2009-07-27 13:25:49 GPIOD undeclared

repzak
Member
Registered: 2008-03-05
Posts: 170

Re: GPIOD undeclared

Hello,

There is on of the config header files to the library you need to uncomment that line...

use find in file to find the file.

Kasper

Offline

 

# 3   2009-07-28 06:20:03 GPIOD undeclared

nishant
Member
Registered: 2009-07-03
Posts: 10

Re: GPIOD undeclared

I have made sure that stm32f103x_map.h, stm32f103x_conf.h and all the related header files are included in the application.c.
But still I am getting the error: 'GPIOD' undeclared (first use in this function)  in application.c
and I have not yet to found out the reason.

Offline

 

# 4   2009-07-28 07:47:45 GPIOD undeclared

repzak
Member
Registered: 2008-03-05
Posts: 170

Re: GPIOD undeclared

I guess you have to edith this file:
stm32f10x_conf.h

Check the the line is not commented out:
#define _GPIO
#define _GPIOA
#define _GPIOB
#define _GPIOC
#define _GPIOD
#define _GPIOE
//#define _GPIOF
//#define _GPIOG

Kasper

Offline

 

# 5   2009-07-28 09:36:02 GPIOD undeclared

nishant
Member
Registered: 2009-07-03
Posts: 10

Re: GPIOD undeclared

Thanks a lot. It worked. That line was commented.
Can you suggest which other projects I can study to particularly understand & learn using GPIO?

Thanks.

Offline

 

# 6   2009-07-28 10:17:50 GPIOD undeclared

Marek
New member
Registered: 2009-03-21
Posts: 5

Re: GPIOD undeclared

I guess you should look here:
X:\Raisonance\Ride\Examples\ARM\Primer\STM32Primer2

Good luck.

Offline

 

Board footer