Do not use fprintf or printf debugging! This does not redirect to adb logcat. Use LOG(ERROR) etc. instead. See also the "Get Blink code to output to the adb log" section. Redirecting stdio to logcat, ...