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: 
Highlighted
Observer crowleyuk
Observer
248 Views
Registered: ‎04-13-2018

SPI Interrupt connection breaks debugging

I've got a bit of an odd issue.

 

I've built a basic dual core microblaze design in EDK.

I can program, debug each core with out issue.

 

I've run through the SDK examples for the IP blocks in use (TmrCtr, GPIO, UART, and SPI) all in interrupt mode, all work.

 

However, I am now integrating all of these into one project, and everything works without issue except the SPI module.

When I call the line

XIntc_Connect(&INTC, XPAR_INTC_0_SPI_3_VEC_ID, (XInterruptHandler)XSpi_InterruptHandler, (void *)&SPI);

The program compile without errors or warnings as expected, however when I debug the program I get the following error message:

SDK Error.pngSDK Error Message

Which isn't particularly useful.

I've found if I change the parameter (XInterruptHandler)XSpi_InterruptHandler to anything else it debugs without issue again.

There are no user enabled breakpoints either.

Has anyone come across this before?

 

Tags (3)
0 Kudos
3 Replies
Moderator
Moderator
229 Views
Registered: ‎10-06-2016

Re: SPI Interrupt connection breaks debugging

Hi @crowleyuk 

It seems to be an issue with the SPI interrupt that is not allowing the debugger to interact properly with the target. I would suggest you to check configuring EDK to stop at program entry point when you configure properly the interrupt and place the breakpoint in that function. This way you can confirm that the issue is just present when the INTC is configured to drive the interrupt signal to the core. If so, then the issue seems to be more related to the design rather than the debugger itself.

Regards


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
222 Views
Registered: ‎07-23-2019

Re: SPI Interrupt connection breaks debugging

Interrupts and debug are a bit incompatible, aren't they?

I particulary don't fancy stepping whenever interrupts are on the way. At the end of the day, your code will run freely at full speed. There are tricks for knowing whats going on in real time, printing things out, logging data, etc.

0 Kudos
Moderator
Moderator
216 Views
Registered: ‎10-06-2016

Re: SPI Interrupt connection breaks debugging

Interrupts are OK in a debug session unless you have design issues like stuck interrupt signal that never goes down or so...

Regards

Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos