CY8CKIT-059 programming debug/releae | Cypress Semiconductor
CY8CKIT-059 programming debug/releae
In these simple program an ADC_SAR is driven by PWM and ADC_SAR eoc drives the isr. It works only when compiled with debug mode, when compiled in release there is output at pin25 (enters interrupt) but no output at Pin23 (doesn't enter inner main loop).
And in release mode Pin25 is wider (about 850ns) than in debug mode (about 750ns). Pin23 and Pin25 are only used as test points.
CyGlobalIntEnable; /* Enable global interrupts. */
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
/* Place your application code here. */
#endif /* isr_1_INTERRUPT_INTERRUPT_CALLBACK */
/* Place your Interrupt code here. */
/* `#START isr_1_Interrupt` */
/* `#END` */