195 views
in System Integration by

Hi, 
I just found the USAGE fault error while running in release mode build toolchain version 14.2.rel1. But in debug mode the build is executing properly.

But in release mode fault occur in EwProcess Function

Register value during fault

[Hard fault handler]␍␊
R0 = c077f7a8␍␊
R1 = ffffffed␍␊
R2 = 0␍␊
R3 = f00000␍␊
R12 = e000e000␍␊
LR = c0000078␍␊
PC = ff␍␊
PSR = 80ebf55␍␊
BFAR = 0␍␊
MMFSR = 0␍␊
BFSR = 0␍␊
UFSR = 100␍␊
CFSR = 1000000␍␊
HFSR = 0␍␊
DFSR = 0␍␊
AFSR = 0␍␊

Below is my call stack

 

What may be issue ?

If I downgrade it to arm toolchain version 11.3 it works fine in both debug and release

Can you figure this out

Regards,

Sakthi Vinayaga Moorthy V

1 Answer

0 votes
by

Hi Sakthi Vinayaga Moorthy V,

thanks for your detailed error description. I think we already found the reason for this issue - which is more or less a compiler bug.

We solved the issue in V14.01.00.00 of the Build Environments for Linux based platforms. See the Release Notes:

Bug-fix: Incorrect floating point calculation on targets with NEON-VFPV4 architecture in combination with GCC compiler. This behavior can be avoided by using #pragma GCC optimize ("-ffp-contract=off").

Are you using the latest version? Otherwise try the mentioned pragma.

Does this help?

Best regards,

Manfred.

 

by
Hi Manfred,

Thanks for the answer we are using embedded wizard Version 11 and we used the pragma as you mentioned still we get the same error.

Can you help this ?

Regards,

Sakthi V
by
Hi Sakthi V,

where did you add the pragma? You can try to set the flag within the makefile, e.g.

CFLAGS += -ffp-contract=off

and rebuild everything. Does it work?

Regards,

Manfred.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...