libc_stdio_set_console/newlib uses fopen to open console device, which has O_CREAT flag and cause fault.