I have a project (joystick controller) that requires a small amount of non-volatile memory (10 to 16 bytes) for calibration data. Presently, I am using a STM32F4 series micro for this project. Although it's a bit overkill, my initial plan was to use ...
I am using an STM32F4 micro using TIM1_CH1 and CH2 outputs to create a communications signal with compare outputs. The first bit that I am outputting is wrong, so I would like so set a breakpoint to see what is going on. BUT, when I check the timer c...
The reference manual (RM0402, DocID028087 Rev 7, Fig 4) shows TIM3 as a 32 bit timer. However, the in the description in Section 17.2, TIM3 and TIM4 are described as 16 bit timers.Is this a mistake in Figure 4 ?Thanks
I am using a STM32F407, and I would like to use DMA to receive data from USART1 and store in a buffer.HAL is not being used.USART1 is configured and is receiving the first byte of the message correctly. That is, the data shows up in USART1->DR.Here i...
Wow. As Rodney Dangerfield would say, "This is a really tough crowd." I suppose my dream is lost (for now) Well, so be it. But I see a day in the not too distance future where ATmega's (I've used a bunch of them), and STM8s won't be manufactured anym...
Hi Tesla and Pavel. Thanks for the replies. While it is true that that if 16K sector wasn't used for anything else that it's not a waste. Also, I wouldn't expect an immediate change to a series of parts.With that being said, I have been too close to ...
Update.I added code inside the test loop to reset the DMA controller, and re-init the DMA every loop - hammer approach. while(1)
{
DMA2_Stream2->CR |= DMA_SxCR_EN;
while( !(DMA2->LISR & DMA_LISR_TCIF2) ); // wait until data has been received
...
At one time, I was setting the NDTR register to the desired count in the test loop. However, I came across this note which states that the NDTR is reloaded automatically with the previous value when the DMA is re-enabled. So I took that statement out...
Thank you TDK. That got me past my first hurdle. However, the DMA now works only once. That is, the expected data is received and stored in the buffer as expected (16 bytes sent by another device, and 16 bytes received and stored by the STM32F407. "M...