<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> </div>
<div>> so my projects import the<br/>
> stdperiph stuff into the project and build it with whatever ABI settings<br/>
> I've defined in the project. You might find that provides better results</div>
<div> </div>
<div>I agree - and it enables you to put every piece of code that is needed to produce an executable of your project into one source control repository.</div>
<div>It really sucks when a project is not worked on for some time, and later you can't get that exact same version of the library again, and the present one does not produce an executable which behaves the same way, for some bug was introduced, or one was fixed and your (deliberate or unknowing) workaround breaks...</div>
<div>Your repo gets bigger, but what the heck. For preventing a PITA like that, who cares.</div>
<div>
<div><br/>
</div>
<div>Steve</div>
<div> </div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Von:</b> "Eric Brombaugh" <ebrombaugh1@cox.net><br/>
<b>An:</b> synth-diy@dropmix.xs4all.nl<br/>
<b>Betreff:</b> Re: [sdiy] ARM M4 (stm32F3xx) FPU questions</div>
<div name="quoted-content">Looks like you set up the SW4STM project to reference stdperiph as a<br/>
library and then built the library for softfp ABI. Try rebuilding the<br/>
library as hard.<br/>
<br/>
I don't use it as an external library, so my projects import the<br/>
stdperiph stuff into the project and build it with whatever ABI settings<br/>
I've defined in the project. You might find that provides better<br/>
results, but the trade-off is that it has to build all the stdperiph<br/>
components when you clean the project and rebuild.<br/>
<br/>
Eric<br/>
<br/>
On 10/06/2016 06:33 PM, Chris McDowell wrote:<br/>
> Howdy,<br/>
><br/>
> This is a long shot :)<br/>
><br/>
> I'm using Eclipse with "System Workbench for STM32" for an STM32F334.<br/>
> I'm flying by the seat of my pants, but so far it's worked out quite<br/>
> well. Super impressed by these ST parts, as expected.<br/>
><br/>
> But, I'm running into an issue when trying to use the FPU. If I<br/>
> configure Eclipse to use the "soft" or "softfp" ABI, I have no problems.<br/>
> "soft" of course isn't what I want. "softfp" is much faster, but after<br/>
> reading about the difference between the "softfp" and "hard" ABI, I<br/>
> understand that I'm still taking a big performance hit (or maybe I'm<br/>
> not? correct me if I'm wrong!) . I want to get the most out of this MCUs<br/>
> FPU!<br/>
><br/>
><br/>
> this is what the related flags look like when I try to use the "hard"<br/>
> ABI (if I'm misunderstanding or missing other relevant flags, please<br/>
> feel free to say so!)<br/>
><br/>
> arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16<br/>
><br/>
> then I get this error:<br/>
> (my file name).elf uses VFP register arguments, (my path to std periph<br/>
> library)/stm32f334k8t6_stdperiph_lib/Debug/libstm32f334k8t6_stdperiph_lib.a(stm32f30x_dac.o)<br/>
> does not<br/>
><br/>
> and again for quite a few other object files. I suppose that these<br/>
> object files, that are part of the std peripheral library, are trying to<br/>
> use "softfp" instructions, while my code is trying to use "hard". I<br/>
> understand that they are not compatible. Is there something obvious I<br/>
> can try here? Anyone have any idea? I know there are a ton of variables<br/>
> in a set up like this, but any pointers would be really appreciated.<br/>
><br/>
> and please forgive / correct my ignorance regarding the terminology<br/>
> here. Hopefully someone understands what I'm trying to say :)<br/>
><br/>
> Cheers,<br/>
> Chris<br/>
><br/>
><br/>
><br/>
><br/>
> _______________________________________________<br/>
> Synth-diy mailing list<br/>
> Synth-diy@dropmix.xs4all.nl<br/>
> <a href="http://dropmix.xs4all.nl/mailman/listinfo/synth-diy" target="_blank">http://dropmix.xs4all.nl/mailman/listinfo/synth-diy</a><br/>
><br/>
<br/>
_______________________________________________<br/>
Synth-diy mailing list<br/>
Synth-diy@dropmix.xs4all.nl<br/>
<a href="http://dropmix.xs4all.nl/mailman/listinfo/synth-diy" target="_blank">http://dropmix.xs4all.nl/mailman/listinfo/synth-diy</a></div>
</div>
</div></div></body></html>