Resolved! keep reading the state of interrupt line in EXTI interrupt line handler.
After detecting a rise edge in interrupt line, I would like to keep a LED on until it detects a falling edge. Do anyone have idea of how to do it?
Ask questions, find answers, and share insights on STM32 products and their technical features.
After detecting a rise edge in interrupt line, I would like to keep a LED on until it detects a falling edge. Do anyone have idea of how to do it?
Hi:STM32F103VBTx STM32CubeMX_v5-3-0The basic code is generated by cube.There are the following changes:static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len){ /* USER CODE BEGIN 6 */ CDC_rx_len += *Len;//pinjie USBD_CDC_SetRxBuffer(&hUsb...
The application note AN2834 states that this parameter should be listed in the device datasheet. This is true for MCU families like F4, but not for G4. I know that there is a difference between slow and fast channels, but where could I find precise v...
I' using USART1 to send and receive DMA with a module. When I configure DMA for one of TX or RX, it works fine. but when I configure it for both TX and RX, in RX-Buffer I have '\0' character in second position. for example the receive buffer is so:"...
I want to generate sine wave using DAC, TIMER, DMA.When TIMER do update event, Board makes DAC output.Please Help me.
To overcome this problem I modified the start up assembly file by enabling the clock (AHB1ENR bit 20) at the very beginning. The program which was freezing before enabling the clock started working but stops/freezes after executing a few C statements...
On an L412KB Nucleo, I configured TIM1 to use ETR2 as a clock source and set the counter period to 1 so that every time a rising edge occurs on the TIM1_ETR pin occurs, it should trigger a DMA. I set up DMA1/Ch6 to respond to TIM_UP for a byte sized ...
HII am using stm32l496 and want to use external flash memory MX25R6435F .Although this memory has 64 MB of memory, I set it to 8 MB in the ioc file and mx25r6435f library, but when I write in that string or character, it is not written correctly and ...
Since the PIN of STSPIN32F0 is not enough, it is implemented to view log messages using PA14 (SWD_CLK) as UART.But after that, I can't download it, so please inquire.1. Could you explain that re-download the MCU in this state?2. I don't have any PI...