Search found 145 matches
- Thu Sep 16, 2021 3:55 pm
- Forum: General discussion
- Topic: Bluepill project transferring to Blackpill
- Replies: 5
- Views: 3498
Re: Bluepill project transferring to Blackpill
For timer (interrupt only): HardwareTimer *timer = new HardwareTimer(TIM5); uint16_t prescalefactor = 0xFF; volatile uint16_t timer_value = 10; volatile bool timer_tick = true; void overflowISR() { timer_tick = true; } void setup() { timer->pause(); timer->setPrescaleFactor(prescalefactor); timer->s...
- Thu Sep 16, 2021 2:02 pm
- Forum: General discussion
- Topic: Bluepill project transferring to Blackpill
- Replies: 5
- Views: 3498
Re: Bluepill project transferring to Blackpill
Sorry, my mistake. Just because you posted in forum's section for STM32 core , i assumed you want to use STM32 core. Anyway, you are right, it doesn't matter what timer are you using, since it is only for interrupt, not for PWM on a pin. SPISettings settingsA(70000000, MSBFIRST, SPI_MODE2); will set...
- Wed Sep 15, 2021 9:39 pm
- Forum: General discussion
- Topic: Bluepill project transferring to Blackpill
- Replies: 5
- Views: 3498
Re: Bluepill project transferring to Blackpill
- Better re-check pinout for you board. On STM32F401CC TIM5 is connected to PA0/1/2/3. TIM2 is alternate function, not default. You could compare to bluepill: F401 https://github.com/stm32duino/Arduino_Core_STM32/blob/master/variants/STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)/PeripheralPins_BLACKPILL...
- Thu Aug 26, 2021 9:45 pm
- Forum: STM32F4 based boards
- Topic: Adafruit_ST7735 > 1.1.0 not working
- Replies: 18
- Views: 19681
Re: Adafruit_ST7735 > 1.1.0 not working
I can confirm that it's working using D2/D3/D4 (and 2/3/4) instead of PA_2/PA_3/PA4.
I guess i've just being lucky.
What about port B pins? PB1 should work without underscore? I can't test that at the moment.
I guess i've just being lucky.
What about port B pins? PB1 should work without underscore? I can't test that at the moment.
- Wed Aug 25, 2021 5:50 pm
- Forum: STM32F4 based boards
- Topic: Adafruit_ST7735 > 1.1.0 not working
- Replies: 18
- Views: 19681
Re: Adafruit_ST7735 > 1.1.0 not working
I just checked (on WeAct STM32F411CE), library version 1.7.3 .
It works if i use:
It doesn't work with:
I don't know why it is behaving like that...
It works if i use:
Code: Select all
#define TFT_DC PA_3 //
#define TFT_CS PA_4
#define TFT_RST PA_2
Code: Select all
#define TFT_DC PA3 //
#define TFT_CS PA4
#define TFT_RST PA2
- Tue Aug 24, 2021 7:41 am
- Forum: General discussion
- Topic: DFU bootloader has errors on new BlackPill F411
- Replies: 44
- Views: 24131
Re: DFU bootloader has errors on new BlackPill F411
I had problems with those boards too. After some time i figure out that my problem was actually fingers touching nearby pins and it wouldn't enter in bootloader. Pressing those buttons with two pens solved my issue. I never measured resistor values for pull-up resistors on reset and boot pin. Maybe ...
- Tue Jul 20, 2021 4:04 pm
- Forum: General discussion
- Topic: Is there a stm32 IR library that works with Arduino
- Replies: 6
- Views: 2914
Re: Is there a stm32 IR library that works with Arduino
There is a sketch on https://github.com/perz/irNEC/blob/master/irNEC.ino
Not a library, but should be easy to integrate.
Tested on STM32F103C8, ST core.
Not a library, but should be easy to integrate.
Tested on STM32F103C8, ST core.
- Tue May 11, 2021 4:34 pm
- Forum: General discussion
- Topic: SPI working on STM32F401, not on STM32F405
- Replies: 17
- Views: 10709
Re: SPI working on STM32F401, not on STM32F405
fpiSTM I don't think i has anything to do with SPI. If called by hardware SPI, Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST); then it only needs #define TFT_DC PA_3 #define TFT_CS PA_4 #define TFT_RST PA_2 to be able to work (example sketches from library). I can't say why, i'm jus...
- Tue May 11, 2021 3:47 pm
- Forum: General discussion
- Topic: SPI working on STM32F401, not on STM32F405
- Replies: 17
- Views: 10709
Re: SPI working on STM32F401, not on STM32F405
Actually, this thread helped me finally figure out why my ST7735 wasn't working so far on my STM32F411CE with Adafruit library: Working: #define TFT_DC PA_3 #define TFT_CS PA_4 #define TFT_RST PA_2 #define TFT_SCLK PA_5 #define TFT_MISO PA_6 #define TFT_MOSI PA_7 Not working: #define TFT_DC PA3 #def...
- Tue May 11, 2021 1:28 pm
- Forum: General discussion
- Topic: SPI working on STM32F401, not on STM32F405
- Replies: 17
- Views: 10709
Re: SPI working on STM32F401, not on STM32F405
When using // Redefining the SPI pin mapping to use alternate pins PB3/PB5 const PinMap PinMap_SPI_MOSI[] = { {PB_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, {NC, NP, 0} }; why there is no {PB_15, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)}, {PC_3, SPI2, S...