Skip to main content
Visitor II
July 17, 2024
Question

STM32U545 : LPBAM cotinuous ADC multichannel

  • July 17, 2024
  • 5 replies
  • 1456 views

Hi,

I am using an STM32U545 on which I expect to use ADC4_IN1 and ADC4_IN18 in stop mode 2 (using LPBAM).

I want to create two buffer (buff1 and buff2 uint16_t[32]) dedicated to each input.

I want to read 32 samples from input1 then 32 samples from input2 and restart infintely.

I don't find the correct way to configure LPBAM.

In first try, I use an LPTIM1 as trigger I do :

(sorry my project I can't get image of LPBAM configuration)

1) ADC conversion (channel 1) => ADC Conversion (channel 20) and loop on first conf bloc and use LPTIM1 trigger for both

    => In this case each buffer contain values from correct input but i run only once

2) If I do the same but loop on first data bloc => only last channel ise infinitrly sampled on both buffer

Can someone help me to configure it correctly?

Thanks

Have a good day.

 

Aurélien

 

    This topic has been closed for replies.

    5 replies

    ST Employee
    July 19, 2024

    Hello @Aurelien1

    One way is to use the DMA linked list to link the nodes and enable buffer chaining

    => check this presentation 

     

    ST Employee
    July 19, 2024

    Hi @Aurelien1 

     

    This post has been escalated to the ST Online Support Team for additional assistance.  We'll contact you directly.

     

    Regards,

    Billy

    Aurelien1Author
    Visitor II
    August 26, 2024

    Hi, do you have more information about channel switching in LPBAM?

    To remind, I expect to get 32 samples of one channel before switching to the next one and so on.

    Aurelien1Author
    Visitor II
    September 23, 2024

    Is it possible to get an example? I am still unable to do it working...

    Thanks for your help

    ST Employee
    November 5, 2025

    Hello @Aurelien1,

     

    I suggest porting the project located in STM3CubeFW_U5 from STM32U575 to the STM32U545 :

    BRs,

    Oussema.