Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » HardFault_Handler
HardFault_Handler [message #1831380] Tue, 18 August 2020 16:48 Go to next message
joy woo is currently offline joy wooFriend
Messages: 198
Registered: May 2019
Senior Member
I can run forte under stm32, but i don't remeber change something,
that now i couldn't run it any more
it always cause HardFault_Handler
and the line point to :
const CStringDictionary::TStringId RMT_DEV::scm_aunDINameIds[] = { g_nStringIdMGR_ID };

the corresponding assemble is

08000b68: ldr r0, [pc, #0] ; (0x8000b6c <_GLOBAL__sub_I__ZN7RMT_DEV16scm_aunDINameIdsE()+4>)

why define the array causing HardFault_Handler?
Re: HardFault_Handler [message #1831396 is a reply to message #1831380] Wed, 19 August 2020 04:51 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 198
Registered: May 2019
Senior Member

-g -mthumb -fno-builtin -mcpu=cortex-m4
is missed
Re: HardFault_Handler [message #1831434 is a reply to message #1831396] Wed, 19 August 2020 17:45 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

So the CPU flags fixed your problem?

I would have expected some memory or alignment issue as the const data should be put by the linker in a dedicated section (often even flash).
Previous Topic:Problem creating External Event Handler
Next Topic:Error while trying to create Forte for OPC UA
Goto Forum:
  


Current Time: Thu Apr 25 16:50:43 GMT 2024

Powered by FUDForum. Page generated in 0.02880 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top