Search found 215 matches

by edogaldo
Sun Apr 30, 2017 9:17 pm
Forum: Generic STM32F103
Topic: blue pill && 3 hardware 9bits UART @ 26300bps
Replies: 5
Views: 86

Re: blue pill && 3 hardware 9bits UART @ 26300bps

What about:

Code: Select all

USARTx->regs->CR1

?
by edogaldo
Wed Apr 26, 2017 2:13 pm
Forum: Generic STM32F103
Topic: USB Device Not Recognised
Replies: 13
Views: 186

Re: USB Device Not Recognised

Hi All, A while ago I got a couple of these boards http://www.stm32duino.com/viewtopic.php?t=1503&start=10 and had been playing around with getting them configured as USB HIDs for a project I'm working on. I admit I'm a novice to programming controller boards and I was last looking at changing ...
by edogaldo
Fri Apr 21, 2017 5:29 pm
Forum: STM32F4 Boards
Topic: FPU on F407 - how to
Replies: 99
Views: 1172

Re: FPU on F407 - how to

Pito wrote:Ok I will change back to 10000 steps, and the measurement will be in usecs.
I only wanted to show to F1 users they system is really slow :lol:

What should say Arduino 8-bit users?!
by edogaldo
Fri Apr 21, 2017 1:47 pm
Forum: STM32F4 Boards
Topic: FPU on F407 - how to
Replies: 99
Views: 1172

Re: FPU on F407 - how to

Unfortunately, calling it in init() doesn't guarantee that it will be called before any of the _pre_init constructors. You are right, I confused the execution order, then I agree that probably the best place is where you said. About the startup code, I think it would need a significant review.. @Pi...
by edogaldo
Fri Apr 21, 2017 12:30 pm
Forum: STM32F4 Boards
Topic: FPU on F407 - how to
Replies: 99
Views: 1172

Re: FPU on F407 - how to

I'd also suggest to put this in function "init()" of "boards.c". I'd put it in the reset interrupt hander code, before any constructors are ever called. To be safe you want to make sure it is called before any of the __preinit_array functions are called. Right after the BSS sect...
by edogaldo
Fri Apr 21, 2017 11:40 am
Forum: STM32F4 Boards
Topic: FPU on F407 - how to
Replies: 99
Views: 1172

Re: FPU on F407 - how to

@pito the trouble is on an f1 a user who runs it using soft float may need to wait > 10x that amount of time for the benchmark to complete :lol: i'd suggest we can use micros() instead which is the time in microseconds and we can make do with less loops in addition i found that __ARM_PCS_VFP is def...
by edogaldo
Thu Apr 20, 2017 3:28 pm
Forum: STM32F4 Boards
Topic: FPU on F407 - how to
Replies: 99
Views: 1172

Re: FPU on F407 - how to

@Pito/ag123
Just a question: which core are you using?
Now there are so many..
by edogaldo
Thu Apr 20, 2017 1:57 pm
Forum: STM32F4 Boards
Topic: FPU on F407 - how to
Replies: 99
Views: 1172

Re: FPU on F407 - how to

@pito, i think it probably has nothing to do with those fpu_enable codes, as i've enable_fpu parts of the code run after my key press, but in the first place, it did not even get into setup() as my led did not light up. hence, my guess is we'd need to patch that ISR (interrupt service routine) or s...
by edogaldo
Thu Apr 20, 2017 11:36 am
Forum: STM32F4 Boards
Topic: FPU on F407 - how to
Replies: 99
Views: 1172

Re: FPU on F407 - how to

What is interesting: 1. the .bin for MMini, -Os, DP, noFPU is 47.8kB 2. the .bin for 407, -O0, SP is 33kB That's weird.. Why Whetstone compiles and runs. The same math.h, almost the same math funcs (sin/cos...). You are comparing SP vs DP and you are not specifying if, for the 407, you used the FPu...

Go to advanced search