STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Why is this code not being able to change the default SPI value of 0 to 1, and also the bit shift on timer is not working

#define SPI2_CR2 *(__IO uint32 *)0x40003800#define timer4_CR2 *(__IO uint32 *)0x40000800void setup() { Serial.begin(115200);}void loop() { Serial.println("SPI"); Serial.println(SPI2_CR2,BIN); SPI2_CR2=SPI2_CR2|(1<<0); Serial.println(SPI2_CR2,BIN); Se...

AHald by Associate
  • 723 Views
  • 3 replies
  • 0 kudos

How to find start address of NOR/SRAM/PSRAM bank ?

Hello,I have created with stm32cubeMX full configuration for my project.I have 3 memories:nor flashSRAMFPGAI also find the following information in my cubemx project:Chip Select:NE1 Memory type:NOR Flash Address:24 bits Data:16 bits Wait:Asyn...

ranran by Senior II
  • 727 Views
  • 0 replies
  • 0 kudos

DAC in STM32F4 and STM32F7 poor accuracy

I am trying the DAC in the STM32F4, so far I am using just the HAL_set_value function and I am trying to get a clear output voltage. I am using the STM32F46 nucleo board.I see that the ripple at the output (using the internal amplifier) is far highte...

RTC of stm32l031k6 counting more

I want to use RTC of stm32l031k6. But once I tested it I noticed that it counts 8 seconds more in a minute. I need a precise rtc. Do you have any advise what should I do.Thanks,

sahma.18 by Associate II
  • 1228 Views
  • 4 replies
  • 0 kudos

PSRAM with 32-bit data bus width?

According to the STM32F4/F7 data sheet FMC controller support 32-bit bus PSRAM. For my application I would like to use this configuration, due to a high bandwidth requirement. However, in the market it seems very difficult to find a PSRAM with 32-bit...

M. Jeong by Associate II
  • 1293 Views
  • 3 replies
  • 0 kudos

Changing GPIO mode at runtime

I'm trying to change GPIO mode at runtime, i could able to change mode from input to output and vice versa. But once configuring GPIO as EXTI i'm not able to change it to any other mode. and even if i try to change, ISR is getting executed.

BP1 by Associate II
  • 1955 Views
  • 5 replies
  • 0 kudos

After STMCube update to version 4.27.0 HAL RTC driver clear RTC date and time and set it's to default value on MCU power up, STM32F373 series and STM32Cube FW_F3 V1.10.0.

On last version normal rtc init code was so:/* RTC init function */ static void MX_RTC_Init(void) { /* USER CODE BEGIN RTC_Init 0 */ /* USER CODE END RTC_Init 0 */ RTC_TimeTypeDef sTime; RTC_DateTypeDef sDate; RTC_AlarmTypeDef sAlarm;...