Skip to main content
Senior
January 30, 2024
Question

unknown type name as 'PCD_HandleTypeDef'

Hi,

 

I get the following error when I compile the code. The thing is, 'PCD_HandleTypeDef' is defined. Please see the error log below. I have checked project properties to make sure the folder which includes the definition of PCD_HandleTypeDef is included or not. I confirm that it is included. Please check snaps below.

 

Log file is attached.

demir_0-1706638492412.png

 

 

demir_0-1706638067243.png

 

 

 

This topic has been closed for replies.

2 replies

ST Technical Moderator
January 30, 2024

Hello @demir ,

Make sure you select the required modules in stm32f4xx_hal_conf.h and define USE_HAL_DRIVERS.

I advise you to check a ready-to-use example within STM32CubeF4 package and review the used configurations/settings.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Tesla DeLorean
Guru
January 30, 2024

Uncomment PCD peripheral in stm32f4xx_hal_conf.h

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..