STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

copy float's binary content into uint32_t

Hello,I am trying to copy the content of a float variable with memcpy into uint32_t variable. unfortunately the binary content changes after copying. it should be 0xfff00000, like in the float variable. Does anyone know why this happens and how can I...

NTaha.1 by Associate II
  • 1440 Views
  • 4 replies
  • 0 kudos

STM32H7B0 SWO over ITM doesn't work

Hi!I have a problem setting up Serial Wire Output over ITM. I followed every tutorial on the Internet (including this forum) and I still haven't made any progress. I run the MCU on 280 Mhz: In Pinout & Configuration -> DEBUG I configured Serial Wire ...

0693W00000Y92EsQAJ.png 0693W00000Y92H3QAJ.png 0693W00000Y92IzQAJ.png
ypiotrp by Senior
  • 3011 Views
  • 14 replies
  • 0 kudos

Resolved! STM32 RTC Wakeup interrupt not working?

I am trying to do RTC wakeup interrupt using STM32L412RBT6 microcomtroller in baremetal c, but the interrupt is not firing, below mentioning my code.int main(void){ LedConfig(); Tim6Config(); RTC_ClockConfig(); RTC_Init();  /* Loop forever */ while(1...

SSaiy.1 by Associate III
  • 1306 Views
  • 1 replies
  • 0 kudos

SPI TXE or RXNE never goes to 1

helloI am using an STM32F7 series microcomputer.with SPI peripheralsIf writeable, write to the data register,After that, if it is readable, it is reading from the data register.The image in the code is like below,Writeable, readable loops infinitely ...

Ebun.1 by Senior
  • 881 Views
  • 4 replies
  • 0 kudos

SPI Clock goes low when Cable Select does

Hello, I am interfacing with a peripheral where code exists for Arduino, but using it as reference for STM32. The SPI mode is 3. The Arduino code works, so I am attempting to reproduce it's methods for communication. An issue I am seeing is tha...

0693W00000Y9UtyQAF.png 0693W00000Y9UurQAF.png 0693W00000Y9UwxQAF.png 0693W00000Y9Uy5QAF.png

Resolved! unexpected output

Below is my code:uint8_t line[50]="Application is Running\n";uint8_t Buf[50];uint8_t A=0,B=0;  while(! HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_13)); // wait for user button press  HAL_Delay(200);  strcpy((char*)Buf," \n\nI am in the Loop \n");  HAL_UART_Tra...

0693W00000Y9N0cQAF.png 0693W00000Y9MyRQAV.png
RS009 by Associate III
  • 1362 Views
  • 6 replies
  • 0 kudos