Forum Discussion
Altera_Forum
Honored Contributor
22 years agoHOL filesystem does not seem to work.
Hi I have tried to follow the exsample in the tutorial how to use a HOL filesystem(the one where you include your filesystem as a ZIP file). my code: # include <stdio.h> int main() ...
Altera_Forum
Honored Contributor
22 years agoHi GreatWhite,
OK thank you for the clarification! NiosIIuser was right in that its easy to just use printf() to show the contents of flash. You can also view flash by running the debugger and examining memory in the flash address region. This method can be really useful.. see my explanation below: A very quick way to have a look at the file system vs. flash content is to open the .zip file into a text editor that shows hex & ASCII side-by-side (I use ultra-edit). A big note that I did not mention earlier: your .zip file must be un-compressed! Now, run the debugger and download any software (hello world is fine) into the HW system that you're having trouble with (I am assuming that as you report, you have programmed flash successfully). Now, in the Nios II IDE debugger, use the memory examination feature (there is a "memory" tab in addition to variables, breakpoints, etc.), and type in the hex offset to the start of the file system that you typed into the zip FS GUI. What you see at this memory address should match what you see in the text editor viewing your zip file. Right now I am looking at the web-server content that we ship on the board, and I see index.html and the HTML to go with it as the first thing in flash... so I suppose a further hint is to program some easily readable content into the file system.