Resolved! Enabling USART2 on STM32F413
Hello!I am wondering what the high level process for enabling a USART port is. I am enabling RCC_AHB1ENR_GPIODENRCC_APB1ENR_USART2ENBut the TX line stays low. I am guessing it has to do with the clock?Thanks
Ask questions, find answers, and share insights on STM32 products and their technical features.
Hello!I am wondering what the high level process for enabling a USART port is. I am enabling RCC_AHB1ENR_GPIODENRCC_APB1ENR_USART2ENBut the TX line stays low. I am guessing it has to do with the clock?Thanks
There is a bug in the ST HAL_GPIO_DeInit() function in stm32f1xx_hal_gpio.c, where it uses the CLEAR_BIT() macro to perform a read-modify-write of the GPIOx->ODR register directly to clear some GPIO pins, as opposed to the better way of clearing them...
Hello,I have a SPI interface with two slaves. This is my code: /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_DMA_Init(); MX_ADC1_Init(); MX_ADC2_Init(); MX_TIM6_Init(); MX_USART3_UART_Init(); MX_SPI1_Init(); MX_USB_DEVICE_Init(); /* ...
I would like to read temperature and humidity values from TI HDC2080 sensor when using STM32L0F4 MCU. Programming language is C and environment is CubeIDE. I downloaded sensor library from dev.ti which includes a file where MCU specific I2C functions...
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc){ if(__HAL_ADC_GET_FLAG(hadc,ADC_FLAG_EOC)){ adc_value=HAL_ADC_GetValue(hadc); }}main(){ HAL_ADC_Start_IT(&hadc); while(1) { }}static void MX_ADC_Init(void){ ADC_ChannelConfTypeDef sConfig =...
Hello,i use STM32CubeIDE with FW 1.60 with and want to use the I2C driver with DMA to read and write some data do a device.I configured it properly in CubeMX and the code has been generated and all interrupts etc. are implemented.When i test it with ...