How to view stack memory while running the program?
To do it while the program is actually running, you'd need something independent of the CPU - either dedicated on-chip debug hardware (JTAG, etc), or an ICE. Whether it's actually useful to do this while the program is actually running is another question... What are you trying to achieve?