In a Bootloadable project, I need to access CyResetStatus but it always says CY_RESET_SW, regardless of how the chip reset.
This is caused by the the bootloader running on startup, which exits with CySoftwareReset(). This overwrites whatever was in CyResetStatus previously.
Is there a way for the Bootloadable project to correctly determine the reset status as seen by the Bootloader?
Or, is there a way for the bootloader to copy that information somewhere for the Bootloadable to read? For instance, how could I create a NOINIT variable in both projects that would share the same memory location?