cancel
Showing results for 
Search instead for 
Did you mean: 

BLE + Vibration Detection

RB4
Visitor

I am trying to build a project to detect vibration using STEVAL PROTEUS 1 (STM32WB5MMG, ISM330DHCX and BLE SENSOR). Unfortunately my sensor and BLE does not initialize despite 0 errors.

I have used custom BLE Template. I have initialized sensor code in custom_app.c. 

My inference:

Below is the main.c function 

MX_APPE_Init();

 Custom_APP_Init();//

//  UTIL_SEQ_RegTask(1 << CFG_TASK_BLINK_LED_ID,

while (1)

{

   /* USER CODE END WHILE */

MX_APPE_Process();

   /* USER CODE BEGIN 3 */

// HAL_GPIO_TogglePin(GPIOD, GPIO_PIN_2);

HAL_GPIO_WritePin(GPIOD, GPIO_PIN_2, SET);

HAL_Delay(100);

HAL_GPIO_WritePin(GPIOD, GPIO_PIN_2, RESET);

HAL_Delay(100);

}

/* USER CODE END 3 */

}

Here, the code works when I comment out MX_APP_Init() and MX_APPE_process() and i can see the LED toggle, LED constantly stays ON when I only comment out MX_App_Process() but that is not the dfesired outcome i want. I want my code to help me log vibration data via BLE, it is not happening since both BLE and Accelerometer are not working.

1 REPLY 1
RB4
Visitor