Search found 39 matches
- Sun Sep 26, 2021 6:02 pm
- Forum: General discussion
- Topic: Custom PCB with stm32
- Replies: 3
- Views: 1770
Re: Custom PCB with stm32
Yes you can. I have made custom boards. ST provides gerbers for discovery and Nucleo, I used these as a starting basis with Ki-Cad. I think there are some Ki-Cad *-pill layout projects as well. I downloaded some, but never made them. I use an a ST link to program my boards. I keep meaning to write ...
- Sun Sep 26, 2021 2:54 pm
- Forum: General discussion
- Topic: Custom PCB with stm32
- Replies: 3
- Views: 1770
Custom PCB with stm32
Hi, I want build my own stm32 PCB. Currently I am planning to use F401R or F411R. If I just follow the pinout config from stm32duino variant_generic.h and .cpp like ( https://github.com/stm32duino/Arduino_Core_STM32/blob/master/variants/STM32F4xx/F411R(C-E)T/variant_generic.h ). Will I be able to ju...
- Sun Sep 12, 2021 9:44 am
- Forum: General discussion
- Topic: Black Pill miss alignment between PB12 ~ PB15 and PB_12 ~ PB_15
- Replies: 1
- Views: 2570
Black Pill miss alignment between PB12 ~ PB15 and PB_12 ~ PB_15
There is miss alignment between PB12 ~ PB15 and PB_12 ~ PB_15 for black pill. Value for PB12 ~ PB15 is 27 ~30 Value for PB_12 ~ PB_15 is 28 ~ 31 It can be test by void setup(void) { Serial1.begin(9600); } void loop() { Serial1.print(PB12); Serial.print("\t"); Serial1.print(PB13); Serial.pr...
- Sat Sep 11, 2021 5:14 pm
- Forum: General discussion
- Topic: Black Pill with adafruit ST7789
- Replies: 63
- Views: 26121
Re: Black Pill with adafruit ST7789
Great that hear it works! I recently get back to stm32duino project with lvgl. Glad this got fixed.
- Tue Jul 06, 2021 12:27 pm
- Forum: General discussion
- Topic: Black Pill with adafruit ST7789
- Replies: 63
- Views: 26121
Re: Black Pill with adafruit ST7789
Print both values is a good idea. Could you also share a full log of the build, please? Think to enable all the verbose in the preference. Here is the full log of the build for PAXX style https://gist.github.com/ht93/39b1477879694f99901ff60ed65c9365 , and for PA_XX style https://gist.github.com/ht9...
- Mon Jul 05, 2021 5:46 pm
- Forum: General discussion
- Topic: Black Pill with adafruit ST7789
- Replies: 63
- Views: 26121
Re: Black Pill with adafruit ST7789
there is one possibility which is that some platforms / ide did not parse the include files and dependencies properly, that can cause definitions to be missed out and those PAXX may evaluate to zero. one way out of that is to #include the header file for your board. e.g. #include <variant_BLACKPILL...
- Mon Jul 05, 2021 5:34 pm
- Forum: General discussion
- Topic: Black Pill with adafruit ST7789
- Replies: 63
- Views: 26121
Re: Black Pill with adafruit ST7789
I talk about core version because you made some tries to switch from 2.0.0 to 1.9.0. :D STM32 core has several version (release) like any other software. Yeah, I know that. However, I only switched between 2.0.0 and 1.9.0 ten days after I posted this thread. When I post this thread, I only have use...
- Mon Jul 05, 2021 3:51 pm
- Forum: General discussion
- Topic: Black Pill with adafruit ST7789
- Replies: 63
- Views: 26121
Re: Black Pill with adafruit ST7789
Please check this video, it shows the same code work with PA_XX but not PAXX. https://photos.app.goo.gl/VpJFiecqAkeRqM2W6 So you have probably an issue with your setup. Wrong core version, change in the core or something else you made during you try/test. Main issue is that you will probably have f...
- Mon Jul 05, 2021 3:05 pm
- Forum: General discussion
- Topic: Black Pill with adafruit ST7789
- Replies: 63
- Views: 26121
Re: Black Pill with adafruit ST7789
with PortA equal to 0. So PA_0 is 4 and PA4 is 4 because in case of this variant pin number are defined ordered so those value are the same. PB_0 = (PortB << 4) + 0x00, with PortB equal to 1. So PB_0 is equal to 16. PB0 is defined a 16, etc. But PB11 is not defined as it is not available. In this c...
- Mon Jul 05, 2021 2:53 pm
- Forum: General discussion
- Topic: Black Pill with adafruit ST7789
- Replies: 63
- Views: 26121
Re: Black Pill with adafruit ST7789
This is useless as SPI instance already exists using those pins. It works because pin name as the same value than the pin number. It seems you try to bring complexity where there is no need. As stated before simply use the default example and it works with the default SPI instance. #define TFT_CS P...