CH_DBG_FILL_THREADS kills threads

Discussions and support about ChibiOS/RT, the free embedded RTOS.
Post Reply
kdums
Posts: 13
Joined: Tue Oct 17, 2017 4:06 pm
Has thanked: 1 time

CH_DBG_FILL_THREADS kills threads

Post by kdums »

Hi!
Setting
#define CH_DBG_FILL_THREADS FALSE
Sets the stack pointer to 0x55555554 when stating the new task in chThdCreateStatic().
This ultimately triggers a hard fault.

CH_VERSION "2021.11.0"
Hardware is Cortex-M3

Can you confirm this?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: CH_DBG_FILL_THREADS kills threads

Post by Giovanni »

Hi,

It is set to FALSE in all demo applications. Could you post the chconf.h that causes the exception? perhaps it is something else.

Also, compiler and compiler options?

Giovanni
kdums
Posts: 13
Joined: Tue Oct 17, 2017 4:06 pm
Has thanked: 1 time

Re: CH_DBG_FILL_THREADS kills threads

Post by kdums »

Hi!
Sorry, obviously it's set to TRUE!
The threads stack is filled with 0x55.

Kind regards,
Klaus
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: CH_DBG_FILL_THREADS kills threads

Post by Giovanni »

Hi,

I am unable to replicate, the problem is likely it is not (only) related to that option.

Is your application using our startup files or it is a custom build setup?

Giovanni
kdums
Posts: 13
Joined: Tue Oct 17, 2017 4:06 pm
Has thanked: 1 time

Re: CH_DBG_FILL_THREADS kills threads

Post by kdums »

Hi!

Sorry to have bothered you.
I can no longer reproduce.

Thanks for your help.

Kind regards,
Klaus
Post Reply