STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

HAL_ADC_PollForConversion vs HAL_ADC_GetValue

Hello, I see ADC examples that use the following functions:1.HAL_ADC_PollForConversion.2.HAL_ADC_GetValue.Questions:a. What's the difference between both functions ?b. In my application I simply want to get the ADC voltage when a user sends a command...

skon.1 by Senior
  • 6747 Views
  • 4 replies
  • 2 kudos

SPI slave - different behavior without debugger

Hi,I am using STM32L051R8T6 and i have implemented an SPI slave using the HAL libraries. I am using DMA. the master is an FPGA. SPI clock is ~2Mhz. The FPGA initiate 2 read commands for each read from the MCU - 1 for it to prepare the data and 1 to r...

0693W000003BgFlQAK.png 0693W000003BgFvQAK.png
DSass by Associate II
  • 926 Views
  • 6 replies
  • 0 kudos

Resolved! ADC getting stuck while checking for EOC flag

Im trying to write code that will average samples from the ADC of an STM32F01K6. I am starting a conversion and waiting while the conversion takes place by writing a while loop which checks the finish flag ADC1->CR |= ADC_CR_ADSTART; while(((...

deep_rune by Associate III
  • 1095 Views
  • 5 replies
  • 0 kudos

Atollic problem to debug

Hello all,I have been using Atollic and the STM32 for a long time.I just created a new board with an STM32L151CB MCU.When I try to go into debug mode with Atollic, if the MCU is blank, I get this message.If I flash the MCU with STlinkUtility, and the...

0693W000003BkdcQAC.png 0693W000003BkdrQAC.png
CSCOM.1 by Associate
  • 383 Views
  • 0 replies
  • 0 kudos

Resolved! STM32G4 Reference Manual possible error

Hello,I think I found a possible error in the STMG4 reference manual RM0440 Rev 4, in Table 97 of section 14.3: in the IVT address column, the addresses from 0x0000_0198 to 0x0000_01A4 appear two times, instead of continuously increasing (entries 86...

TOrla.1 by Associate
  • 534 Views
  • 2 replies
  • 1 kudos

Resolved! STM32G0 - Initial PWR register settings

Checked PWR settings at startup.Find PWR->SR2 status value 0x00000300.According manual this tellsRegulator in Low Power mode (LPR)Flash memory in power downIs this initiated by Keil/ST-Link debugger?Or are there errors in reference manual of register...

JuM by Senior
  • 1974 Views
  • 3 replies
  • 0 kudos

STM32F303RETX synchronous Buck converter hint.

Hello, I am designing a Buck converter to control two Peltier heating or cooling mode. I found nothing available from market, so I designed mine. Target stable temperature, logging and alarm. It control a vaccine VET fridge, stable control temperatu...

MCU STM32L562: With initialising the UART using HAL_UART_Init() the UART-communication is not working. Calculating the BRR like shown in the reference manual gives a working BRR-Value. Is the HAL_UART_Init() not intended for setting the BRR ?

The Project was migrated from STM32L4 to STM32L5. The Baudrate setting with HAL_UART_Init() works fine with L4 MCU. With L5 MCU it returns with an HAL_UART_ERROR_NONE too.

PKM by Associate II
  • 1203 Views
  • 7 replies
  • 0 kudos

reg addr's for GTZC_TZSC_MPCWMxANSR GTZC_TZSC_MPCWMxBNSR

The doc and SVD file don't have a reg at offset 0x44 (GTZC_TZSC_MPCWM3BNSR).Since GTZC_TZSC_MPCWM3ANSR @0x40 exists, via symmetry I would expect B also at 0x44.The doc does say this:GTZC_TZSC external memory x non-secure watermark register 1(GTZC_TZS...

Hedley by Associate III
  • 769 Views
  • 3 replies
  • 1 kudos