Forum Discussion
Altera_Forum
Honored Contributor
20 years agoDear Ken !
thank you very much for your answer ! Please help me this problem: We are using altera cyclone1c12 eval (using on-board Flash chip)...., NIOS IDE 5.0 How to write a file When running a C application in uClinux ? fp=fopen(myfile,"r") works well but an error occurs when I use fp=fopen(myfile,"w") Please follow the link to see the images : problem image (http://img.photobucket.com/albums/v604/bebechance/problem.jpg) http://img.photobucket.com/albums/v604/bebechance/problem.jpg There are 2 possible problems for this error : 1. linux_time_limited.sof doesn’t support writing file 2. The program is running on sdram but the file (output_filename) is written to Flash. We already knew that we cannot write to Flash by C functions such as fprintf ,fwrite ,…. To do that , we must use some scripts : nios2-flash-programmer , …… Is this related to RO readonly.....? If it is the reason , then the uClinux FileSystem is useless. What do you think ?