Forum Posts
capacitive touch CPT112s interface with STM32 using I2C not working
Hi,As we were trying to interface CPT112s capacitive touch controller with STM32 using I2C,we were able to get the I2C working...but I was not able to get touch event (either 1 or any high value)Below is my address reference for both device and memor...
STM32L496 SPI 16 clock cycles instead of 8
So I have configured the SPI peripheral with a data frame of 8 bits. However, in the scope, there are 16 cycles in total. The first byte is okay, and outputs the loaded byte, however after the first 8 cycles, there are additional 8 cycles. The issue ...
Doubts in generating fixed number of PWM Waves
I am trying to generate a fixed number of PWM Waves using stm32f407. I called both functions HAL_TIM_Base_Start_IT(&htim2); HAL_TIM_PWM_Start_IT(&htim2,TIM_CHANNEL_1); and in the ISR void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) {...
STM32H743 I2C DMA SCL Stays Low after getting Slave Address ACK
Hello,I am using STM32H743 in master mode with I2C_4 in DMA Mode (configured using CubeMX, see attached capture).After sending command:HAL_I2C_Master_Transmit_DMA(&hi2c4, (uint16_t) ADT7411_ADDRESS, TxBuff, 2);I get an ACK from the slave but SCL line...
STM32 UART shows inconsistent outputs
From what I understand, the UART gets a char/byte one by one. I am trying to test this by adding '-' between each character of the string I send to the UART. However, the outputted values are very inconsistent when more than 1 character is sent to th...
I am using STM32F030C6T6 I am unable to configure usart1 in the code. None of the registers get configured for usart1 below is the code Please Help. I am using Standard Peripheral Libraries.
void RCC_Configuration(void){ RCC_DeInit(); //RCC_AdjustHSICalibrationValue(0x00); RCC_HSICmd(ENABLE); while(RCC_GetFlagStatus(RCC_FLAG_HSIRDY) == RESET) {;} //PLL out = (8M/2)*12 = 48 MHz RCC_PLLConfig(RCC_PLLSource_HSI_Div2,RCC_PLLMul_12)...
CAN Bus strange signal (solved)
edit: the problem was due to a CAN-master switching baudrates on the fly.the wrong (slower) timing was detected by the CAN controller causing the interruption of the ongoing transmission.Hello Community !I am implementing CAN communication with an in...
STM32:496 ADC1/2 dual mode, ADC3 independent?
I am using STM32L496 with ADC1/ADC2 in dual regular simultaneous mode with DMA and seeking to have ADC3 independent sinple single conversion. Code works either with ADC1/ADC2 or ADC3 but not with both. Can ADC3 run independent if ADC1/ADC2 are dual?
How get timer state?
Hi,I´m reading the doc of my kits, stm32f767zi and stm32f429zi, but if anyone could help I´ll appreciate. I need start and stop a timer named htim3, as follow:if (HAL_OK!=HAL_TIM_Base_Start_IT(&htim3)) Error_Handler();But, if I execute the code twice...