Skip to main content
Associate II
June 24, 2024
Question

Modify a project base ble_pheripal_lite

  • June 24, 2024
  • 1 reply
  • 966 views

When I create my basic project   choose from ST32CUNE ide the example  ble_pheripal_lite all is ok .

The problems arrive when I want add  for example a new periperal how ADC ....

battellino_0-1719209291918.png

 

How can add in the driver the adc the stm32wbxx_hal_adc.c!!!!

Thanks

1 reply

STTwo-32
Technical Moderator
June 24, 2024

Hello @battellino 

First, you have to:

  • Add the "stm32wbxx_hal_adc.c" file to the Drivers>STM32WBxx_HAL_Driver of the project.
  • Add the line '#include "stm32wbxx_hal_adc.h"' on the 'stm32wbxx_it.c':STTwo32_0-1719224467971.png

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.