Source:int main(void){ HAL_Init(); RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; /** Initializes the CPU, AHB and APB busses clocks */ RCC_OscInitStruct.O...
Bir projemde stm32l052 kullanmaktayım ve işlemci pin sayım yetersiz gelmekte. Acaba programlama pinlerini programlama yapmıyorken gpio olarak kullanabilirmiyim?
I try to use DMA to transport data from GPIO input regester (GPIOx_IDR) to some other buffer memory. DMA reguest is created by timer with input capture mode so I turn on DMA by HAL_TIM_IC_Start_DMA(). This function doesn't have a arugument for source...
Hello Guys,I'm new here and more from the hardware side.My problem is, I have a SPI ADC (ADS8665) and for it to work, it needs 32bit commands.So I tried this:uint8_t buff[4]; buff[0] = 0xC8; buff[1] = 0x00; buff[2] = 0x00; buff[3] = 0xC8; HAL_SPI_Tra...
I tried the following functions to make the timer pin high impedance, but nothing works:- __HAL_TIM_DISABLE(&htim3); TIM_CCxChannelCmd(&htim3, TIM_CHANNEL_3, TIM_CCx_DISABLE); __HAL_TIM_MOE_DISABLE(&htim3);I also tried to c...
I used STM32CubeIDE to create the project. The configuration that I used for the i2c is attached. I generated the code and added the following code in the "USER CODE BEGIN 2" section right after the call to MX_I2C_Init(). I made no other changes. uin...
I´m using this:void definir_polaridades (void){ if (contar_valor_1_hsync<contar_valor_2_hsync){//DEFINIR POLARIDAD DE HSYNCpolaridad_hsync=5;} else {polaridad_hsync=10;} if (contar_valor_1_vsync<contar_valor_2_vsync){//DEFINIR POLARIDAD DE VSYNCpolar...
Which is the best approach to manage the use of DMA and "control" the flow of data? Implementing some interrupt when the buffer is filled? Is it possible to put one channel of the DMA on "hold" while the other has full priority? Or two DMA are requir...
Hi,I can see weird behaviour on my STM32L083RBT6. Do not know where to start - I will try:When I run my app with Window WD - everything works fineWhen I run my app with Window WD disabled - not every start of my app (power on by inserting battery) st...