cancel
Showing results for 
Search instead for 
Did you mean: 

missing header ble.h

nima.askari
Associate III

Hi, in custom_stm.h, should add manually #include "ble.h" to works

4 REPLIES 4
Andrew Neil
Super User

Are you referring to some specific example?

Please give details.

 

How to write your question to maximize your chances to find a solution 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
STTwo-32
ST Employee

Hello @nima.askari 

I've personally generated a code on the STM32WB using the STM32_WPAN and the P2P server application type. After compilation, everything works fine and no need to add the file manually (using the STM32CubeMX V6.14.1 and the STM32CubeIDE V1.18.1). If you have the need to use the ble.h and it is not included, you need to ad it manually.

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.

hello, After compile yes, but if you use any ble function in main.c, you got error. i used this code: 

/* USER CODE BEGIN 2 */ uint32_t ttt = HAL_GetTick(); uint8_t data[255] = {0}; /* USER CODE END 2 */ /* Init code for STM32_WPAN */ MX_APPE_Init(); /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ MX_APPE_Process(); /* USER CODE BEGIN 3 */ if ((HAL_GetTick() > 5000) && (HAL_GetTick() - ttt >= 10)) { ttt = HAL_GetTick(); data[0]++; Custom_STM_App_Update_Char(CUSTOM_STM_DATA_AQU, data); } } /* USER CODE END 3 */

 

nima.askari
Associate III

@STTwo-32 and could you tell me please when you add freertos features in cube mx, also I want to use BLE_DataThroughput example with cubemx