Call Stack _unhalted_exception

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
dblokhin
Posts: 2
Joined: Fri Apr 05, 2019 1:56 pm

Call Stack _unhalted_exception

Post by dblokhin »

Hello, I'm trying to use Cortex Debug in VS Code, but i have the following problem, it's only can be fixed by adding -lc -spec=nosys.specs in Makefile. But it's not a solution for me, because in that case "memset" function works incorrect.
Image

Have you any idea what it could be? Thank you.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Call Stack _unhalted_exception

Post by Giovanni »

Hi,

Which compiler are you using?

Giovanni
dblokhin
Posts: 2
Joined: Fri Apr 05, 2019 1:56 pm

Re: Call Stack _unhalted_exception

Post by dblokhin »

arm-none-eabi-gcc
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Call Stack _unhalted_exception

Post by Giovanni »

dblokhin wrote:arm-none-eabi-gcc


Is it the one from ARM or some other source?

You may try to compile ChibiOS demos using Makefiles and see if everything is fine. Take note of all settings and options printed by the make process because you need to replicate those in the VS build system.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Call Stack _unhalted_exception

Post by Giovanni »

Moving in generic support.

Giovanni
Post Reply