What is the implementation of CONFIG_HW_STACK_PROTECTION on the nrf52840, using Zephyr (ncs 1.9.2)?
How does it differ from using CONFIG_STACK_SENTINEL?
What is the implementation of CONFIG_HW_STACK_PROTECTION on the nrf52840, using Zephyr (ncs 1.9.2)?
How does it differ from using CONFIG_STACK_SENTINEL?
Hello,
I will look into this.
But are you enabling CONFIG_MPU_STACK_GUARD=y in your project?
Kind Regards,
Abhijith
I do want to enable a stack overflow protection mechanism for my project. Currently there is none.
Before I choose an option I want to understand the pros and cons for each option.
Any news?
Hello
Sorry I was bit occupied by another case last week and sorry for the late response. I got mixed up with some information I provided in my last response. In Cortex-M4 ,the hardware based stack boundaries is possible. And this can be verified by checking whether CONFIG_ARCH_HAS_STACK_PROTECTION is set to 1.
This is the reason CONFIG_HW_STACK_PROTECTION is enabled in nRF52840, the implementation of the same has been explained in HW-based stack overflow detection section. Really sorry for the confusion.
Kind Regards,
Abhijith
Thanks for the helpful information.
Just want to make sure, when using CONFIG_HW_STACK_PROTECTION, is there any limitation for the number of threads the protection is used for?