cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
7rabbit
Observer
Observer
2,603 Views
Registered: ‎02-15-2011

fsl not working in uClinux

Hi all I used petalinux v.4 and I implemented a simple counter module in VHDL connecting to MB via fsl.

Hardware(vhdl) writes and in standlone OS a program reads and prints, it all works.

 

After I add hardware into hardware platiform and add my c code as user apps in software. I compiled and downloaded (no error given). When I tried to run the same program in uCLinux the fsl reads 0 always.

 

I searched online for fslfifo read supports from Mr.John Williams founder of petalinux, it seems his implementation and the orignal implementation in MB interface source are quite similar, in my case.

 

Can someone pls share some thoughts and comments?

#include "fsl.h"


main()
{  
    volatile unsigned int temp,status = 0;	 

	 //Initialize your input data over here: 
   printf("\f");
   printf("Start : \n\t");

   while(1)
   {
      fsl_nget(0,temp,status);
		printf("Reading : %d\n\t",temp);

   }
}

 

 

Code is really really simple...

Thx

0 Kudos
1 Reply
7rabbit
Observer
Observer
2,601 Views
Registered: ‎02-15-2011

well, I went to uClinux file system and apparently /dev/fsl or realting module is not recoginzed or mounted... the hardware is not there...
how come?
0 Kudos