Search found 67 matches

by Pito
Tue Feb 18, 2020 10:09 pm
Forum: STM32F4 based boards
Topic: Is there any ported RTOS for STM32F407VE?
Replies: 12
Views: 753

Re: Is there any ported RTOS for STM32F407VE?

This is one of the best RTOSes you may get for F407:

http://chibios.org/dokuwiki/doku.php

Best way to start is with ChibiStudio:

http://chibios.org/dokuwiki/doku.php?id ... udio:start

The author of Chibios works for STM, afaik.
by Pito
Wed Feb 12, 2020 9:11 pm
Forum: General discussion
Topic: freeRTOS900 hangs
Replies: 2
Views: 318

Re: freeRTOS900 hangs

That description of your problem is not enough to help you.
Porting existing libraries into an Rtos is not easy - you have to create tasks which interacts, etc.
Best you will publish your entire code and it could be somebody helps you then..
by Pito
Tue Jan 28, 2020 9:03 am
Forum: General discussion
Topic: [Help]How to configure PA15 PC13 PC14 PC15 as inputs on Libmaple core
Replies: 5
Views: 321

Re: [Help]How to configure PA15 PC13 PC14 PC15 as inputs on Libmaple core

Those pins have some limitation - speed and fanout (they are weaker). It was discussed how to enable them on the old forum many times. https://stm32duinoforum.com/forum/index_php.html I think the pins with 32kHz resonator should work when oscillator disabled. Mind there are capacitors to the ground,...
by Pito
Mon Jan 27, 2020 10:28 pm
Forum: General discussion
Topic: [SOLVED]Interesting problem
Replies: 41
Views: 1368

Re: Interesting problem

There is a lot of settings in the STlink Utility app - Option Bytes atc.
Doublecheck whether there is not something set such it is disturbing..
by Pito
Mon Jan 27, 2020 9:24 pm
Forum: General discussion
Topic: ADC sample rate of 5 Ms/s on bluepill STM32F103
Replies: 11
Views: 544

Re: ADC sample rate of 5 Ms/s on bluepill STM32F103

Below is a simulation of the input circuitry and Sample and Hold of STM32F103 ADC. Radc is 1k and Cadc is 8pF (Datasheet). C1 is a parasitic capacity of the input pin and wiring. Diodes and 200ohm resistor -> simplified PIN protection wiring inside the chip. 1. First picture is how the edges look li...
by Pito
Mon Jan 27, 2020 11:09 am
Forum: General discussion
Topic: ADC sample rate of 5 Ms/s on bluepill STM32F103
Replies: 11
Views: 544

Re: ADC sample rate of 5 Ms/s on bluepill STM32F103

Even with 0ohm source the is an internal Radc and sampling capacitor Cadc.
Radc is usualy 1k-10k and Cadc 5-15pF (doublecheck the DS).
That limits the sampling rate, as you have to fully charge the Cadc via Rsource+Radc between the samples within the ADC input voltage limits.
by Pito
Sun Jan 26, 2020 9:54 pm
Forum: General discussion
Topic: dhrystone and whetstone benchmarks
Replies: 84
Views: 2637

Re: dhrystone and whetstone benchmarks

Bingo600 wrote:
Sun Jan 26, 2020 7:28 pm
fpiSTM wrote:
Sun Jan 26, 2020 7:14 pm
This is provided by ARM:
https://github.com/ARM-software/CMSIS_5 ... SP/Lib/GCC
Damm ...
".a" files ==> Compiled libraries

No source ..

Well i'd prob not understand the "magic" anyway

/Bingo
https://github.com/ARM-software/CMSIS_5 ... DSP/Source
by Pito
Sun Jan 26, 2020 6:44 pm
Forum: General discussion
Topic: dhrystone and whetstone benchmarks
Replies: 84
Views: 2637

Re: dhrystone and whetstone benchmarks

Look at my above link - I did CMSIS FFT on 407, you may download sources of libraries for DSP and other math with FPU. https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32-standard-peripheral-libraries/stsw-stm32065.html#get-software...
by Pito
Sun Jan 26, 2020 6:33 pm
Forum: General discussion
Topic: dhrystone and whetstone benchmarks
Replies: 84
Views: 2637

Re: dhrystone and whetstone benchmarks

Another argument for -Os is when you start experiments with those hw switches. With higher optimisation you may lose track.
by Pito
Sun Jan 26, 2020 6:23 pm
Forum: General discussion
Topic: dhrystone and whetstone benchmarks
Replies: 84
Views: 2637

Re: dhrystone and whetstone benchmarks

A rather long thread on how we messed with stm32F407 FPU in 2017 https://web.archive.org/web/20170715084304/http://stm32duino.com/viewtopic.php?f=39&t=2001&sid=6ae2281d3c685a20709d7fc23d399868 There are some gcc settings recommended, like -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constan...

Go to advanced search