STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM32H7 read while erase Flashbank and sector erase time

HelloI'm working on a STM32H743 and do have a question regarding read/write/eraseoperation on a flash bank. The h743 does have 2 Flash banks which are connected each to the axi bus.Reference manual says that it is possible to erase an sector on one b...

Pointer to struct inside a union throws hard fault.

struct {unsigned char oned; unsigned char twod;}test;hspi2.Instance->DR = *((uint16_t *)&(test.oned));struct {unsigned char oned; unsigned char twod;}test;this works fine.however,typedef union { struct {  uint8_t idType;  uint32_t id;  uint8_t dlc;  ...

PR.19 by Associate II
  • 1058 Views
  • 3 replies
  • 0 kudos

Have you seen the source code to the MFX?

Hi All,Some of the grander Evaluation/Discovery boards use an STM32L152 as a slave Multi Function eXpander with an I2C interface. It's pre-programmed with firmware that provides access to some of the peripherals on the board.As it happens, I'm about ...

DOsbo by Senior
  • 496 Views
  • 0 replies
  • 1 kudos

How to get 4 channel input capture values from stm32f407 ?

uint32_t IC2Value,Frequency,miliseconds; float DutyCycle;     static void TIM2_Config(void) { GPIO_InitTypeDef GPIO_InitStructure; NVIC_InitTypeDef NVIC_InitStructure; TIM_ICInitTypeDef TIM_ICInitStructure; /* TIM2 clock enable */ RCC_AP...

isar� by Associate II
  • 850 Views
  • 4 replies
  • 1 kudos

how to count time

I want to measure the time from GPIO low level to high in RC circuit,how to count the timeuse rtc or tim?

0690X000009Yr9iQAC.png

Resolved! Modbus slave RTU/ASCII

HiI want to implement Modbus slave RTU/ASCII protocol on STM32F103VET6. I have read many forums about Modbus and examined several libraries, but unfortunately I couldn’t do it and I’m disappointed. In this blog: https://blog.naver.com/eziya76/2209703...

Hghas by Associate II
  • 3292 Views
  • 4 replies
  • 0 kudos

Resolved! GPIO strange issue

I have this code that works and i can turn an LED on:#include "stm32f10x.h"   void RCC_Init(void){   RCC->APB2ENR |= RCC_APB2ENR_IOPCEN; }   void GPIO_Init(void){ GPIOC->CRH |= GPIO_CRH_CNF13_0 | GPIO_CRH_MODE13_0 | GPIO_CRH_MODE13_1; }   int main(vo...