Forum Discussion
Hi Barry,
I've found the document AN 985: Nios V Processor Tutorial. Please take a look especially at Chapter 3. Hello World on MAX 10 FPGA 10M50 Evaluation Kit and see whether you are missing anything from the steps.
There is also the document Nios V Processor Software Developer Handbook especially section 4.2.1. Building Single Application and Single BSP that should cover the same thing.
From what I can tell, you need to run both the following tools, before being able to import into Ashling RIscFree:
- niosv-bsp → generates the BSP CMakeLists.txt
- niosv-app → generates the Application CMakeLists.txt
Did you run both apps?
Thanks a lot,
Radu
Hi Radu,
Thanks for your reply and information. Yes i have followd AN 985 and i have managed to get a working hello world project running on a MAX10 development board, although it usually invloved some manual hacking to add paths to be able to get the Ashling IDE to be able to locate the gcc toolchain and a couple of header files for example. I also needed to add a refernce to the BSP from the APP so that the project gets glued together correctly.
There are quite a lot of documents for the NIOS V from Altere, but i don't remember seeing the second document you pointed out, but i probably have seen it before (NIOSV Processor Software Developers Handbook). Actually if you look at the steps involved using the ALTERA NIOSV Tutorial AN-985 and compare them to the steps mentioned to create a single application using the Software Developers Handbook, they use a slighlty different approach, the tutorial is not using the niosv-app step but instaed instructs you to create a software directory and then to create hal_bsp and hal_app directories manually and then also the tutorial mentions creating a hellowordl.c application manually in the hal_app directory. The two appraoches are a bit different and a better tutorial should probably use the staps mentioned in the NIOSV Processor Software Developers Handbook.
I will read that new document and go through the steps it mentions in the same ordering and see if that helps me create a compoilable and working project in thsi AshlingRISCFRee IDE. In my experience with this IDE it does not create a working project and instead i end up with a project which a) cannot find the GCC compiler tools and b) cannot find many of the header files in the main C application. To solve these problems i had to resort to adding paths to the GCC tools from the Altera Quartus install manually and add paths to the include files manually.
But maybe the approach shown in the "NIOSV Software Developers Handbook" will work better !
I have been using the niosv command shell to create and compile my projects because i found the Ashling RISCFRee IDE to be too buggy ! But i do use the Aashling IDE to download my ELF file to my MAX10 board and then i can run the gdb debugger through the GUI.
Thanks for your help, Dr Barry H