Search found 12 matches
- Sat May 14, 2011 9:11 am
- Forum: SUB-20 General Discussion
- Topic: Error
- Replies: 8
- Views: 34719
Re: Error
Actually I want read 1 byte data at a time. That is why I have given it as 1 in the sub_fifo_read().
- Sat May 14, 2011 3:53 am
- Forum: SUB-20 General Discussion
- Topic: Error
- Replies: 8
- Views: 34719
Re: Error
When I execute the code, sometimes it works properly. But other times it is showing something I mentioned earlier. When that error comes I just unplugged sub-20 and tried once again , then it worked.
- Fri May 13, 2011 10:43 am
- Forum: SUB-20 General Discussion
- Topic: Error
- Replies: 8
- Views: 34719
Re: Error
I had used an infinite while loop while(1) { rc = sub_fifo_read( hndl, in_buff,1,20000); if (rc >= 0) { if(file_currBuff==0) { data_buff=file_buff1_data; a0_buff=file_buff1_A0; } else { data_buff=file_buff2_data; a0_buff=file_buff2_A0; } data_buff =in_buff[0]; status = sub_gpio_read( hndl, &gpio_val...
- Fri May 13, 2011 8:37 am
- Forum: SUB-20 General Discussion
- Topic: Error
- Replies: 8
- Views: 34719
Re: Error
I have a board which sends data to LCD through SPI. So I'm using sub-20 board for reading that data. Here sub-20 is configured as slave using this function sub_spi_config( hndl, SPI_ENABLE|SPI_SLAVE|SPI_CPOL_FALL|SPI_SETUP_SMPL, 0 ) I'm using fifo read for reding the data. Since i need 1 byte at a t...
- Fri May 13, 2011 6:24 am
- Forum: SUB-20 General Discussion
- Topic: Error
- Replies: 8
- Views: 34719
Error
I have sub-20 which is configured in slave mode. It is reading data from another board which is the master. So when I run my program to read the data send from master using FIFO read and write data into a file, sometimes it works correctly and sometimes it showing this FIFO READ 64 bytes: BULK_OUT 3...
- Tue Apr 26, 2011 12:58 pm
- Forum: SUB-20 General Discussion
- Topic: read 1 byte data
- Replies: 3
- Views: 18444
Re: read 1 byte data
Sorry, it was returning -7 by mistake I wrote -5 which corresponds to bulk write failed
- Mon Apr 25, 2011 1:42 pm
- Forum: SUB-20 General Discussion
- Topic: read 1 byte data
- Replies: 3
- Views: 18444
read 1 byte data
I have a master which sends the data through SPI which is to displayed on the LCD of resolution 128 X 64. Here in my project I need to read that data but 1byte at a time. So how can I use the sub_fifo_read() to do the same or please suggest any other way to do that. I tried this way: rc = sub_fifo_r...
- Mon Apr 25, 2011 11:31 am
- Forum: SUB-20 General Discussion
- Topic: sub_fifo_read() returns -7
- Replies: 5
- Views: 24499
Re: sub_fifo_read() returns -7
In my system I had a master which sends the data which is to displayed in LCD of resolution 128 X 64. So it will send maximum of 1024 bytes of data. So I need to read all of them and corresponding gpio value of each byte of data. For reading I'm using sub20 which is configured in slave mode and data...
- Mon Apr 25, 2011 10:42 am
- Forum: SUB-20 General Discussion
- Topic: sub_fifo_read() returns -7
- Replies: 5
- Views: 24499
Re: sub_fifo_read() returns -7
I had done what you had said but still I'm getting the same error. .... ;-(
- Mon Apr 25, 2011 3:54 am
- Forum: SUB-20 General Discussion
- Topic: sub_fifo_read() returns -7
- Replies: 5
- Views: 24499
Re: sub_fifo_read() returns -7
Target OS is ubuntu 10.01 and software package version is SUB-20-snap-100910.
In my project, I have a master and configured sub20 in slave mode. Master sends data through spi. So I need to read that value
In my project, I have a master and configured sub20 in slave mode. Master sends data through spi. So I need to read that value