I am trying to use stm32f407 and w25q128 to get a usb drive, for this I wrote a driver to control the flash drive and initialized the USB MSC using CubeMX. When I connect the stm32 to the PC (Ubuntu) I see the new storage device in the Disks app but ...
I need to decode ASK/OOK signal, for this aim I need to know the period in microseconds between several edges. I decided to use TIM1 for this purpose, here is my code// Set fCPU = 16MHz
CLK_CKDIVR = 0;
CLK_PCKENR1 = 0xFF;
CLK_PCKENR2 = 0;...
I need to decode ASK/OOK signal, for this aim I need to know the period in microseconds between several edges. I decided to use TIM1 for this purpose, here is my code // Set fCPU = 16MHz
CLK_CKDIVR = 0;
CLK_PCKENR1 = 0xFF;
CLK_PCKENR2 ...
I faced up with the issue, I have a while(1) loop in main.c where the leds are blinking or just printf some text. SPI in slave mode and is interrupted when new data are available. But when I got all data, my loop in main.c doesn't print anything and...
Posted on April 25, 2016 at 20:35
I have a question about using TI AFE4404 with STM32F4Disco. My question about power supply. I found in datasheet, that
Supplies: Rx: 2 V to 3.6 V, Tx: 3 V to 5.25 V, IO: 1.8 V to 3.6 V
And descripti...
Thanks for your reply! Yes, I found the problem. It seems OS doesn’t like delays inside the driver functions. My driver has HAL_Delay() for a few ticks while using spi transmit/receive. When I comment out all delays I got MSC working
Still can't catch interruption, but checked this one with logic analyser and the signal is there. But I found out why I was getting reboot. There are bad contacts of my wires. But they don't affect on signal and timer, cause they are connected on pub...
Thank you, it seems what I need:thumbs_up: To get the capture value do I need to read CCR2H & CCR2L registers and clear the ire flag SR1 and SR2? And is there way to detect which edge generated interruption?upd:Set the timer like you offered, but my ...
Thank you for your reply! Seems capture/compare are what I need, but could you help me to understand, how to set timer 2 for CC?My radio is connected to PD3 and generates PWM signal with +- the similar period, but with different pulse width. If the p...
Thanks for your reply!If I set my timer for 1 MHz, I get STM8 is always rebooting. I also would like to use GPIO to catch my clock, but I can't use event trigger irq, cause 1uS is too fast for this oneCLK_CKDIVR = 0; // For using HSI = 16MHz
// 1MHz ...