Test program running on MAX32625MBED. Control through USB Serial commands using a terminal emulator such as teraterm or putty.

Dependencies:   MaximTinyTester CmdLine MAX541 USBDevice

Revision:
72:40feab5fd579
Parent:
71:62bcd01ea87f
Child:
73:879578472009
--- a/MAX11043/MAX11043.cpp	Fri Feb 21 23:41:47 2020 +0000
+++ b/MAX11043/MAX11043.cpp	Sat Feb 22 00:10:47 2020 +0000
@@ -233,8 +233,32 @@
 // Interrupt Handler: EOC Event Output from device
 void onEOCFallingEdge(void)
 {
+    // VERIFIED: if DO NOTHING inside interrupt service routine, no crash
+#if 1
+    // VERIFIED: GPIO PIN pulse in response to EOC# falling edge, no crash on HH, no missed pulses
+    // Use MAX32625MBED pin D5 as DigitalOut EOC#-detected
+#define D5 P0_5
+    DigitalOut ScopeTrigger(D5);
+    ScopeTrigger = 0;
+    ScopeTrigger = 1;
+    ScopeTrigger = 0;
+    ScopeTrigger = 1;
+#endif
+#if 0
+    // TODO: read 4 channels in response to EOC# falling edge
+    //     WIP MAX11043 interrupt CRASH on Menu item HH CONVRUN High
+    //
+    //     ++ MbedOS Error Info ++
+    //     Error Status: 0x80020115 Code: 277 Module: 2
+    //     Error Message: Mutex lock failed
+    //     Location: 0xBA33
+    //     Error Value: 0xFFFFFFFA
+    //     Current Thread: main  Id: 0x20002CD0 Entry: 0xBD17 StackSize: 0x1000 StackMem: 0x20001CD0 SP: 0x20027ED0
+    //     For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80020115
+    //     -- MbedOS Error Info --
     extern MAX11043 g_MAX11043_device;
     g_MAX11043_device.Read_ADCabcd();
+#endif
 }
 #endif // MAX11043_EOC_INTERRUPT_POLLING