4.8.4.1 Stack Overflow Detection Using Data Breakpoint
Decide the maximum stack size for the application and calculate the approximate end address for the stack.
Set the data breakpoint for address range by applying address mask and access type as Read/Write in the end address.
Note: The method above may cause a false
break when heap memory tries to access the specified stack end address.