AnsweredAssumed Answered

Buiding C/C++ mixing project and occur hard fault - malloc is not working ? -

Question asked by Shimizu.Shigenori on Oct 22, 2016
Latest reply on Oct 22, 2016 by Clive One

Hello.

I need to build C/C++ mixing project with microlib.

Building is completed but occur hardfault after loading soon.. not reached to main().

Call stack

    HardFault_Handler   -- 0x080xxxx

    malloc                       -- 0x0000000

Could you let me know how to fix this issue ?

P.S

after, I checked building withouth microlib.

the result was same but the  call stack :

    _sys_open            0x0800xxx

       freopen              0x08000xxx

       _initio              0x800xxxx

    0x000000

What is the root cause ? something wrong with my application ?

Regards

Shige

Outcomes