01-11-2008 12:49 PM
01-15-2008 08:44 AM
Chriso,
In the source code for the DDK is a file called nivme_hw.c. The nivme_probe, is located in that file . This makes calls to the function nivme_init_mantis. I have a couple of additional questions for you:
1. Have you changed anything in the hardware layer, if so what specifically has been changed?
2. Are you sending 8 or 16 bit values?
01-15-2008 11:55 AM
I haven't changed anything in the hardware layer but it turns out a 16 bit write was going out instead of an 8 bit write as was intended. This was apparently caused by the compiler doing some "optimizing". When all optimizations were turned off, the exact same code ran as intended, as confirmed by running a VME analyser on the output. Yet another example of why optimizing compilers should not be used for compiling drivers or any code containing hardware interactions.
Anyway, our problem seems to be solved - thanks for your help.
06-26-2008 09:53 AM
SO,Chriso ,you just run the souce code form ni in your vxworks?
Or,some work should been done to change the code to adapt vxworks because the source code is for solaris?
My question is ,after i assert the address is 0xfbff2000 of the board,can i modify the registers to implement send gpib code?