Search found 10 matches

by bobemoe
Tue Feb 28, 2023 6:59 pm
Forum: General discussion
Topic: Looking for some simple interrupt examples
Replies: 3
Views: 1875

Looking for some simple interrupt examples

I'm trying to attach an interrupt on pin PB0 of my STM32F4 (BlackPill WeAct v3) so I am looking for a simple example to start with but am struggling to find one. This is almost exactly what I am trying to do and would be the perfect starting place: https://github.com/stm32duino/STM32Examples/blob/ma...
by bobemoe
Sun Sep 19, 2021 9:56 am
Forum: General discussion
Topic: USB Modem (CDC)
Replies: 0
Views: 2374

USB Modem (CDC)

I am working on a project that uses the WeAct V3.0 BlickPill STM32F411CE with ArduinoIDE and https://github.com/stm32duino/BoardManagerFiles which is connected to a PCB and working just fine. Most of the IO pins are in use. We have almost 100 of these PCBs and have now come to the point where we wan...
by bobemoe
Tue Jun 08, 2021 10:03 am
Forum: General discussion
Topic: Adafruit_ST7735 not working on pin PA1
Replies: 5
Views: 2640

Re: Adafruit_ST7735 not working on pin PA1

This is the closest docs I could find, its for F401 though, is that close enough?

http://194.19.86.155/nRF_Connect_SDK/do ... index.html

Looking at it it seems PA1 should be an available GPIO pin.
by bobemoe
Tue Jun 08, 2021 9:47 am
Forum: General discussion
Topic: Adafruit_ST7735 not working on pin PA1
Replies: 5
Views: 2640

Re: Adafruit_ST7735 not working on pin PA1

Sorry, its WeAct BlackPill v3.0, using stm32duino core https://github.com/stm32duino/BoardManagerFiles I don't think the pin is reserved as I said I have confirmed its working as an output just fine with normal digitalWrite()/analogWrie() but I've not managed to confirm this for sure with any docs. ...
by bobemoe
Tue Jun 08, 2021 8:09 am
Forum: General discussion
Topic: Looking for working DMA ADC tutorial
Replies: 10
Views: 10653

Re: Looking for working DMA ADC tutorial

Thanks all for your ideas and examples. I've still yet to get something working. I think next I will try the CubeIDE and native MX initialization code.

For now though I need to move on to other things. I will keep this updated when I return to the problem.
by bobemoe
Tue Jun 08, 2021 8:06 am
Forum: General discussion
Topic: Adafruit_ST7735 not working on pin PA1
Replies: 5
Views: 2640

Adafruit_ST7735 not working on pin PA1

I'm have a working project on a STM32F411, using the Adafruit ST7735 TFT display and their official TFT library. I've configured the TFT pins to be CS=PB10, RST=PB1 and DC=PB2, also the internal SCLK1 and MOSI1 pins PA5 and PA7. This is all working fine. Now we need to rewire the display to differen...
by bobemoe
Mon May 31, 2021 2:36 pm
Forum: General discussion
Topic: Looking for working DMA ADC tutorial
Replies: 10
Views: 10653

Re: Looking for working DMA ADC tutorial

maybe this will help: STM32 DMA ADC P2M Demo Thanks :) Closest so far! It compiles and I thought it was working as it prints 24.5degC. But it seems that its just returning that value no matter what temp the chip is. If I change the channel from ADC_CHANNEL_TEMPSENSOR to ADC_CHANNEL_4 then the buffe...
by bobemoe
Sun May 30, 2021 8:02 pm
Forum: General discussion
Topic: Looking for working DMA ADC tutorial
Replies: 10
Views: 10653

Re: Looking for working DMA ADC tutorial

Ok, so guess that's what I need the tutorial or help with. It looks like maybe I need to use some different constants to specify the DMA and ADC channels. If so how do I find these constants? First stop is the STM32F411CE data sheet. It shows channel names the various things are in, but I have no id...
by bobemoe
Sun May 30, 2021 1:53 pm
Forum: General discussion
Topic: Looking for working DMA ADC tutorial
Replies: 10
Views: 10653

Re: Looking for working DMA ADC tutorial

Hi, thanks for quick reply. I cant get that one to compile either: /home/bob/Arduino/DMA/DMA.ino: In function 'void HAL_ADC_MspInit(ADC_HandleTypeDef*)': DMA:64:40: error: 'RCC_PERIPHCLK_ADC' was not declared in this scope; did you mean 'RCC_PERIPHCLK_RTC'? 64 | PeriphClkInit.PeriphClockSelection = ...
by bobemoe
Sun May 30, 2021 12:31 pm
Forum: General discussion
Topic: Looking for working DMA ADC tutorial
Replies: 10
Views: 10653

Looking for working DMA ADC tutorial

I’m trying to get DMA ADC working to sample a small audio clip for DSP/FFT analysis. I’ve read loads of tutorials, and tried loads of sample code but I can’t get anything to compile. I’m fairly good with arduino, but new to STM32. I’ve never done DMA before on either. I’m using STM32F411CE with Ardu...

Go to advanced search