UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor dragonbka
Visitor
302 Views
Registered: ‎05-29-2019

ucos iii bsp generate miss interrupts ID.

Hi everyone,
I am working at sdk 2017.4 and using repository ucos 1.43.
I have a hdf file and when i create app in standalone mode, the bsp gen file xparameter.h have the ID intr like this:

/* Definitions for Fabric interrupts connected to ps7_scugic_0 */
#define XPAR_FABRIC_ETH_BUFFER_RX_INTERRUPT_INTR 61U
#define XPAR_FABRIC_CDMA_PS_CDMA_INTROUT_INTR 62U
#define XPAR_FABRIC_ETH_BUFFER_TX_INTERRUPT_INTR 63U

/******************************************************************/

/* Canonical definitions for Fabric interrupts connected to ps7_scugic_0 */
#define XPAR_FABRIC_LLFIFO_0_VEC_ID XPAR_FABRIC_ETH_BUFFER_RX_INTERRUPT_INTR
#define XPAR_FABRIC_AXICDMA_0_VEC_ID XPAR_FABRIC_CDMA_PS_CDMA_INTROUT_INTR
#define XPAR_FABRIC_LLFIFO_1_VEC_ID XPAR_FABRIC_ETH_BUFFER_TX_INTERRUPT_INTR

/******************************************************************/

and it worked. But when i create app use Ucos, and in the ucos_bsp, file xparameter miss that interrupts ID. there is content in xparameter.h when i use Ucos.

/* Definitions for Fabric interrupts connected to ps7_scugic_0 */
#define XPAR_FABRIC_XLCONCAT_0_DOUT_INTR 61

/******************************************************************/

/* Canonical definitions for Fabric interrupts connected to ps7_scugic_0 */

/******************************************************************/

Because dont have ID interrupts so i cant connect the interrupts with the handler function.

i try coping the ID from the standalone bsp to ucos bsp but it dont work.

Sorry about i am not good at english, and how to fix it? thanks so much.

0 Kudos
9 Replies
Moderator
Moderator
273 Views
Registered: ‎10-06-2016

Re: ucos iii bsp generate miss interrupts ID.

Hi @dragonbka 

Could you provide more details about the ucos BSP repository you are using? where did you get that? From a quick view it seems that the xparameters.h file created by the ucos BSP is not able to detect that your interrupt signals are muxed with a concat as it just gives the number 61 to a concat block that is not really an IP per se.

Regards


Ibai
Don’t forget to reply, kudo, and accept as solution.
Moderator
Moderator
267 Views
Registered: ‎09-12-2007

Re: ucos iii bsp generate miss interrupts ID.

Ibai is correct here. For example if you have a look at the tcl code that is delivered with the BSP for the uc-os:

https://github.com/ggangliu/uC-OS-III/blob/master/Micrium_Xilinx_Repo_1_42/ucos_v1_42/ucos/drivers/ucos_scugic/data/xil_scugic.tcl

This will not get the vector places for each IP connected to the scugic via a CONCAT block. The latest tcl can be seen here:

https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/scugic/data/scugic.tcl

So, a patch could be created with the updated scugic.tcl.

However, we would need to source for the BSP, and your HDF to test

Visitor dragonbka
Visitor
246 Views
Registered: ‎05-29-2019

Re: ucos iii bsp generate miss interrupts ID.

Hi @Ibai, thanks for your reply, I’m using repository ucos 1.43 which download from micrium.com before the new version 1.44 update.
0 Kudos
Moderator
Moderator
233 Views
Registered: ‎09-12-2007

Re: ucos iii bsp generate miss interrupts ID.

Can you share your HDF?

0 Kudos
Moderator
Moderator
189 Views
Registered: ‎09-12-2007

Re: ucos iii bsp generate miss interrupts ID.

I tried this in the 1.44 version of the BSP from Micrium on a simple BD that has a concat:

bd.PNG

 

I used the HSI to create the BSP:

gen_bsp.PNG

 

The resultant xparameters is correct:

/******************************************************************/

/* Definitions for Fabric interrupts connected to ps7_scugic_0 */
#define XPAR_FABRIC_AXI_GPIO_0_IP2INTC_IRPT_INTR 61U
#define XPAR_FABRIC_AXI_TIMER_0_INTERRUPT_INTR 62U

/******************************************************************/

/* Canonical definitions for Fabric interrupts connected to ps7_scugic_0 */
#define XPAR_FABRIC_GPIO_0_VEC_ID XPAR_FABRIC_AXI_GPIO_0_IP2INTC_IRPT_INTR
#define XPAR_FABRIC_UCOS_AXITIMER_0_VEC_ID XPAR_FABRIC_AXI_TIMER_0_INTERRUPT_INTR

/******************************************************************/

 

Can you use the 1.44 version? If you are stuck in the 1.43 version then you could copy the utils for v1.44 here

Visitor dragonbka
Visitor
164 Views
Registered: ‎05-29-2019

Re: ucos iii bsp generate miss interrupts ID.

hi @stephenm, thanks for ur help. the Ucos 1.44 require vivado 2018.3, however with some reason i cant use vivado 2018.3. I send you my hdf file, can you  check it with ucos repository 1.43, thanks so much. 

0 Kudos
Moderator
Moderator
162 Views
Registered: ‎09-12-2007

Re: ucos iii bsp generate miss interrupts ID.

can you pass me the link for 1.4.3? I only see 1.4.4 on micrium website.

 

If you cannot move to 1.4.4, then you can just copy (make a backup first) the two files below from 1.4.4 into 1.4.3

bsp/data/ucos_tcl_utils.tcl
bsp/data/xil_tcl_utils.tcl

0 Kudos
Visitor dragonbka
Visitor
137 Views
Registered: ‎05-29-2019

Re: ucos iii bsp generate miss interrupts ID.

Hi @stephenm , in micrium web only download the newest version ucos, the ucos 1.43 i downloaded long time ago before the newest version update. I try copy 2 file u said but it isn’t work, when create bsp by sdk to get the interrupts id  i have to change the driver ucos_scugic to scugic. But it build failed because cant include ucos_scugic.h. Can u guide me more detailed. Thanks so much

0 Kudos
Moderator
Moderator
131 Views
Registered: ‎09-12-2007

Re: ucos iii bsp generate miss interrupts ID.

I cant really help without seeing the 1.4.3 version. Have you contacted Micrium on this issue?

0 Kudos