STM32 MCUs products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! ADC

the code generated for my channels if i initialize this channels and    hadc1.Instance = ADC1; hadc1.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV2; hadc1.Init.Resolution = ADC_RESOLUTION_12B; hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; hadc1...

meena_0-1700148308920.png
meena by Associate III
  • 119 Views
  • 3 replies
  • 0 kudos

Resolved! Proper way to use scanf with uint8_t

What is the best way to use sscanf with uint8_t?When I use: uint8_t x ; char* y = "23" ; sscanf ( y , "%hhu" , &x ) ;I stuck at: void HardFault_Handler(void) I found following workaround that works: uint16_t x1 ; uint8_t x2 ; const char* y ...

Resolved! RTC not rolling over at midnight

Using the RTC on a NUCLEO-G071RB (HAL) I have a program the prints out the time, date and temperature in degrees Centigrade. I left it running overnight and discovered in the morning that the hours had not reset to 00:00 at midnight and neither had t...

Dabbo by Associate II
  • 142 Views
  • 3 replies
  • 0 kudos

Can FDCAN work with CAN 2.0B devices?

I am working on a project where the requirement for the microcontroller is to communicate over the CAN bus. The STM32G0B1KET6 is having FDCAN controller inside. It mentions in the datasheet that "The CAN modules are compliant with ISO 11898-1 (CAN pr...

anuj by Associate II
  • 3492 Views
  • 7 replies
  • 0 kudos

multichannel adc

why i am getting same values in all channels please someone helpvoid Adc_Vbat(void) { ADC_ChannelConfTypeDef sConfig = {0}; sConfig.Channel = ADC_CHANNEL_16; sConfig.Rank = 1; sConfig.SamplingTime = ADC_SAMPLINGTIME_COMMON_1; if (HAL_ADC_...

meena by Associate III
  • 241 Views
  • 3 replies
  • 0 kudos

Resolved! CAN FD multiple MCUs

I am trying to connect 2 NUCLEO-G0B1RET6 boards,using CAN FD. I previously did it using CAN, But now i am trying to connect these boards using CAN FD. So far no success,I want to know if it is possible to do it using CANFD.Kindly help me in this rega...

Resolved! RTC wakeup interrupts

I'm looking for an example code with STM32G071 device using RTC interrupt to wakeup device from sleep mode based on HAL libraries. Thank you

RCase by Associate II
  • 115 Views
  • 3 replies
  • 0 kudos