Posted on October 29, 2014 at 14:19I tried porting someone else's code here: https://github.com/LonelyWolf/stm32/blob/master/Nrf24l01/nRF24l01.c to F3 (his is for the F1 family).I'm using one of the http://www.addicore.com/2pcs-Addicore-nRF24L01-Wi...
Posted on October 21, 2014 at 01:57Hello all, I'm trying to run a ws2812 strip using a timer and DMA. I'm using the stm32f303vct6 chip at 48MHz. The Timer is running with no prescaler, and no clock division in PWM1 mode, with a period of 60 (1.25...
Posted on October 31, 2014 at 17:50You were right about the 16bit transfers. I fixed that portion with the following code, and now it works:uint8_t nrf24_read_write(uint8_t data) { while((SPI1->SR & SPI_I2S_FLAG_TXE) == RESET); SPI_SendData8(...
Posted on October 30, 2014 at 14:36Mostly because I was just following that other code. It uses SPI_I2S_SendData and SPI_I2S_ReceiveData, the former accepting a 16bit integer, the latter returning a 16bit integer.I've tried changing it to SPI_SendD...
Posted on October 22, 2014 at 21:27Nevermind, it seems that it was a bit of a fluke that TIM_DMA_CC2 worked (I'm still not sure why that worked. It shouldn't have). I tried using a different timer/port/pin and it did not work. It seems that I was...
Posted on October 21, 2014 at 04:35So, TIM_DMACmd(TIM2, TIM_DMA_Update, ENABLE);doesn't work (I'm not really sure what's going on. There's a quick pulse every period, but that's all). However,TIM_DMACmd(TIM2, TIM_DMA_CC2, ENABLE);does work. Howev...