cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Newbie
Newbie
137 Views
Registered: ‎03-30-2020

K7 AXI slave register always returns 0

hello

I built a microblaze minimization system for the k7 chip in vivado2018, added a uart device, and a custom axi lite slave device called helloworld2newip, which was generated automatically by the system.I didn't add any HDL code myself for helloworld2newip.

Below is my diagram:

 

xxx.jpg

Then I use the following code in the SDK.

 

#include "platform.h"
#include "xbasic_types.h"
#include "xparameters.h"

Xuint32 *baseaddr_p = (Xuint32 *)XPAR_HELLOWORLD2NEWIP_0_S00_AXI_BASEADDR;

int main()
{
	init_platform();

	xil_printf("Test\n\r");

	*(baseaddr_p+0) = 0x00020003;
	xil_printf("Wrote: 0x%08x \n\r", *(baseaddr_p+0));

	xil_printf("End of test\n\n\r");

	return 0;
}

 

 

uart xil_printf works fine ,However, the register data read from the helloworld2newip device is always 0,Even if I write 0x00020003 into the register.May I ask what caused this?

thanks!

Tags (1)
0 Kudos
0 Replies