Search found 320 matches

by fpiSTM
Sun Feb 25, 2018 7:06 am
Forum: STM Core
Topic: changing the system clock
Replies: 3
Views: 46

Re: changing the system clock

Yes it's connected but it's possible to use another clock source. Check the Nucleo 64 User manual, §6.7.1 OSC clock supply: http://www.st.com/content/ccc/resource/technical/document/user_manual/98/2e/fa/4b/e0/82/43/b7/DM00105823.pdf/files/DM00105823.pdf/jcr:content/translations/en.DM00105823.pdf Fun...
by fpiSTM
Sat Feb 24, 2018 6:30 pm
Forum: STM Core
Topic: changing the system clock
Replies: 3
Views: 46

Re: changing the system clock

Hi Aster, for the Arduino_Core_STM32, the clock config is done in the variant.cpp. Ex for F401: https://github.com/stm32duino/Arduino_Core_STM32/blob/master/variants/NUCLEO_F401RE/variant.cpp#L123 As you can see it uses the HSI clock and not the one from the STLink. This function can be generated th...
by fpiSTM
Sat Feb 24, 2018 3:34 pm
Forum: Code snipplets
Topic: 32-bit timers
Replies: 15
Views: 728

Re: 32-bit timers

I agree with dannyf.
by fpiSTM
Sat Feb 24, 2018 8:14 am
Forum: Code snipplets
Topic: 32-bit timers
Replies: 15
Views: 728

Re: 32-bit timers

arpruss wrote:
Fri Feb 23, 2018 6:37 pm
The cost is that it slows things down a little (10-15%?) when you enable it.
This seems a bit high as slowdown for an hardware counter
by fpiSTM
Wed Feb 21, 2018 6:15 am
Forum: General discussion
Topic: [all cores] F4+F1: ABP1 timer clock frequency
Replies: 3
Views: 114

Re: [all cores] F4+F1: ABP1 timer clock frequency

If it could help, I've implemented a function to get the correct freq depending of the TimX clock source and the system clock config for all MCU series: https://github.com/stm32duino/Arduino_Core_STM32/blob/c392140415b3cf29100062ecb083adfa0f59f8b1/cores/arduino/stm32/timer.c#L668 It uses some HAL_* ...
by fpiSTM
Fri Feb 16, 2018 7:30 am
Forum: STM Core
Topic: Erratic Behaviour of the Standard Arduino I2C Bus Scanner
Replies: 3
Views: 149

Re: Erratic Behaviour of the Standard Arduino I2C Bus Scanner

Ok, reproduce on F411.
Always relies on IT mode.
This will be fixed with https://github.com/stm32duino/Arduino_C ... issues/217
by fpiSTM
Thu Feb 15, 2018 8:41 pm
Forum: STM Core
Topic: Erratic Behaviour of the Standard Arduino I2C Bus Scanner
Replies: 3
Views: 149

Re: Erratic Behaviour of the Standard Arduino I2C Bus Scanner

Hi Francois,

I've tested your code and it works with the disco L475 IOT board.
I will try tomorrow with the F411, I will not surprised to reproduce your issue... :roll:
There is a regression on I2C since it was moved to use IT mode. An issue is opened for this.
by fpiSTM
Wed Feb 14, 2018 4:25 pm
Forum: Libraries & Hardware
Topic: ENC28J60 +php crash on stm32f103ve
Replies: 11
Views: 280

Re: ENC28J60 +php crash on stm32f103ve

For ENC28J60, I've used this lib which now support stm32 boards since version 2.0.5:
https://github.com/UIPEthernet/UIPEthernet
by fpiSTM
Tue Feb 13, 2018 1:12 pm
Forum: General discussion
Topic: Access the PC register through ST-Link V2?
Replies: 11
Views: 245

Re: Access the PC register through ST-Link V2?

Ensure to have aggressively cache compiled core disabled in Arduino preference Select Debug in Optimize menu. Then after building your sketch: Launch st-util Launch gdb with the generated elf: <yourpath>/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gdb yourbuildsketch.elf In gdb exec: targ...