Search found 1758 matches

by fpiSTM
Mon Dec 30, 2019 2:10 pm
Forum: Ideas & suggestions
Topic: Updating compiler/toolchain version
Replies: 3
Views: 10187

Re: Updating compiler/toolchain version

The SAMD core use this version: compiler.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/ See: https://github.com/arduino/ArduinoCore-samd/blob/master/platform.txt#L34 The one using the xpack-arm-none-eabi-gcc-9.2.1-1.1 is from the STM32 core version 1.8.0 : compiler.path={runtime.tools.xpa...
by fpiSTM
Mon Dec 30, 2019 6:38 am
Forum: Let us know a bit about you and your projects
Topic: Hello
Replies: 1
Views: 4550

Re: Hello

Welcome back arpruss,
Nice presentation and project ;)
by fpiSTM
Sun Dec 29, 2019 4:44 pm
Forum: General discussion
Topic: analogRead and analogWrite troubles
Replies: 37
Views: 45316

Re: analogRead and analogWrite troubles

OK, I think I found the issue. The variant you used is for this board: https://stm32-base.org/boards/STM32F103RET6-Generic-Board Firstly, do you have an HSE ? The SystemClock_Config(void) use the HSE as clock source. I guess you have one as it works. Now, I saw the ADC clock is not configured while ...
by fpiSTM
Sun Dec 29, 2019 8:37 am
Forum: General discussion
Topic: analogRead and analogWrite troubles
Replies: 37
Views: 45316

Re: analogRead and analogWrite troubles

Ok sorry though you use a RE. So for the RB, use the Generic F103RBT6 (Blue Button) then PA3 will work. It is not the same ADCx instance between RB and RE. But the RB has no DAC. I don't know what you exactly done with PIO. First use the Arduino IDE with the core installed properly then use the corr...
by fpiSTM
Sat Dec 28, 2019 7:09 pm
Forum: General discussion
Topic: analogRead and analogWrite troubles
Replies: 37
Views: 45316

Re: analogRead and analogWrite troubles

FYI,

Code: Select all

  pinMode(Power_1_Current,INPUT_ANALOG);
  pinMode(Power_2_Current,INPUT_ANALOG);
is not required.

For PIO usage, I could not help as I do not use it.

For PA3 analogRead, I have no clue as it should works like for other. Maybe an issue on your hardware?
by fpiSTM
Sat Dec 28, 2019 1:32 pm
Forum: Announcements
Topic: Welcome back stm32duino.com
Replies: 29
Views: 54707

Re: Welcome back stm32duino.com

Nice to see you all again and welcome ;)
sorry again for this long wait :?
by fpiSTM
Sat Dec 28, 2019 1:08 pm
Forum: General discussion
Topic: LTO isn't working?
Replies: 9
Views: 7945

Re: LTO isn't working?

LTO is mainly for size. The LTO option is available but I do not advise to use it, as I've met several time issue which are mainly linked to gcc toolchain. :roll: You can optimize your code using several way: direct access register, LL GPIO,... Try this: void setup() { pinMode(PB8, OUTPUT); } void l...
by fpiSTM
Sat Dec 28, 2019 12:56 pm
Forum: General discussion
Topic: analogRead and analogWrite troubles
Replies: 37
Views: 45316

Re: analogRead and analogWrite troubles

2. I receive freezing of the chip trying to do analogRead from PA3. The rest of analog reads from other pins work perfectly. Seems strange if other works. 3. I still receive the same behaviour of analogWrite for PA4 & PA5 in the strict behaviour of analogRead code (https://github.com/stm32duino...
by fpiSTM
Fri Dec 27, 2019 3:28 pm
Forum: General discussion
Topic: analogRead and analogWrite troubles
Replies: 37
Views: 45316

Re: analogRead and analogWrite troubles

Hi, For analogWrite on PA4 and PA5, this is the normal behaviour as there is no timer linked to those pins: https://github.com/stm32duino/Arduino_Tools/blob/31f3d43d620878dccbf658f65095f66fec9809b2/src/genpinmap/Arduino/STM32F103R(8-B)Tx/PeripheralPins.c#L88-L136 So it operates like a digital pin: 0...
by fpiSTM
Tue Dec 24, 2019 3:32 pm
Forum: Custom design boards
Topic: Bluepill F4 board, anyone still working on it?
Replies: 83
Views: 68402

Re: Bluepill F4 board, anyone still working on it?

Pito wrote: Tue Dec 24, 2019 2:48 pm Does the new STM's core support FPU?
Yes

Go to advanced search