Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17254 Discussions

[BUG]: Platform-Designer generates invalid .dtso-file (multiple interrupts not possible)

jakobjung10
Beginner
1,663 Views

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:
mpu-9250-component.PNG Screenshot from .dtso-file below:

bc65a62d-63cc-4ff3-8278-3fe4300546b1.png

Screenshots from .sopcinfo-file below:

sopcinfo-1.PNGsopcinfo-2.PNGsopcinfo-3.PNGsopcinfo-4.PNG

Labels (1)
0 Kudos
14 Replies
JingyangTeh_Altera
1,580 Views

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


0 Kudos
jakobjung10
Beginner
1,386 Views

Hi @JingyangTeh_Altera !

Sorry for replying late.

Can you assist in generating the dtso-file with the mentioned GSRD-package?

BR,

Jakob
 

0 Kudos
JingyangTeh_Altera
1,534 Views

Hi


Do you have any follow up question regarding this case?


Regards

Jingyang, Teh


0 Kudos
JingyangTeh_Altera
1,490 Views

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


0 Kudos
KennyTan_Altera
Moderator
1,349 Views

reopening the case


0 Kudos
JingyangTeh_Altera
1,343 Views

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




0 Kudos
jakobjung10
Beginner
1,306 Views

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

0 Kudos
JingyangTeh_Altera
1,235 Views

Hi


For the current method, the device tree of the devkit have been uploaded to the uboot branch below:

https://github.com/altera-opensource/u-boot-socfpga/blob/socfpga_v2024.04/arch/arm/dts/socfpga_cyclone5_socdk.dts

In the device tree all the peripheral node have been created base on the Cyclone5 dev kit.


Regards

Jingyang, Teh





0 Kudos
JingyangTeh_Altera
1,185 Views

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


0 Kudos
KennyTan_Altera
Moderator
1,097 Views

case reopening


0 Kudos
KennyTan_Altera
Moderator
1,097 Views

reopening the case


0 Kudos
JingyangTeh_Altera
983 Views

Hi


For the GSRD device tree could be found under the github link below:

https://github.com/altera-opensource/u-boot-socfpga/blob/socfpga_v2024.04/arch/arm/dts/socfpga_cyclone5_socdk.dts


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


0 Kudos
JingyangTeh_Altera
872 Views

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


0 Kudos
Reply