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.txt","w+"); . . } As soon as I run this the OS hangs. If I add a printf after the FILE * fp; command, nothing is printed. The OS hangs at the file declaration. Any ideas?