Forum Discussion
System ID issue
Hi everyone,
I am working in a project using Quartus v11.0. The Bsp was created using Qsys. *obs: The project was updated/converted from SOPC Builder to Qsys... So, I am having problems to load the application into the FPGA. Attached is the problem that I have. No System ID found and timestamp. I have a feeling that the problem is based on my BSP file. Because, the flash programmer cant see the System ID (probally NOT a software issue...so). Did anyone had this experience before?? What all I need to have in Qsys to set he system ID?? Thank You very much12 Replies
- Altera_Forum
Honored Contributor
You could try and clean the project (delete the db and incremental_db folders, and all the generated .sof, .ptf and .sopcinfo files) and recompile in the right order: QSys, then Quartus, then software (clean project + compile). Then upload the configuration in the FPGA (and check if you should upload a _time_limited.sof instead of the regular .sof) and finally the software. I don't know any other way.
- Altera_Forum
Honored Contributor
Thank You for your help evveryting you say make sense, but I cant get it to work.
I think the problem is with the block that I am trying to update in Quartus. The block might not be updating right. the funny thing is that if I try to open the block it the sysID component shows up there with the base address that I gave. I wonder what might be causing this confusion. How do I make sure the block in Quaturs is update riht? Thanks - Altera_Forum
Honored Contributor
The first return value is supposed to the the ID and the second one the timestamp.
None of the value seems even remotely close to what you have in your BSP or your first screenshot. This indicates that what you currently have in the FPGA isn't the image expected by your BSP. So check that both the BSP and the Quartus project are using the same QSys project, compile the QSys project first, then the Quartus project and the software, check that you put the correct .sof file and try again to upload your software. - Altera_Forum
Honored Contributor
Thank you for your help. I am not really sure how to check if the clock is active through the console. However I ran the script and it gave me some information back but how does that help me?
I got : master_read_32 $mast 0x00400800 1 0x01440004 master_read_32 $mast 0x00400804 1 Thanks 0x297ff804 - Altera_Forum
Honored Contributor
check again and again that you compile the correct project and that the .sof file you put in the FPGA is the one you just compiled and not something else.
Check that your BSP project points to the correct .sopcinfo file and not the one from another project. Check in QSys that the System ID component is connected to the Nios CPU data master. If the System ID component is running on a different clock than the CPU, check that this clock is active. You can also try to access directly the System ID component through System Console, as explained in this thread (http://www.alteraforum.com/forum/showthread.php?t=36930). In your case you'd have to change the addresses, so it would be something likeset mast 0] open_service master $mast processor_reset $mast master_read_32 $mast 0x00400800 1 master_read_32 $mast 0x00400804 1 - Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
If the system ID is in the BSP then you should see some definitions for it. If for example you called it system_id in QSYS, then you should find a group of definitions starting with SYSTEM_ID (SYSTEM_ID_NAME, SYSTEM_ID_BASE, etc.)
- Altera_Forum
Honored Contributor
I had to delete the old folders so then the file could get updated. It didn't solved my problem though.
I would like to make sure that the sysID is there. Is there anyway I can make sure that the sysID component is inside my BSP? (maybe lookiing into system.h!?) Thanks - Altera_Forum
Honored Contributor
IIRC QSys generates its files in a specific directory inside the Quartus project. The qip file should be there.
As it was a project converted from SOPC Builder, maybe Quartus is still using the SOPC builder project instead of QSys... - Altera_Forum
Honored Contributor
I just talked to someone, and he told me that I need to have the .qip file added into my Quartus project, then compile. Does that proceed?!
If so, I wonder if the qip file gets created on Qsys. Because I am not getting it. Is there any file created by Qsys, that should be added to the project to set IDs? Thanks