Yes, I did.

On Sat, Jul 11, 2015 at 5:53 PM, Chuck McManis <chuck.mcma...@gmail.com>
wrote:

> Just checking but you put your FP_FLAGS on that link line as well right?
> --Chuck
>
>
> On Fri, Jul 10, 2015 at 10:14 PM, Bernard Mentink <bment...@gmail.com>
> wrote:
>
>> Nope, that still did not work .. same error.
>>
>> On Sat, Jul 11, 2015 at 4:57 PM, Chuck McManis <chuck.mcma...@gmail.com>
>> wrote:
>>
>>> Nope, your ARCH is wrong, use the same -mcpu and it will grab the
>>> correct architecture.
>>> --Chuck
>>>
>>>
>>> On Fri, Jul 10, 2015 at 9:55 PM, Bernard Mentink <bment...@gmail.com>
>>> wrote:
>>>
>>>> Hi Chuck,
>>>>
>>>> Thanks for the quick reply. My link flags are:
>>>>
>>>> LINKFLAGS = -T$(LD_SCRIPT) -nostartfiles  \
>>>> -Wl,--gc-sections,-Map=$(BIN_DIR)/$(OUTPUT).map   \
>>>> -mthumb -march=armv7-m -L$(QP_PORT_DIR)/$(BIN_DIR) -L$(OPENCM3_DIR)/lib
>>>>
>>>> I wonder if my -march is correct?
>>>>
>>>> Bernie
>>>>
>>>> On Sat, Jul 11, 2015 at 4:41 PM, Chuck McManis <chuck.mcma...@gmail.com
>>>> > wrote:
>>>>
>>>>> Well reading your error again I can see that you're error occurs when
>>>>> linking not compiling, how do you link the final result?
>>>>>
>>>>>
>>>>> On Fri, Jul 10, 2015 at 9:39 PM, Bernard Mentink <bment...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Chuck,
>>>>>>
>>>>>> Yes, I only showed you the floating point related flags, my total
>>>>>> flags are:
>>>>>>
>>>>>> FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
>>>>>>
>>>>>> CPPFLAGS = -mcpu=cortex-m4  -mthumb -Wall \
>>>>>> -fno-rtti -fno-exceptions  \
>>>>>> -Os $(INCLUDES) $(DEFINES) -DNDEBUG  -fno-common \
>>>>>> -Wall -Wextra  \
>>>>>> -Wredundant-decls  \
>>>>>> -Wundef -Wshadow $(FP_FLAGS) -ffunction-sections -fdata-sections -MD
>>>>>>
>>>>>> So still not sure what gives ..
>>>>>>
>>>>>> Bernie
>>>>>>
>>>>>> On Sat, Jul 11, 2015 at 4:24 PM, Chuck McManis <
>>>>>> chuck.mcma...@gmail.com> wrote:
>>>>>>
>>>>>>> You should also define the CPU type in your c-flags (not all Cortex
>>>>>>> CPUs *have* floating point. My flags look like this:
>>>>>>>
>>>>>>> $ make print-ARCH_FLAGS
>>>>>>> ARCH_FLAGS=-mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16
>>>>>>> $
>>>>>>>
>>>>>>> And if you are wondering, I've got this in my Makefile.rules file ...
>>>>>>>
>>>>>>> print-%:
>>>>>>>     @echo $*=$($*)
>>>>>>>
>>>>>>> Which lets you type 'make print-<target-name>' and it will print out
>>>>>>> what that name is defined to be.
>>>>>>>
>>>>>>> --Chuck
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Jul 10, 2015 at 7:59 PM, Bernard Mentink <bment...@gmail.com
>>>>>>> > wrote:
>>>>>>>
>>>>>>>> Hi Guys,
>>>>>>>>
>>>>>>>> I have the following error when trying to link my project after
>>>>>>>> including some files using floats.
>>>>>>>>
>>>>>>>> arm-none-eabi/bin/ld: error: dbg/noddy.elf uses VFP register
>>>>>>>> arguments,
>>>>>>>> /usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/libm.a(lib_a-s_sin.o)
>>>>>>>> does not
>>>>>>>>
>>>>>>>> My projects use the following FP compile flags:
>>>>>>>> FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
>>>>>>>>
>>>>>>>> I am compiling for the STM32F4 target and want to use hardware
>>>>>>>> float.
>>>>>>>> It seems the tools won't allow that for some reason ..
>>>>>>>>
>>>>>>>> Any idea's anyone?
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> Bernie
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> -----------------------------------------------------------------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> *People born in the 50's have lived *
>>>>>>>> *in seven decades.*
>>>>>>>> *two centuries,*
>>>>>>>> *and two millenniums.*
>>>>>>>> *We had the best music, fastest cars, drive-in theaters, soda
>>>>>>>> fountains, and happy days.*
>>>>>>>> *And we are not even that old yet.*
>>>>>>>> *We're just that cool.*
>>>>>>>>
>>>>>>>> ----------------------------------------------------------------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Don't Limit Your Business. Reach for the Cloud.
>>>>>>>> GigeNET's Cloud Solutions provide you with the tools and support
>>>>>>>> that
>>>>>>>> you need to offload your IT needs and focus on growing your
>>>>>>>> business.
>>>>>>>> Configured For All Businesses. Start Your Cloud Today.
>>>>>>>> https://www.gigenetcloud.com/
>>>>>>>> _______________________________________________
>>>>>>>> libopencm3-devel mailing list
>>>>>>>> libopencm3-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> -----------------------------------------------------------------------------------------------------------------------------------------
>>>>>>
>>>>>> *People born in the 50's have lived *
>>>>>> *in seven decades.*
>>>>>> *two centuries,*
>>>>>> *and two millenniums.*
>>>>>> *We had the best music, fastest cars, drive-in theaters, soda
>>>>>> fountains, and happy days.*
>>>>>> *And we are not even that old yet.*
>>>>>> *We're just that cool.*
>>>>>>
>>>>>> ----------------------------------------------------------------------------------------------------------------------------------------
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> -----------------------------------------------------------------------------------------------------------------------------------------
>>>>
>>>> *People born in the 50's have lived *
>>>> *in seven decades.*
>>>> *two centuries,*
>>>> *and two millenniums.*
>>>> *We had the best music, fastest cars, drive-in theaters, soda
>>>> fountains, and happy days.*
>>>> *And we are not even that old yet.*
>>>> *We're just that cool.*
>>>>
>>>> ----------------------------------------------------------------------------------------------------------------------------------------
>>>>
>>>
>>>
>>
>>
>> --
>>
>> -----------------------------------------------------------------------------------------------------------------------------------------
>>
>> *People born in the 50's have lived *
>> *in seven decades.*
>> *two centuries,*
>> *and two millenniums.*
>> *We had the best music, fastest cars, drive-in theaters, soda fountains,
>> and happy days.*
>> *And we are not even that old yet.*
>> *We're just that cool.*
>>
>> ----------------------------------------------------------------------------------------------------------------------------------------
>>
>
>


-- 
-----------------------------------------------------------------------------------------------------------------------------------------

*People born in the 50's have lived *
*in seven decades.*
*two centuries,*
*and two millenniums.*
*We had the best music, fastest cars, drive-in theaters, soda fountains,
and happy days.*
*And we are not even that old yet.*
*We're just that cool.*
----------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
libopencm3-devel mailing list
libopencm3-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Reply via email to