Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

3.2.7.3. Run Time Stack Checking And Exception Debugging

To enable extra exception information, navigate to Nios® II MegaWizard > Advanced Features Exception Checking > Extra Information Register; and recompile the HW project and regenerate the BSP in the Nios® II SBT for Eclipse.
  1. Enable the Run Time Stack Checking in the BSP project from NIOS II SBT for Eclipce Nios® II BSP Editor. From the BSP project, right-click and navigate to Nios® II > BSP Editor > Settings > Advanced > hal > enable_run_time_stack_checking.
  2. Rebuild BSP and software.
  3. Ensure that the FPGA is configured.
  4. Start the Debug Session by navigating to Debug As > Nios® II Hardware.
  5. Run the Software.