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?
CH_DBG_FILL_THREADS kills threads
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: CH_DBG_FILL_THREADS kills threads
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
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
Re: CH_DBG_FILL_THREADS kills threads
Hi!
Sorry, obviously it's set to TRUE!
The threads stack is filled with 0x55.
Kind regards,
Klaus
Sorry, obviously it's set to TRUE!
The threads stack is filled with 0x55.
Kind regards,
Klaus
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: CH_DBG_FILL_THREADS kills threads
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
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
Re: CH_DBG_FILL_THREADS kills threads
Hi!
Sorry to have bothered you.
I can no longer reproduce.
Thanks for your help.
Kind regards,
Klaus
Sorry to have bothered you.
I can no longer reproduce.
Thanks for your help.
Kind regards,
Klaus
Who is online
Users browsing this forum: No registered users and 10 guests