Hi,
We just received the FMC667 mezzanine board which we have fitted to a Xilinx vc707. I have built and compiled the firmware for the FPGA, ublaze and host using the plugin sources supplied.
When I run the ublaze uart_os application I get the following problem in the init() function of that code. Here is the Debug trace output:
[size=0pt] init_leds() - Entry[/size][size=0pt][/size]
[size=0pt][/color] Initialize the leds peripheral[/size][size=0pt][/size]
[size=0pt][/color] Configure the leds peripheral[/size][size=0pt][/size]
[size=0pt][/color] init_leds() - Exit[/size][size=0pt][/size]
[size=0pt][/color] main() - Entry[/size][size=0pt][/size]
[size=0pt][/color]Initializing the operating system, please wait...[/size][size=0pt][/size]
[size=0pt][/color]Watch below lines on LCD[/size][size=0pt][/size]
[size=0pt][/color] Initialize [/size][size=0pt][/size]
[size=0pt][/color] System [/size][size=0pt][/size]
[size=0pt][/color] init() - Entry[/size][size=0pt][/size]
[size=0pt][/color] init_uart() - Entry[/size][size=0pt][/size]
[size=0pt][/color] Initialize the UART peripheral[/size][size=0pt][/size]
[size=0pt][/color] Attach Send/Receive handlers to the peripheral[/size][size=0pt][/size]
[size=0pt][/color] Enable interrupts in the UART peripheral[/size][size=0pt][/size]
[size=0pt][/color] init_uart() - Exit[/size][size=0pt][/size]
[size=0pt][/color] init_i2c() - Entry[/size][size=0pt][/size]
[size=0pt][/color] Initialize the i2c peripheral[/size][size=0pt][/size]
[size=0pt][/color] Setup i2c handlers[/size][size=0pt][/size]
[size=0pt][/color] init_i2c() - Exit[/size][size=0pt][/size]
[size=0pt][/color] init_intc() - Entry[/size][size=0pt][/size]
[size=0pt][/color] Initialize the interrupt controller[/size][size=0pt][/size]
[size=0pt][/color] Connect default UART interrupt routine to the controller[/size][size=0pt][/size]
[size=0pt][/color] Connect I2C interrupt handler to the controller[/size][size=0pt][/size]
[size=0pt][/color] Start the interrupt controller[/size][size=0pt][/size]
[size=0pt][/color] Enable UART interrupts in the interrupt controller[/size][size=0pt][/size]
[size=0pt][/color] Enable I2C interrupts in the interrupt controller[/size][size=0pt][/size]
[size=0pt][/color] init_intc() - Exit[/size][size=0pt][/size]
[size=0pt][/color] Enable interrupts in the Microblaze processor[/size][size=0pt][/size]
[size=0pt][/color]Configuring i2c bridge (PCA9548) for VC707 - HPC1[/size][size=0pt][/size]
[size=0pt][/color]Register 0xF4 in ADM1064 is : 0[/size][size=0pt][/size]
[size=0pt][/color]Could not configure write to ADM1064, the error was : 0x-2[/size][size=0pt][/size]
[size=0pt][/color] main() - Exit([/size]
[size=0pt][/color] [/size]
[size=0pt][/color]Please can you advise what the issue is and how I can solve this? Since the ublaze is exiting everytime, I am unable to get any further with this first test example and certainly can’t connect from the host[/size]
[size=0pt][/color] [/size]
[size=0pt][/color]Just to check that it wasn’t an FPGA build problem my end, I also used the FPGA bit image from the supplied vc707 hardware definition available in the bsp (C:\Program Files (x86)\4DSP\4FM Core Development Kit\Plug-Ins\FMC667\Sources\uBlaze\vc707_hw), i.e. the FPGA image built by 4DSP, and I get the same behaviour.[/size]
[size=0pt][/color]Digging a little deeper in to the uart_os code, the failure code returned is specific to reading the ADM1064 device registers on the FMC667 card using the I2C bus.[/size]
[size=0pt][/color][/size]
[size=0pt][/color]Regards[/size]
[size=0pt][/color][/size]
[size=0pt][/color]Dom
[/size]