Search found 72 matches

by aster
Thu Jul 13, 2017 9:04 pm
Forum: General discussion
Topic: convert PORT to int
Replies: 16
Views: 263

Re: convert PORT to int

I didn't managed to extract from the structure the port but this is better than nothings: #include "Streaming.h" uint8_t pin, port, n; void setup() { Serial.begin(115200); while (!Serial); delay(10); Serial << "Analog Pins: " << BOARD_NR_ADC_PINS << endl; for (n = 0; n < BOARD_NR_ADC_PINS ; n++) { p...
by aster
Thu Jul 13, 2017 12:42 am
Forum: General discussion
Topic: Need help picking a MCU for custom board. Where should I post?
Replies: 4
Views: 121

Re: Need help picking a MCU for custom board. Where should I post?

I don t know your coding abilities, but i would consider also the fact that for the f072 as far as i know there isn t a core. Instead you could use a f103c8 and you will have the same package, i m quite sure same pin map, more functions and more important that everithing you have a stable core. You ...
by aster
Wed Jul 12, 2017 2:08 pm
Forum: General discussion
Topic: convert PORT to int
Replies: 16
Views: 263

Re: convert PORT to int

i was wondering is it possible to do the reverse: convert a pin (for example the maple mini built in led = 33) to the PORT (i.e. PB1) i had a look at roger's core but i didn't find a way to do it, this is the only information i could find similar to what i am looking typedef struct stm32_pin_info { ...
by aster
Wed Jul 12, 2017 1:24 pm
Forum: General discussion
Topic: compiler flag
Replies: 5
Views: 87

Re: compiler flag

all clear thank!
by aster
Wed Jul 12, 2017 9:58 am
Forum: General discussion
Topic: compiler flag
Replies: 5
Views: 87

Re: compiler flag

ARDUINO_ARCH_STM32 is the one you search, I think this flag doesn't work for me: void setup() { // put your setup code here, to run once: Serial.begin(115200); } void loop() { #if defined (ARDUINO_ARCH_STM32) Serial.println("ok"); #endif delay(500); } I am using the arduino ide 1.8.1 with the board...
by aster
Tue Jul 11, 2017 12:52 pm
Forum: General discussion
Topic: compiler flag
Replies: 5
Views: 87

compiler flag

hello,

does it exist a general compiler flag for the stm32duino?
i found this as the most generic: ARDUINO_ARCH_STM32F1 but something even more generic would be better if it possible to add in the next release
by aster
Sat Jul 08, 2017 2:05 pm
Forum: STLink
Topic: ST-link clone by baite
Replies: 57
Views: 4190

Re: ST-link clone by baite

pretty sure this has been asked/mentioned somewhere above ? istr usb-stlink sticks needs some wires tacking on, but any tacking required would a lot easier on the pill stephen It has been discussed for the f103 based st link. No one ever asked for the f101 if i m not wrong Depends if just want SWD ...
by aster
Sat Jul 08, 2017 10:04 am
Forum: STLink
Topic: ST-link clone by baite
Replies: 57
Views: 4190

Re: ST-link clone by baite

Would be possible to use a stlink with f101 as bmp? Or it is better to use a black/blue pill?
by aster
Fri Jul 07, 2017 12:06 pm
Forum: General discussion
Topic: convert PORT to int
Replies: 16
Views: 263

Re: convert PORT to int

It was an example of a possible mistake ;)