Forum Discussion
Altera_Forum
Honored Contributor
14 years agoFILE * pointer declaration hangs uClinux
Hi all, I'm running uClinux (noMMU) on DE0 Nano. I'm trying to create a file and write to it via a C program. Example code: int main(void) { FILE * fp; fp = fopen("test....
Altera_Forum
Honored Contributor
14 years agoThat can't be. Most likely fopen is dead-locked and preventing the stdout from flushing out the printf. Try doing a fflush (stdout) after the printf and before the fopen. I am assuming that main is getting called and that if the fopen call is not there, you do see the printf output.
If the fopen is hanging, something must be wrong with the device it is trying to access. I am not too familiar with the uClinux/DE0 setup combination.