Skip to main content
Associate III
July 6, 2026
Solved

LPBAM data build indentation inconsistensies

  • July 6, 2026
  • 2 replies
  • 54 views

STM32CubeMX generates inconsistent indentation in MX_Recieve_Q_Build:

/**
* @brief CLIP application Data scenario Receive queue build
* @param None
* @retval None
*/
static void MX_Receive_Q_Build(void)
{
/* LPBAM build variable */
LPBAM_DMAListInfo_t pDMAListInfo_LPGPIO = {0};
LPBAM_GPIO_PinSeqFullAdvConf_t pReadPinSeqFull_LPGPIO = {0};
LPBAM_COMMON_TrigAdvConf_t pTrigConfig_LPGPIO = {0};
LPBAM_COMMON_DataAdvConf_t pDataConfig_LPGPIO = {0};

/**
* Receive queue CLPReceiveBits build
*/
pDMAListInfo_LPGPIO.QueueType= LPBAM_LINEAR_ADDRESSING_Q;
pDMAListInfo_LPGPIO.pInstance= LPDMA1;
pReadPinSeqFull_LPGPIO.Pin = LPBAM_GPIO_PIN_0;
pReadPinSeqFull_LPGPIO.Size = 13;
pReadPinSeqFull_LPGPIO.pData = (uint32_t*)&receivedBits[0];
if (ADV_LPBAM_GPIO_ReadPinSequence_SetFullQ (LPGPIO1, &pDMAListInfo_LPGPIO, &pReadPinSeqFull_LPGPIO, &Receive_Q_CLPReceiveBits_Desc, &Receive_Q) != LPBAM_OK)
{
Error_Handler();
}
pTrigConfig_LPGPIO.TriggerConfig.TriggerMode = LPBAM_DMA_TRIGM_SINGLE_BURST_TRANSFER;
pTrigConfig_LPGPIO.TriggerConfig.TriggerPolarity = LPBAM_DMA_TRIG_POLARITY_RISING;
pTrigConfig_LPGPIO.TriggerConfig.TriggerSelection = LPBAM_LPDMA1_TRIGGER_LPTIM3_CH1;
if (ADV_LPBAM_Q_SetTriggerConfig (&pTrigConfig_LPGPIO, LPBAM_GPIO_READPINSEQ_FULLQ_DATA_NODE, &Receive_Q_CLPReceiveBits_Desc) != LPBAM_OK)
{
Error_Handler();
}
pDataConfig_LPGPIO.TransferConfig.Transfer.SrcInc = LPBAM_DMA_SINC_FIXED;
pDataConfig_LPGPIO.TransferConfig.Transfer.DestInc = LPBAM_DMA_DINC_INCREMENTED;
pDataConfig_LPGPIO.TransferConfig.Transfer.SrcDataWidth = LPBAM_DMA_SRC_DATAWIDTH_HALFWORD;
pDataConfig_LPGPIO.TransferConfig.Transfer.DestDataWidth = LPBAM_DMA_DEST_DATAWIDTH_BYTE;
pDataConfig_LPGPIO.TransferConfig.Transfer.TransferEventMode = LPBAM_DMA_TCEM_LAST_LL_ITEM_TRANSFER;
pDataConfig_LPGPIO.UpdateSrcInc = DISABLE;
pDataConfig_LPGPIO.UpdateDestInc = DISABLE;
pDataConfig_LPGPIO.UpdateSrcDataWidth = DISABLE;
pDataConfig_LPGPIO.UpdateDestDataWidth = ENABLE;
pDataConfig_LPGPIO.UpdateTransferEventMode = DISABLE;
if (ADV_LPBAM_Q_SetDataConfig (&pDataConfig_LPGPIO, LPBAM_GPIO_READPINSEQ_FULLQ_DATA_NODE, &Receive_Q_CLPReceiveBits_Desc) != LPBAM_OK)
{
Error_Handler();
}

}

 

Best answer by Mahmoud Ben Romdhane

Hello ​@SamMiddleton 

Let me thank you for bringing this issue to our attention.

The issue has been reported to the dedicated team (Internal Ticket number: CDM0064121).

I will keep you up to date until the problem is fixed.

Thanks.

Mahmoud

2 replies

ST Technical Moderator
July 7, 2026

Hello ​@SamMiddleton 

Let me thank you for posting.

I am currently checking this behavior, and I will get back to you ASAP.

Thanks.

Mahmoud

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.
ST Technical Moderator
July 7, 2026

Hello ​@SamMiddleton 

Let me thank you for bringing this issue to our attention.

The issue has been reported to the dedicated team (Internal Ticket number: CDM0064121).

I will keep you up to date until the problem is fixed.

Thanks.

Mahmoud

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.