Forum Discussion
[BUG]: Platform-Designer generates invalid .dtso-file (multiple interrupts not possible)
Hi,
I am generating a system in platform-designer with multiple custom components.
I have one component with multiple interrupts (2 interrupts, to be more precise...).
However, the device-tree-entry of the mentioned component only contains one interrupt in the generated .dtso-file.
To be exact, the dts-entry correctly contains 2 interrupts in the interrupt-names-array, but not in the actual interrupts-array.
I would expect something like this: "interrupts = <0 41 1>, <0 42 1>;"
(40 is the base-number -> 41 corresponds to irq-number 1, 42 corresponds to irq-number 2...)
The fact that the interrupt-names-array is correct indicates that the interrupts are exported correctly.
Best regards,
Jakob
PS: below is more detailed information about the problem
system-information:
- quartus prime lite 18.1
- windows 10
Screenshot from platform-designer-system below:
Screenshot from .dtso-file below:
Screenshots from .sopcinfo-file below:
14 Replies
- tehjingy_Altera
Regular Contributor
Hi
I believe that you are using the sopc2dts converter to generate the device tree file from the sopc file info?
Sorry to say that we have discontinued the sopc2dts converter. The device tree would need to be created or edited base on our GSRD package.
Regards
Jingyang, Teh
- jakobjung10
New Contributor
Hi @JingyangTeh_Altera !
Sorry for replying late.
Can you assist in generating the dtso-file with the mentioned GSRD-package?
BR,Jakob
- tehjingy_Altera
Regular Contributor
Hi
Do you have any follow up question regarding this case?
Regards
Jingyang, Teh
- tehjingy_Altera
Regular Contributor
Hi
As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.
Regards
Jingyang, Teh
- KennyT_altera
Super Contributor
reopening the case
- tehjingy_Altera
Regular Contributor
Hi
Yeah Sure.
There are plenty of how to in editing the device tree online.
For the interrupt cell below are the explaination on the entery:
- The 1st cell is the interrupt type: 0 for SPI interrupts, 1 for PPI interrupts.
- The 2nd cell contains the interrupt number for the interrupt type.
SPI interrupts are in the range [0-987], PPI interrupts are in the range [0-15]
- The 3rd cell is the flags, encoded as follows:
- bits[3:0] trigger type and level flags.
- 1 = low-to-high edge triggered
- 2 = high-to-low edge triggered
- 4 = active high level-sensitive
- 8 = active low level-sensitive
- bits[15:8] PPI interrupt cpu mask.
Regards
Jingyang, Teh
- jakobjung10
New Contributor
Hi @JingyangTeh_Altera ,
I am aware of the explanations for the different entries.
My temporary solution was to manually edit the device-tree-file.
However, you mentioned that the sopc2dts-converter is outdated.
So what is the modern way of automatically generating a .dtso-file? (you mentioned GSRD-package...)
BR,Jakob
- tehjingy_Altera
Regular Contributor
Hi
For the current method, the device tree of the devkit have been uploaded to the uboot branch below:
In the device tree all the peripheral node have been created base on the Cyclone5 dev kit.
Regards
Jingyang, Teh
- tehjingy_Altera
Regular Contributor
Hi
As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.
Regards
Jingyang, Teh
- jakobjung10
New Contributor
Hi @JingyangTeh_Altera ,
i actually did reply!
Look above. community.intel.com/t5/Intel-Quartus-Prime-Software/BUG-Platform-Designer-generates-invalid-dtso-file-multiple/m-p/1655503#M85180
BR,
Jakob
- KennyT_altera
Super Contributor
case reopening
- KennyT_altera
Super Contributor
reopening the case
- tehjingy_Altera
Regular Contributor
Hi
For the GSRD device tree could be found under the github link below:
The device tree created is based on the CycloneV dev kit. You could enable and disable any node t
hat is available base on your custom board.
Regards
Jingyang, Teh