Forum Discussion
Hi,
I do not think it is format issue as I am not seeing a trend on this. I suspect that there should be other thing that cause the issue. May I know if you are able to use SignalTap to tap the signal to see what you send through micro controller is correctly performed on the Avalon-MM to the on chip flash? The reason is that I am not able to duplicate the issue when I am using JTAG Master to write into the On Chip Flash IP.
- Shiva6 years ago
New Contributor
Hi,
I am able to do the signal tapping for Avalon-MM IP. The data what i am sending is exactly writing into the on-chip flash memory. I checked it by taking some random samples in the trigger conditions from the rpd file. Please find the following attachment of stp and rpd file. In stp file i took the data from 0x0E9C location to 0x 0E9F location of rpd file.
when i generated the on-chip flash ip the tool generated one .v file which has the information regarding address locations of different sectors.In that the CFM1 sector starts from 17'h7200 location and ends at 17'hABFF and the CFM2 sector starts from 17'h2000 and ends at 17'h71FF. And i am writing the data in [31:0] pattern to on-chip flash memory. Is there anything wrong in the above memtioned details? I am using Quartus 16.0 lite edition with 10M08SAU169C8G device.
As i mentioned earlier when i write and read the data using the micro controller unit the read out data is exactly matching with the rpd data but if i write the data using MCU and read the data using examine option in the tool the data is not matching. Similarly if i flash the data using JTAG and read back by using the examine the data is matching but if i flash the data using JTAG and read back by using MCU it is not matching.
I am comparing the process of sending the data through MCU with JTAG because if i flash the code using JTAG and trigger the re-configuration it is re-configuring but not by using the MCU.
What might be the reason for not getting the proper data what we sent though MCU and read back through the examine option.Even, now i checked the data at Avalon-MM IP using signal tap 2 logic analyzer, which is working fine.
Regards,
Shiva.
- JohnT_Altera6 years ago
Regular Contributor
Hi,
May I know what is the different between micro controller unit and the MCU? You mention that the micro controller unit is working correctly but not MCU.
From the SignalTap, you are only tapping the data writedata signal. Is it possible to include the Avalon Address, write, read signal as well so that I can be sure that the timing is correct? I would like to match what you are sending from the MCU is correctly performed on the Avalon MM interface to On Chip Flash. We need to further look into what is actually happening or is there a conversion issue happening when the data is send from MCU to the On Chip Flash.
I understand that you are able to performed read and write from the MCU but the data inside the On Chip Flash is different when it is examine through Quartus programmer. So we will need to make sure that the data send from the MCU is correctly decoded by the Avalon-MM.
- Shiva6 years ago
New Contributor
Hi John,
When i tried to write the data repeatedly from MCU and read back by using examine option, 2 times the data was matched with rpd data. After this i triggered the reconfiguration and it worked fine. But most of the times the data writtten by using MCU is not matching with the rpd files.
After this i tried to tap avmm_data_writedata continuously with starting data, this signal is always triggered and giving me the result like the data is going correctly but if i read back by examine the data is not matching.
Is there any chance that will happen in between Avalon-MM IP and on-chip flash?
There is no difference between micro controller unit and MCU i just mentioned it first and used as MCU later.
Please find the following attachment includes write and read operation through Signal tap 2 logic analyzer.
Regards,
Shiva.