Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHello,
Thans for the answer. I realize a IP, you see this in the .zip-file below. In the NiosII I have write a simply test-code for send any data via avalon-slave bus and after read the data again. In the example I send the data= 0xF0F0F0F0, but I receive the follow: Der gelesene Wert ist: -252645136 The code in NiosII is: # include "NiosII_Camera_Tracking.h" int main(void) { alt_u32 daten= 0xF0F0F0F0; IOWR_IME_AVALON_XY_DETECTOR_DATA(XY_DETECTOR_BASE, daten); printf("Der gelesene Wert ist: %i\n", IORD_IME_AVALON_XY_DETECTOR_DATA(XY_DETECTOR_BASE)); } Could you test the IP-Block and say me what is the problem? Thank you...