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: 
Explorer
Explorer
494 Views
Registered: ‎06-13-2012

Strange debug behavior

Hi,

 

I'm new to work with microblaze and to understand I started using the examples provided with libraries.
Actually I've a strange problem I'm unable to run properly IIC examples, every time I debug the same code the microblaze stops on a different line of code (like in a infinite loop).

I'm using the xiic_eeprom_example.c example code, as I cant start the IIC comunication I modify the code as the following

/*
* Start the IIC device.
*/
while(Status != XST_DEVICE_IS_STARTED)
{
Status = XIic_Start(&IicInstance);
if (IicInstance.IsStarted != 0)
{
Status = XST_DEVICE_IS_STARTED;
}
}

The while loop never exit upon I step into the XIic_Start function and execute step by step all assembly instructions, otherwise the function never starts the IIC device.

I can't understand this behavior, I'm using Vivado 2017.2 on a Kintex Ultrascale device

 

regards

0 Kudos