cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB35 Custom Server APP & LPWR connection

oga
Associate II

I've try and I think I understood STM32WB HeartRate Exemple and on a Nucleo board it works perfectlyI can go to stop2 and keep active advertising on CM0 and keep being connectable and it wakes CM4 when connection happens

but when I try on my own app it goes direct in stop2 mode and I've no advertising and no connection

I've set my device on HSE to keep it close as possible as the example but I use Server profile with CustomTemplate app (I've also try with CustomP2P with same results)

Ive disable all DEBUG and UART option in STM_WPAN

I've set enable LPM
as expected in app_conf.h I found :

 

 

/**
 * Select UART interfaces
 */
#define CFG_DEBUG_TRACE_UART    0
#define CFG_CONSOLE_MENU        0
/******************************************************************************
 * USB interface
 ******************************************************************************/

/**
 * Enable/Disable USB interface
 */
#define CFG_USB_INTERFACE_ENABLE    0

/******************************************************************************
 * IPCC interface
 ******************************************************************************/

/**
 * The IPCC is dedicated to the communication between the CPU2 and the CPU1
 * and shall not be modified by the application
 * The two following definitions shall not be modified
 */
#define HAL_IPCC_TX_IRQHandler(...)  HW_IPCC_Tx_Handler( )
#define HAL_IPCC_RX_IRQHandler(...)  HW_IPCC_Rx_Handler( )

/******************************************************************************
 * Low Power
 ******************************************************************************/
/**
 *  When set to 1, the low power mode is enable
 *  When set to 0, the device stays in RUN mode
 */
#define CFG_LPM_SUPPORTED    1

/******************************************************************************
 * RTC interface
 ******************************************************************************/
#define HAL_RTCEx_WakeUpTimerIRQHandler(...)  HW_TS_RTC_Wakeup_Handler( )

 

 

If I had a disable bit in LPM stop mode before while loop

 

 

 /* Init code for STM32_WPAN */
  MX_APPE_Init();
  UTIL_LPM_SetStopMode(10, UTIL_LPM_DISABLE);
  /* Infinite loop */
  /* USER CODE BEGIN WHILE */
  while (1)
  {
    /* USER CODE END WHILE */
    MX_APPE_Process();

    /* USER CODE BEGIN 3 */
  }

 

 

it works like a charm except obviously it don't go to stop mode but advertising and connection are working

(dont be to upset about "10" hardly inserted in call it's just a test purpose)

so it act as if I put CM4 in stop mode RF is not waking up or CM0 is going also in off or something

Ive try different things I have also try debugging with my own prinf like calls and it looks it goes directly in stop but best way to show you is with current consumption
Stop mode Enable

oga_0-1714146022006.png

Stop Mode disable (we well see spikes of adverting frames)

oga_1-1714146134990.png

any idea would be greatly appreciated

 

 

2 REPLIES 2
oga
Associate II

I think I've an idea that could explain few things ... our custom PCB design don't include LSE because of place available. that dont explain why I have no advertise frames just after poweron but that can explain why I have no whakeup from RF after falling in stop mode

 

STTwo-32
ST Employee

Hello @oga 

I think this is related to a problem on the Design of the Custom Board. Please ensure that your design is fully compatible with the AN5290.

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.