How to read SPI_MISO from sensor (A111) to STM32G071CBx MCU? (XE132/XM132 from aconeer)
Have tried using hal_spi_transmit and receive but cant figure it out, any suggestions?
Ask questions, find answers, and share insights on STM32 products and their technical features.
Have tried using hal_spi_transmit and receive but cant figure it out, any suggestions?
Dear,I currently trying to used the timer in encoder mode.It seems to working fine whatever the mode configured.I useing the timer interrupt (Capture Compare) to read the number of step (Counter (CNT)).In mode 1 and mode 2, the CNT is decrement by 2 ...
What is this value that is written to the USART_BRR register?What is it for?I don’t understand why the calculation is done using the formula: fclock / (the divisor, in my formula it is 5 * baudrate)For example, here is an example calculation:I made t...
Background: The MCU chip I use is stm32L476RG. Since the MCU usually needs to work in the standby mode and will wake up within 2s, I want to count the time the MCU is in the standby mode each time. Implementation method: The clock source of RT...
update (a week later, after a vacation to clear head):This was solved by changing the entry in the vector table from ".word timer7"to ".word timer7+1". The +1 is to set bit 1 of the handler address to signal that it is a 16 bit thumb instruction. ...
Hello,I am currently trying to get an Adafruit Feather STM32F405 board to write to files on an SD card using DMA. I'm using CubeIDE, not STM32duino, and I have tried DMA configurations with both a single stream and two streams (one RX and one TX). No...
hello friends)))) I bought a new stm32H743 for familiarization and got confused how to implement PWM on HRTIM. I'm trying to do PWM on timer B. configured GPIO_PC8 to AF1 in GPIOx_AFRH. everything is fine there.HRTIM_B_PERxR==2000 HRTIM_B_CMP1xR==200...
I am working on a state machine to control a stm32f334 mcu, first state would be general initialization, the wifi initialization, waiting for stable input and some other states that are not relevant here. It was working smoothly and I wanted to commi...
Hi, I would like to re-program only some higher part of flash memory with In-Application-Programming (Chip: STM32G491 - this in RefMan is defined as "Flash category 4" device).My normal firmware e. g. is running in lower 256kB Flash.And now I want to...