CH_DBG_FILL_THREADS kills threads

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

CH_DBG_FILL_THREADS kills threads

Postby kdums » Wed Nov 17, 2021 5:12 pm

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: CH_DBG_FILL_THREADS kills threads

Postby Giovanni » Wed Nov 17, 2021 6:48 pm

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

Postby kdums » Wed Nov 17, 2021 8:13 pm

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

Kind regards,
Klaus

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: CH_DBG_FILL_THREADS kills threads

Postby Giovanni » Wed Nov 17, 2021 8:18 pm

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

Postby kdums » Thu Nov 18, 2021 11:31 am

Hi!

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

Thanks for your help.

Kind regards,
Klaus


Return to “ChibiOS/RT”

Who is online

Users browsing this forum: No registered users and 14 guests