> On Fri, Oct 30, 2009 at 9:07 AM, Jerry Ling
> <[email protected]> wrote:
> > You're right.
> > Yes, the problem comes from the file conversion. So the
> converter need to be
> > fixed.
>
> Or perhaps the build options to bin2char are wrong. It should
> be built for the
> build OS and not the OpenOCD host OS.
>
> E.g. did -mno-cygwin sneak into bin2char build?
>
>
something like this will fix the issue, it's because because win32 needs
binary mode for stdin/out.
I had the same issue when adding the gdb pipe stuff.
#ifdef _WIN32
/* for win32 set stdin/stdout to binary mode */
_setmode(_fileno(stdin), _O_BINARY);
_setmode(_fileno(stdout), _O_BINARY);
#endif
Cheers
Spen
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development